View Full Version : Where in the files is the default style defined?
I'm working on making a mod that changes the default style. Just wondering if anyone happens to know which php file has this in it. I have checked the global.php as well as the index.php with no luck. Does anyone know? It would save me a ton of time. Thanks.
~006
Natch
09-20-2004, 01:14 AM
The default style is stored in the database: check out your AdminCP for more details.
I don't think I was specific enough. What I meant is where in the files does it tell your broswer to pull the default style? I want to put some conditional statements there so there are a few styles that might show up depending on certain things.
Dean C
09-20-2004, 03:31 PM
Questions about modifying vBulletin's default behaviour and asking about modifications in general, should be posted in General vBulletin Questions. Please read the forum descriptions more carefully in future. I've moved your thread there for you :)
Thanks,
- Dean
Well technically it's a code modification. That's why I posted it there. Wasn't 100% positive it was right but oh well. Sorry though.
Anyway, does anyone know the answer? Thanks.
~006 :)
Zachery
09-20-2004, 08:07 PM
Well technically it's a code modification. That's why I posted it there. Wasn't 100% positive it was right but oh well. Sorry though.
Anyway, does anyone know the answer? Thanks.
~006 :)
It doesnt, its stored in the users cookies and or users prefrences in the database.
True, but a guest sees the default style when they go to the board. I am wondering where the code is that tells guests browsers to display the default style. The cookie gets there somehow...
I have found some things in global and includes/sessions that mention the style, but I think I need to look elsewhere.
Zachery
09-20-2004, 11:05 PM
True, but a guest sees the default style when they go to the board. I am wondering where the code is that tells guests browsers to display the default style. The cookie gets there somehow...
I have found some things in global and includes/sessions that mention the style, but I think I need to look elsewhere.
I think its global.php but the default styleid is also kept in the database.
Well basically what I am trying to do is create a hack that allows the admin to change the default style simply by chancing their own selected style.
So guests styles will be set to SELECT styleid FROM user WHERE userid = 1; or something to that effect.
Zachery
09-21-2004, 12:06 AM
Well basically what I am trying to do is create a hack that allows the admin to change the default style simply by chancing their own selected style.
So guests styles will be set to SELECT styleid FROM user WHERE userid = 1; or something to that effect.
Ah, ... why? it can just be set in the AdminCP....
LOL, I know. Still wanted to do it though. I might just add soem code to the change style page that checks to see if user is userid X and if they are, it updates default style upon style change.
I have a lot of skins so I try to mix it up.
Zachery
09-21-2004, 08:29 PM
LOL, I know. Still wanted to do it though. I might just add soem code to the change style page that checks to see if user is userid X and if they are, it updates default style upon style change.
I have a lot of skins so I try to mix it up.
You need to update the options table, and the datastore table. :/
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.