vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin Tips & Tricks (https://vborg.vbsupport.ru/forumdisplay.php?f=239)
-   -   Simple tip for boards with many styles (https://vborg.vbsupport.ru/showthread.php?t=66342)

Lurk 06-19-2004 09:00 PM

Simple tip for boards with many styles
 
1 Attachment(s)
This may not be a good tip, but it's very useful and reduces time for people hacking boards with many styles. This lets you mass modify/add templates without messing with the 'Master Style' that you can view in debug mode.

Create a main style. (note: this style does not have to be selectable)

I'm going to use 'Default Style' for this example
Create it so that your styles will be like this:
Default Style
-Style 1
--Child of Style 1
-etc
-etc
-etc

Logician 06-20-2004 05:09 PM

Quote:

This may not be a good tip
This IS a good tip. :)

Reeve of shinra 06-20-2004 05:31 PM

Ive been doing that with my newest project. I find that haveing a default master style just for my template edits makes it easy to add child forums with a different look to them.

Xenon 06-20-2004 05:43 PM

We are doing this on vb.org as well :)

we even did it on vb2, but there it was a hack ^^

neocorteqz 06-20-2004 07:33 PM

been doing this ever since vB3 came out. :)

Lurk 06-23-2004 04:11 PM

yeah, well, i didn't like modifying the master style which i think you can access only in debug mode.

Zachery 06-23-2004 04:18 PM

Havent i been forcing this apon everyone since vB3 came ouyt?

Xenon 06-23-2004 04:40 PM

Quote:

Originally Posted by Lurk
yeah, well, i didn't like modifying the master style which i think you can access only in debug mode.

you shouldn't do so, as the master style itself gets overwritten with each version upgrade...

Ryan Ashbrook 06-23-2004 05:27 PM

I've been doing this myself as well, it is very handy. :)

angelicGrace 04-30-2005 05:53 PM

lol I did that totaly by accident. when i added my first style i made it a child of the defualt and so when i went to install my first template modification, i found totaly by accident, that i only needed to edit the template to the default and not the rest. :) Definatly made for a happly surprised newbie to all of this.

deathemperor 05-06-2005 01:32 PM

it's only useful with custom templates, not modified I think

Xenon 05-09-2005 06:43 AM

hmm, i don't think so, we don't have much custom templates, but a lot of modified ones, and it's very usefull

deathemperor 05-09-2005 08:08 AM

Quote:

Originally Posted by Xenon
hmm, i don't think so, we don't have much custom templates, but a lot of modified ones, and it's very usefull

then when child styles' templates got modified and you have a lot of child styles you still need to edit them one by one. My child styles are unique one by one, I can hardly edit one parent for all.

kall 05-09-2005 09:54 AM

Quote:

Originally Posted by deathemperor
then when child styles' templates got modified and you have a lot of child styles you still need to edit them one by one. My child styles are unique one by one, I can hardly edit one parent for all.

It's only not very useful if every template in the child styles is unique.

If not, its still useful for any template that is not unique.

Xenon 05-09-2005 02:04 PM

of course, if every childstyle is totally unique, then it wouldn't help.

It depends on the situation of course, but for example here on vb.org it is very usefull for normal templates


All times are GMT. The time now is 03:03 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.02206 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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