When there is a new post in a forum section since our last vistir then the character “+” is showing in front of the section’s title. It’s ok but i bet there are still people who use seditio or ldu and they didin’t know that. In this quide if you follow all directions then we will have added to our forum sections a new status icon like this.
![]()
Open system\core\forums\forums.inc.php
Find this code around line 166
if ($usr['id']>0 && $fsn['fs_lt_date']>$usr['lastvisit'] && $fsn['fs_lt_posterid']!=$usr['id']) { $fsn['fs_title'] = "+ ".$fsn['fs_title']; $fsn['fs_newposts'] = '1'; }
Replace with this
if ($usr['id']>0 && $fsn['fs_lt_date']>$usr['lastvisit'] && $fsn['fs_lt_posterid']!=$usr['id']) { $fsn['fs_title'] = "+ ".$fsn['fs_title']; $fsn['fs_newposts'] = '1'; /*---Status icons Hack---*/ $fssicons = "<img src='skins/$skin/img/system/forum_new.gif' alt='Forum Contains New Posts' />"; } else { $fssicons = "<img src='skins/$skin/img/system/forum_old.gif' alt='Forum Contains No New Posts' />"; } if ($fsn['fs_state'] > 0) { $fssicons = "<img src='skins/$skin/img/system/forum_lock.gif' alt='Forum is Closed for Posting' />"; } /*---Status icons Hack---*/
It’s time to add our status tag.Find this
"FORUMS_SECTIONS_ROW_DESC" => $fsn['fs_desc'],
After that add this
"FORUMS_SECTIONS_ROW_STATUS_ICON" => $fssicons,
Done, save close and upload the system\core\forums\forums.inc.php to your server.
Now in every skin_name/img/system/ folder you must upload 3 images. Each for the status icon we added. You have to find or make your own images named like this:
forum_new.gif :Contains New Posts
forum_old.gif :Contains No New Posts
forum_lock.gif :A Closed Forum
Now you must also add this tag {FORUMS_SECTIONS_ROW_STATUS_ICON} in forums.sections.tpl.
For this you must do as you like but i propose you to replace the default forum section icon
Find
<img src="{FORUMS_SECTIONS_ROW_ICON}" alt="" />
Replace with our tag
{FORUMS_SECTIONS_ROW_STATUS_ICON}
And you are done enjoy it.
Feed for this Entry Trackback Address The permalink
2 Responses to “Forum Section Status Icons”
April 1st, 2006 at 8:32 pm
im pretty sure this could be achieved with hooks using an extended plugin. im gunna try it, of course all copyrights to u. mind if i do it?


Recent Comments