Insert image between forums/categories

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • timelord726
    Member
    • Mar 2005
    • 78
    • 3.6.x

    Insert image between forums/categories

    I have a special section on my forums that I have a special banner logo for, and I would like to insert that banner in between some of my forum categories (just before the special forum).

    For example:
      • Category 1
        • Forum 1
        • Forum 2
    • Banner Image
      • Category 2
        • Forum 3
        • Forum 4
    Can this be done easily, and if so, how? Thanks!
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73981

    #2
    Edit your forumhome_forumbit_level1_nopost template and add something like:

    <if condition="foruminfo[forumid] == XX">Show banner code</if>

    Set XX equal to the ID of your special forum.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • timelord726
      Member
      • Mar 2005
      • 78
      • 3.6.x

      #3
      Thanks Wayne, that sounds ideal! However when trying to implement it like this:

      Code:
      <if condition="foruminfo[forumid] == 193">
      
      (banner code)
      
      </if>
      I get the following error in return:

      The following error occurred when attempting to evaluate this template:

      Parse error: syntax error, unexpected '[' in includes/adminfunctions_template.php(3596) : eval()'d code on line 3

      This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
      Line 3 is this:

      Code:
      <if condition="foruminfo[forumid] == 193">

      Comment

      • Wayne Luke
        vBulletin Technical Support Lead
        • Aug 2000
        • 73981

        #4
        Sorry I forgot the $ and didn't see it in proof-reading...

        $foruminfo[forumid]
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment

        • timelord726
          Member
          • Mar 2005
          • 78
          • 3.6.x

          #5
          Thanks, I probably should have realized that myself.

          The error's gone now, however the image won't show up. I've inserted the relevant code and tried both the category's ID and the forum's ID and neither will prompt the banner to show up before it. Any other ideas?

          Thanks again for your help.

          Comment

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