PDA

View Full Version : Different Status Icons


Ksb2050
10-18-2007, 04:35 PM
Hey guys!

I was hoping some of you would be able to tell me how to change my status icons per forum.

Heres an example of what I mean: http://www.adesignforum.com/index.php

Freesteyelz
10-19-2007, 04:32 AM
This is the image code (in templates):

forumhome_forumbit_level2_post
forumhome_forumbit_level1_post

Find:


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


Replace with:


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


Then name each .gif (or whatever extension you want) by its forum ID (e.g., 23.gif, 35.gif). Upload the images in your statusicon image folder or whichever folder you specified.

Ksb2050
10-20-2007, 02:53 AM
Thanks alot!!!

Freesteyelz
10-20-2007, 03:15 AM
Anytime. :)

edgecutioner
10-26-2007, 07:32 AM
well there's a downside to that code cause it doesn't have the default system that when there is a new post, the _new.gif image shows up and _old.gif when there's no new post....

here's my code for customizing it..

in

forumhome_forumbit_level2_post
forumhome_forumbit_level1_post

find

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

<td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[forumid]_forum_$forum[statusicon].gif" alt="" border="0" id="$forum[forumid]_forum_statusicon.gif" /></td>Then name each .gif by its [forumid]_forum_old.gif for old and [forumid]_forum_new.gif (e.g., 23_forum_new.gif, 23_forum_old.gif).
there should be a pair of those images, the old being opaque (35% will do).

Upload the images in your statusicon image folder or whichever folder you specified.

*note: replace the [forumid] with the appropriate forum ID's*

Credit to Freestylez for the orig code he gave on this thread :D

Freesteyelz
10-26-2007, 07:39 AM
Hahaa. Well, it's been done before. :)

I like what you did with it. You've kept the functionality of statis icon. :up:

edgecutioner
10-26-2007, 08:23 AM
thanks :o