Log in

View Full Version : Header Image Question


MG Webmaster
06-15-2008, 07:20 PM
Is it possible to take this code found in the header template

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
</td>
</tr>
</table>
<!-- /logo -->
change the code to display a different header per usergroup so a total of 5 different images.

Opserty
06-15-2008, 07:48 PM
Use the template conditional:

<if condition="is_member_of($vbulletin->userinfo, X, Y, Z)">
DISPLAY THIS HTML
<else />
Display this html
</if>

X, Y, Z are usergroup ids

You can nest if's and else's inside one another, so you can find the right usergroup or something...

<if....>

<else />
<if....>

<else />

</if>
</if>

MG Webmaster
06-15-2008, 10:32 PM
OMG thanks Opserty that works like a charm!