Announcement

Collapse
No announcement yet.

Personal Icon for each Forum

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

  • ubiquity
    replied
    oh great, might have to use this!

    Leave a comment:


  • PET
    replied
    Thanx

    i hope it works in RC4

    Leave a comment:


  • Aros
    replied
    http://www.vbulletintemplates.com/mo...ead.php?t=5484

    Leave a comment:


  • PET
    replied
    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

    Leave a comment:


  • Floris
    replied
    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

    Leave a comment:


  • PET
    replied
    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.

    Leave a comment:


  • Floris
    replied
    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>

    Leave a comment:


  • PET
    started a topic Personal Icon for each Forum

    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
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X