View Full Version : Handy link to search for "New Posts in Only This Forum"
Tralala
03-17-2007, 10:00 PM
Not a blockbuster by any means. Just a simple (yet effective) little link, makes it easy to find the new posts in that particular forum. (If there are NO new posts in a forum, the text link on forumhome says "old" instead.)
In FORUMDISPLAY template, find:
<td class="tcat" width="100%">$vbphrase[threads_in_forum]<span class="normal"> : $foruminfo[title]</span></td>
Replace with:
<td class="tcat" width="100%">$vbphrase[threads_in_forum]<span class="normal"> : $foruminfo[title] <a href="search.php?do=getnew&include=$foruminfo[forumid]">(new in <b>bold</b>)</a></span></td>
In forumhome_forumbit_level1_post template, find:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
Replace with:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a> <span class="smallfont"><a href="search.php?do=getnew&include=$forum[forumid]">$forum[statusicon]</a></span>
...done. :o
Screenshot/attachment shows what it looks like.
Tralala
03-18-2007, 04:42 AM
Reserved.
rjmjr69
03-18-2007, 05:15 AM
Dont work for me
Tralala
03-18-2007, 05:17 AM
Doesn't work, how? Does the link not show up at all? Or does clicking it not result in showing that forum's new posts?
rjmjr69
03-18-2007, 05:38 AM
Sorry for being so vague. No it does not appear at all. I have VB 3.6.5 checked the edit multiple times still not displaying.
Tralala
03-18-2007, 05:41 AM
Check both screenshots. Neither of those show up?
rjmjr69
03-18-2007, 06:25 AM
Nope neither show. And I made multiple new post's
www.binarytechzone.com
Tralala
03-18-2007, 07:39 AM
I suspect it's an issue with your unique skin. Can you try in another skin, like the vBulletin default, just to confirm? By no means am I an advanced coder... but this is a real simple one, and it works for me with two skins.
-shrug-
rjmjr69
03-18-2007, 09:09 AM
I tried the default still nothing. does OLD show up instead of new? lol Cause I have that showing on some threads....lol
WhaLberg
03-18-2007, 09:34 AM
rjmjr69, you are doing something wrong. I checked whether there's something wrong in the codes or not, but there is nothing wrong.
Congratulations and thanks Tralala.
rjmjr69
03-18-2007, 11:09 AM
Must be me usually is. But I have gone over this a million times and cleared all cache and everything oh well was worth a shot. Thank you though.
rjmjr69
03-18-2007, 11:27 AM
I do not know what the heck is happening now. Here are the two templates to edit I can't figure out what I did
62009
62010
Tralala
03-18-2007, 02:37 PM
I do not know what the heck is happening now. Here are the two templates to edit I can't figure out what I did
For starters, you didn't add the code to the FORUMDISPLAY template.
(I searched for "search.php?do=getnew&include=$foruminfo[forumid]" -- the important bit -- and found nothing.
You have a heavily modified skin, so with mods like this you'll often have to figure things out on your own. In your case, at least for FORUMDISPLAY, find:
<td class="tcat" width="100%" align="left"><span class="smallfont"><strong>$vbphrase[threads_in_forum]:</strong> $foruminfo[title]</span></td>
and replace it with:
<td class="tcat" width="100%" align="left"><span class="smallfont"><strong>$vbphrase[threads_in_forum]:</strong> $foruminfo[title] <a href="search.php?do=getnew&include=$foruminfo[forumid]">(new in <b>bold</b>)</a></span></td>
harlita
03-18-2007, 09:00 PM
Ah! Good! I was looking for where to add the span class.
You rock. thanks so much! Yeap - works great and I'm running 3.6.5
LisaD1
03-18-2007, 09:20 PM
Installed on my forum and works great! :up: Thanks :D
Atakan KOC
03-26-2007, 07:46 AM
Thanks........
Darat
04-09-2007, 07:40 PM
What a nice little mod that is really useful for members, the best kind - thanks!
rotti
04-10-2007, 08:18 AM
Hi where I can this chance from old to neu. i have a german board and old was in englisch am spent.
old >> alt
new >> neu
thanks
harlita
12-20-2007, 07:24 AM
Installed again on 3.6.8 and works exactly as indicated. Thanks dude
ringleader
11-01-2008, 07:16 PM
Still works on 3.7.3 PL1 - Thanks for the awesome and handy template edit.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.