Wayne Luke |
01-09-2006 10:00 PM |
New Post Status Icon links to Getnew for that forum.
In order to simplify searching, I wanted to make the New Post status icon link to the search engine and retrieve only the new posts for that forum. If there are no new posts, the icon links to the forum itself.
Open forumhome_forumbit_levelX_post. In my example, I am using forumhome_forumbit_level2_post.
Find:
HTML Code:
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" />
Replace with:
HTML Code:
<if condition="$forum[statusicon]=='new'">
<a href="search.php?do=getnew&include=$forum[forumid]"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></a>
<else />
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></a>
</if>
You can apply similar modifications to any forumbit at any level.
A demo can be found at: http://www.dovguild.net/
Distibuted under the "Wayne License". You may modify to suit your needs, No Attribution Necessary, Redistribution allowed on sites which can verify legitimate vBulletin License Holders only.
|