vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Unique headers in each forum (https://vborg.vbsupport.ru/showthread.php?t=118808)

MuhammadC 06-16-2006 07:29 PM

Unique headers in each forum
 
Hello,

I want to have unique headers in each forum, without creating custom styles for those forums. The reason for this is because almost every forum I have needs a unique header, which would render a user-selected style to be essentially useless.

Any ideas?

Thanks in advance...

darnoldy 06-16-2006 09:53 PM

Quote:

Originally Posted by MuhammadC
I want to have unique headers in each forum...

Any ideas?

Well a couple. It depends on how ?unique? you want the headers to be. You could use conditionals or variables to change parts of the header depending on which forum is displaying it. The header really should maintain some consistency across the site?be it color, typography, or iconography.

--don

Freesteyelz 06-16-2006 10:08 PM

Do you just want unique Header images or unique Headers for each forum? If the latter then follow below (laying out the code as darnoldy explained above):

Top of "header" template add:
Code:

<if condition="in_array($forumid, array(x))">
Header "x" code here...
<else />
<if condition="in_array($forumid, array(y))">
Header "y" code here...
<else />
<if condition="in_array($forumid, array(z))">
Header "z" code here...
<else />

Add to the very bottom of your "header" template:
Code:

</if></if></if>
Replace the "x", "y" and "z" with your ForumIDs. Notice above I've included 3 conditional fourm headers. Add more by simple copying the code. Make sure that the end </if> tags matches the amount of conditionals you use.


All times are GMT. The time now is 09:30 PM.

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.01323 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
  • (2)bbcode_code_printable
  • (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