Show a specific header banner or logo in various forums

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ranger375
    Senior Member
    • Aug 2006
    • 614
    • 4.0.x

    Show a specific header banner or logo in various forums

    I was trying to figure this out for a while and luckily for me, MRGTB managed to figure it out through trial and error. Many thanks to him. Basically, you can show a different banner in any forum, by just editing adding code to the header template; much easier than creating several duplicate styles.


    Add the Red Code to your header template and substitute X,Y with your forum ID number. Also add the address to your banner in the appropriate spot (example: http://www.yoursite.com/banner1.jpg) :


    Code:
    <!-- logo -->
    <a name="top"></a>
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
    <tr>
    [COLOR=red]<if condition="!in_array($forumid, array([B]X,Y[/B]))">
    <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="[B]Path to Main Forum Banner[/B]" border="0" alt="$vboptions[bbtitle]" /></a></td>
    </if>
    <if condition="$foruminfo[forumid] == [B]X[/B]">
    <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="[B]Path to Banner X[/B]" border="0" alt="$vboptions[bbtitle]" /></a></td>
    </if>
    <if condition="$foruminfo[forumid] == [B]Y[/B]">
    <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="[B]Path to Banner Y[/B]" border="0" alt="$vboptions[bbtitle]" /></a></td>
    </if>[/COLOR]<td align="$stylevar[right]">&nbsp;</td></tr></table><!-- /logo --> <!-- content table -->$spacer_open $_phpinclude_output
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...