Announcement

Collapse
No announcement yet.

Different headers for each forum?

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

  • 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?

  • #2
    You could use conditionals.

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

    Comment


    • #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


      • #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...
        X