PDA

View Full Version : different logo in specific forum?


wolfyman
01-24-2010, 06:11 PM
I'm trying this but the image isn't showing, why not? (edit in header template)

Original code:
<div id="header" class="floatcontainer doc_header">
{vb:raw ad_location.ad_header_logo}

<div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image">
<img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a>
</div>

My custom non-working code:

<div id="header" class="floatcontainer doc_header">
{vb:raw ad_location.ad_header_logo}

<div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image">
<!-- if VIP forum -->
<vb:if condition="$forum[forumid] == 30"><img src="images/vbulletin4_logoVIP.gif">
<vb:else />
<img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a>

</vb:if>
<!-- /if VIP forum -->
</div>

Lynne
01-24-2010, 07:44 PM
$forum is not registered for use in the header template. You will have to preregister it if you wish to use it there - or maybe try $GLOBALS[forumid], but if not, you'll have to preregister it for use.

wolfyman
01-24-2010, 07:58 PM
$GLOBALS[forumid] worked, thank you!