vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Changing Forum Header (https://vborg.vbsupport.ru/showthread.php?t=227887)

gnagplank6 11-13-2009 10:30 PM

Changing Forum Header
 
I was wondering wheter someone could help me figure out how to have different headers for the different forums on our site.

Everything else will be the sameother the the image in the header. Running VB 3.8+

Thanks for your help in advance.

kNeeLy 11-14-2009 01:07 AM

like a rotating banner? just go to "mods" in here..and search "banner" in "3.8.x"

gnagplank6 11-16-2009 02:34 PM

No this is not what I meant and I apologize if I was confusing in my request for information.

At the top of my main forum page I have an image with our site name and logo.

What I am wondering is whether I can have different headers for the different forums I have.

For example lets say I run a forum about European cars. The different forums would be Mercedes, BMW, etc.

For the Mercedes forum I would like a picture of a Benz in the header while for the BMW forum I would want a BMW picture in the header. Currently all my forums have the same header and I would like to change that.

Any advice would be most appreciated.

Lynne 11-16-2009 02:43 PM

You can just put a condition around the banner based on what forumid you are in:

HTML Code:

<if condition="in_array($forumid, array(x, y, z))">
banner code for in forumid x, y, or z
<else />
banner code for other forums
</if>


gnagplank6 11-16-2009 04:51 PM

Lynne thank you once again for taking an interest in my questions. I really appreciate it and I will post up on how successful I am.

gnagplank6 01-26-2010 10:23 PM

Lynne,

Thanks!! we took the HTML you supplied and put it into the header template. Works perfect!!!! :D


All times are GMT. The time now is 10:04 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.02488 seconds
  • Memory Usage 1,717KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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