Announcement

Collapse
No announcement yet.

Show a specific header banner or logo in various forums

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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>
    <if condition="!in_array($forumid, array(X,Y))">
    <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="Path to Main Forum Banner" border="0" alt="$vboptions[bbtitle]" /></a></td>
    </if>
    <if condition="$foruminfo[forumid] == X">
    <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="Path to Banner X" border="0" alt="$vboptions[bbtitle]" /></a></td>
    </if>
    <if condition="$foruminfo[forumid] == Y">
    <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="Path to Banner Y" border="0" alt="$vboptions[bbtitle]" /></a></td>
    </if><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...
X