vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Is it possible to have changes in Edit Templates apply to all Templates? (https://vborg.vbsupport.ru/showthread.php?t=270423)

monet1 09-16-2011 08:29 PM

Is it possible to have changes in Edit Templates apply to all Templates?
 
Hi,

Been fumbling a while with this and wondering if it's actually possible. Can you apply the changes you make in Edit Templates to all the templates instead of just the one you're working on? This would make it much easier if I say have 5 Templates and don't have to go into each individual style and make the same changes over and over again.

Not really a huge inconvenience, but I guess it'd be nice to save that precious time for porn surfing or arguing with random people on YouTube. :)

BSMedia 09-16-2011 09:09 PM

Yes, you make the main template a parent theme. You then list all other themes as children/sub-themes to the parent.

When you do this, if your parent theme has an edited "navbar" template. And your child theme has an unmodified "navbar" template, it inheirts the navbar template from the parent.

If your child theme has the template modified however, it won't inherit from the parent theme.

monet1 09-17-2011 02:56 AM

Quote:

Originally Posted by BSMedia (Post 2246942)
Yes, you make the main template a parent theme. You then list all other themes as children/sub-themes to the parent.

When you do this, if your parent theme has an edited "navbar" template. And your child theme has an unmodified "navbar" template, it inheirts the navbar template from the parent.

If your child theme has the template modified however, it won't inherit from the parent theme.

Sweet! Thanks David. I got it to work and played around with the feature. Turns out I ran into that scenario you wrote about...the parent/edited "navbar"/child inherit situation, so I may just keep each template its own separate thing. I have different color schemes for my logo (changes depending on template color) and that gets inherited so keeping the templates separate may just be my best option.

Anyway, thanks for your help! :)


All times are GMT. The time now is 06:41 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.01019 seconds
  • Memory Usage 1,714KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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