The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
New Replies / Old replies image
Hi,
I am working on a new front page for my vBulletin forum. I need to show n.gif if there is a new post / thread in a forum and o.gif if there is no new threads / posts. How would I go about doing this? Thanks in advance. |
#2
|
|||
|
|||
Bump
|
#3
|
|||
|
|||
Is this actually possible to use on another page, other than the forumhome? I went through the stock templates and couldn't see anything I could copy and use.
Cheers. |
#4
|
||||
|
||||
When I go to my home page, I have different icons depending on if there are new posts or not. If there are new posts, it uses "forum_new.gif", if there are no new posts it uses "forum_old.gif". Are you saying you want to replace those with "n.gif" and "o.gif"?
|
#5
|
|||
|
|||
Hi,
Basically I will be creating a sidebar that can be seen from any part of the site apart from the forum home page. In the side bar, will be a list of the sites forums and next to them, I was hoping to put an icon to indicate if there was a new post in that forum. Thanks for your reply. |
#6
|
||||
|
||||
Looking in the template, that is determined by "forum_$forum[statusicon].gif", so $forum[statusicon] seems to be either 'old' or 'new'. Looking in forumdisplay.php, that is determined by the function fetch_forum_lightbulb which is in functions_forumlist.php around line 365. You can probably use that function for your own purposes or if you have access to the variable $forum[statusicon] on your page, you can use that to toggle between your two gifs.
|
#7
|
|||
|
|||
Thanks for your reply.
So in theory (I haven't tested this yet), if I put this Code:
<img src="/images/statusicon/$forum[imageprefix]forum_$forum[statusicon].gif" id="forum_statusicon_$forum[4]" /> Cheers. |
#8
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|