vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   how to style sub forums recursively (https://vborg.vbsupport.ru/showthread.php?t=314108)

marianoaran 09-03-2014 11:40 AM

how to style sub forums recursively
 
We have a need to style each subforum recursively. Meaning that we would have 4 sub-subforums and each will have many child sub forums. Each one of these should inherit their parent's design.

We've managed to style a subforum by editing templates, and putting in a conditional, which displays a different logo for a specified forum ID.

We can't find a way to make the child sub-forums inherit the styling too.

Can anyone give me some pointers on how can this be achieved?

Thank you! :-)

tbworld 09-03-2014 07:00 PM

Quote:

Originally Posted by marianoaran (Post 2513615)
We have a need to style each subforum recursively. Meaning that we would have 4 sub-subforums and each will have many child sub forums. Each one of these should inherit their parent's design.

Thank you! :-)

Styles as you probably know can be inherited by their children. All templates and stylevars on child will be inherited from their parent, unless they are modified. (see ... Style Manager).

STYLE MANAGER (Each with unique Style-ID)
-----------------------------------------------
Master Style
Your current style theme
Forum1 (Category) style (child of current theme)
Forum2 (Category) style (child of current theme)
Sub-forum style (child of forum style)
Sub of sub forum style (child of sub-forum)
Sub-forum style (child of forum style)
Sub of sub forum style (child of sub-forum)
1.) Under "Forum Manger" you can attach the style ID from the style manager to the forum. See ... Forum Manager -> Style Options -> Custom Style for this Forum
2.) Under "Forum Manager", attach a (parent associated) sub-forum style-id from your Style Manager.
Simple and works well. You will just need to create a dummy setup and play with it a bit :)


All times are GMT. The time now is 01:06 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.01045 seconds
  • Memory Usage 1,713KB
  • 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
  • (2)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