Personal Icon for each Forum

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PET
    Senior Member
    • Mar 2002
    • 304
    • 5.0.0

    Personal Icon for each Forum

    Hi,

    it was an old hack/template ho allow you to place a custom icon on each forum (category).



    Like this image...but another one for each category.

    thanx.

    P.S. I am using vBulletin 3 RC4
    GamerPET.com - Honest Game Reviews

    REMEMBER : Life is better with animals.
  • Floris
    Senior Member
    • Dec 2001
    • 37767

    #2
    You can now do this by using a conditional in the template.

    <img border="0" src="img_$forumid.gif" />

    and then just upload the img_n.gif where n is the number of the forum

    If you just have a few categories, you can narrow this down.

    <if condition="($forumid == 1) OR ($forumid == 5) OR ($forumid == 19)">
    <img border="0" src="img_$forumid.gif" />
    <else />
    normal vbulletin code
    </if>

    Comment

    • PET
      Senior Member
      • Mar 2002
      • 304
      • 5.0.0

      #3
      can you be more specified ? What is the exact template and where shall i upload the image.

      You can now do this by using a conditional in the template.

      <img border="0" src="img_$forumid.gif" />

      and then just upload the img_n.gif where n is the number of the forum
      see...i don't get this. Where do i put <img border..... ?

      I usualy have about 20 forums and some of them also have subforums.
      GamerPET.com - Honest Game Reviews

      REMEMBER : Life is better with animals.

      Comment

      • Floris
        Senior Member
        • Dec 2001
        • 37767

        #4
        The forumhome template set templates.
        Like forumhome_forumbit_level1_nopost is used for the categories and forumhome_forumbit_level2_post for the forums in it. The others are used for forumdisplay.php pages (after clicking a category).

        You can upload the images into the images/misc dir and link to them in the <img .. /> tag with src="$stylevar[imgdir_misc]/img_$forumid.gif"

        For example, if you want to add the images to the category, you can edit the forumhome_forumbit_level1_nopost template and find the code just after:

        <tbody>
        <tr>

        and in front of:

        <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">

        You can add another table cell there, so you can include an image:

        <td width="30" class="tcat">
        <if condition="($forumid == 1) OR ($forumid == 5) OR ($forumid == 19)">
        <img border="0" src="$stylevar[imgdir_misc]/img_$forumid.gif" />
        <else />
        <img border="0" src="$stylevar[imgdir_misc]/img_default.gif" />
        </if>
        </td>

        Of course, modify the <if conditional> to your forumid's.


        You can do the same for the other templates, to replace the on/off images.

        In the forumhome_forumbit_level2_post

        find this code:

        <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>

        and replace it with something like:

        <td class="alt2">
        <if condition="($forumid == 6) OR ($forumid == 18) OR ($forumid == 25)">
        <img border="0" src="$stylevar[imgdir_misc]/img_$forumid.gif" />
        <else />
        <img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" />
        </if>
        </td>


        I hope this guides you

        Comment

        • PET
          Senior Member
          • Mar 2002
          • 304
          • 5.0.0

          #5
          I have 5 categoryes (i usualy have about 20 but let's keep it simple):

          News (id=1)
          Polls (id=2)
          vBulletin (id=3)
          Games (id=4)
          -- RPG (id=6)
          -- Action (id=7)
          Television (id=5)

          Games have 2 sub-forums.

          I have 7 images. One for the news one for the polls, etc.
          I mean 14 images. ON and OFF.

          Tell me exactly where and how do i specify what image shall it put for a category.

          Thanx

          P.S. Let's make it the easy way
          GamerPET.com - Honest Game Reviews

          REMEMBER : Life is better with animals.

          Comment

          • Aros
            Senior Member
            • Jun 2002
            • 323
            • 3.7.x

            #6


            Comment

            • PET
              Senior Member
              • Mar 2002
              • 304
              • 5.0.0

              #7
              Thanx

              i hope it works in RC4
              GamerPET.com - Honest Game Reviews

              REMEMBER : Life is better with animals.

              Comment

              • ubiquity
                New Member
                • Feb 2004
                • 5
                • 3.0.0 Release Candidate 4

                #8
                oh great, might have to use this!

                Comment

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