Different headers for each forum?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gary Fischman
    Senior Member
    • Jan 2001
    • 356
    • 3.0.10+

    Different headers for each forum?

    I have different sponsors for each of my forums. Do I need to create a different style for each forum? Is there a way I can have a set of styles that are user selectable, whereby no matter which style the user selects, I can still show a different ad banner in each forum?
  • Floris
    Senior Member
    • Dec 2001
    • 37767

    #2
    You could use conditionals.

    <if conditional="$forumid == '1'">
    code for banner 1
    <else />
    code for default banner
    </if>

    Comment

    • Floris
      Senior Member
      • Dec 2001
      • 37767

      #3
      Or even better, you can name the banners to the forumid numbers and just add this code:
      <img border="0" src="$stylevar[imgdir_misc]/banner_$forumid.gif" />

      I am just not too sure how to set the <a> tag for dynamic linking. since each banner probably has its own link.

      Comment

      • Gary Fischman
        Senior Member
        • Jan 2001
        • 356
        • 3.0.10+

        #4
        Kewl - the first option should work. Basically, the banner (along with the link) is simply embedded in an html file, so the code for the banner is nothing more than a single <IFRAME...>

        Thanks!

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...