vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Conditional masthead images/logos for different parts of a forum including threads? (https://vborg.vbsupport.ru/showthread.php?t=66950)

wcbryant 07-07-2004 11:46 PM

Conditional masthead images/logos for different parts of a forum including threads?
 
I have a forum that covers multiple sports for a single university's athletic department. My normal title logo has a definite football theme. I've got one with a basketball theme, and would like that to appear instead of the football logo where appropriate.

I've managed to do enough reading and searching here and on vb.com to get it working on the forum view level. But when I go into threads within that forum, or the new thread page, it reverts back to the main logo, as if it doesn't recognize that I'm still within the basketball area.

Here's what I'm using so far. Note that on my board, 6 is the Basketball category, 7 is the Basketball forum. It shows up on both, just not down any deeper.

HTML Code:

<if condition="$_GET[forumid]==6 OR $_GET[forumid]==7"><img src="path/to/basketball_logo.jpg" border="0" alt="$vboptions[bbtitle]" /><else />
<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></if>

Any help/insight/suggestion would be greatly appreciated. To be clear, the goal is to have the alternate logo on all pages within forums 6 and 7, not just the forumdisplay pages.

wcbryant 07-09-2004 08:29 PM

$foruminfo instead of $_GET was the trick.

Thanks to John (Arcade/Articles) for the info.


All times are GMT. The time now is 10:39 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.01006 seconds
  • Memory Usage 1,716KB
  • 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
  • (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