Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Different banner for diffrent Forum Categories
#1
I found a sample code that display a different banners for different Forum Categories but it's written on VBulletin.

here's the code:

Quote:
Code:
<!-- start  code -->
<vb:if condition="in_array($forum['forumid'], array(4,12,36))">
MY BANNER HERE
</vb:if>
<!-- end code -->

The part you need to change is 4,12,36 where the numbers refer to the forum numbers you want to display the buttons in.
The way you get this is in the forum the url will be like:

Code:
http://yoursite.com/forumdisplay.php?4-music-Videos
http://yoursite.com/forumdisplay.php?12-music-Clips
http://yoursite.com/forumdisplay.php?36-music-Gallery

Additional trick

If you don't want the Button to display to members and only to guests you can wrap the above code in the following
PHP Code:
[code]<vb:if condition="$show['guest']">all the code above</vb:if>

credits: MrHappy

This sample codes are taken from VBULLETIN 4.0



How should it be done for MYBB?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  myBB Forum Permission Cache Error - Crippling My Forum CruciasNZ 1 1,058 04-24-2013, 12:11 AM
Last Post: Kevin Cheri
  banner Jack 26 6,408 04-27-2011, 09:02 AM
Last Post: Jack
  How do I remove the categories :( Gpizzle 3 1,193 04-18-2011, 07:56 AM
Last Post: Mammoth
  A plugin for flash banner category? DLight03 0 680 04-08-2010, 04:07 AM
Last Post: DLight03

Forum Jump:


Users browsing this thread: 1 Guest(s)