Previous Thread
Next Thread
Print Thread
Hop To
Joined: Mar 2008
Posts: 262
enthusiast
enthusiast
Joined: Mar 2008
Posts: 262
OK so I have been using the Web developer plug-in for Firefox to learn more about CSS and found a few errors on my site that I am trying to fix. I have fixed most of them with Sirdude's help, but came across one that we have not been able to fix yet. I even loaded a brand new install using WAMP on my local machine. The problem is that if you edit any style with the built in editor it adds
Code
valid_post {
1
}
to the top of every .css file for the style.. And then you get the error below. Has anyone else seen this. I can open a support ticket and give admin access if need. It happens on both versions...

Warning: Expected declaration but found '1'. Skipped to next declaration.
Source File: http://www.firstgenmc.com/ubbthreads/styles/black_and_gold_(hi_res)_1279392183.css?v=7.4.1
Line: 3


Ian
http://www.firstgenmc.com/ubbthreads

"Experience is a hard teacher because she gives the test first, the lesson afterwords."
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Hmm, that is supposed to be dropped from the $_POST variables before it gets to the scripts.

Try this, at line 169 of admin/doupdatestyle.php you'll see this:

PHP Code

if (preg_match("/(returntab|style|style_name|news_images|general_images|avatar_images|forum_images|markup_images|graemlin_images|icon_images|wrapper|mood_images)/",$key)) continue;
 

Add valid_post to that list of checks, so change that to this:

PHP Code

if (preg_match("/(returntab|style|style_name|news_images|general_images|avatar_images|forum_images|markup_images|graemlin_images|icon_images|wrapper|mood_images|valid_post)/",$key)) continue;
 

Joined: Mar 2008
Posts: 262
enthusiast
enthusiast
Joined: Mar 2008
Posts: 262
Thanks Rick that did it! btw it is line "69" not "169" smile


Ian
http://www.firstgenmc.com/ubbthreads

"Experience is a hard teacher because she gives the test first, the lesson afterwords."
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Excellent, now to go get my eyes checked wink

Joined: Mar 2008
Posts: 262
enthusiast
enthusiast
Joined: Mar 2008
Posts: 262
It is all the staples stuck to your forehead grin


Ian
http://www.firstgenmc.com/ubbthreads

"Experience is a hard teacher because she gives the test first, the lesson afterwords."
Joined: Jan 2008
Posts: 514
addict
addict
Joined: Jan 2008
Posts: 514
ROFLMAO well you can thank Ruben for that tongue.

/me removes 2 or 3 staples around the eyes.

Ok that should help at least until v8 is done and we can remove the rest tongue


Dunny


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
2 members (DennyP, 1 invisible), 969 guests, and 171 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)