vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Where in the files is the default style defined? (https://vborg.vbsupport.ru/showthread.php?t=69645)

007 09-20-2004 12:58 AM

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.

007 09-20-2004 01:37 AM

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

007 09-20-2004 07:50 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 :)

Zachery 09-20-2004 08:07 PM

Quote:

Originally Posted by 006
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.

007 09-20-2004 11:02 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.

Zachery 09-20-2004 11:05 PM

Quote:

Originally Posted by 006
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.

007 09-20-2004 11:16 PM

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
PHP Code:

SELECT styleid FROM user WHERE userid 1

or something to that effect.

Zachery 09-21-2004 12:06 AM

Quote:

Originally Posted by 006
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
PHP Code:

SELECT styleid FROM user WHERE userid 1

or something to that effect.

Ah, ... why? it can just be set in the AdminCP....

007 09-21-2004 07:24 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.

Zachery 09-21-2004 08:29 PM

Quote:

Originally Posted by 006
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. :/


All times are GMT. The time now is 10:59 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01419 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete