PDA

View Full Version : [RELEASE] NewPost and LastPost indicators on Search


07-31-2000, 10:55 PM
This hack puts the http://vbulletin.com/forum/images/firstnew.gif and http://vbulletin.com/forum/images/lastpost.gif indicators on the search results form. Clicking them will go to the first new post and the last post respectively.

First replace your "searchresultbit" template with this:

You will need to click on this and view the source code and copy it. I can't post it because vB parses the bgcolor codes and replaces them with this forums setting.

http://www.hedgehogwheels.com/searchresultbit.txt

Next edit search.php

Find:

$lastpostdate=date($dateformat,$searchresult[lastpost]+(($timeoffset+$bbtimezoneoffset)*3600));


Addd this Right After it:


// Search Hack begin;
$lastreplytime=date($timeformat,$searchresult[lastpost]+(($timeoffset+$bbtimezoneoffset)*3600));
$threadid = $searchresult[threadid];
if ($searchresult[lastpost]>$bblastvisit)
{
eval("\$gotonew = \"".gettemplate("forumdisplay_gotonew")."\";");
}
else
{ $gotonew = ""; }
// Search Hack End;


[Edited by rangersfan on 07-31-2000 at 08:26 PM]

07-31-2000, 11:00 PM
just put in my word... this works perfectly the first time on my forum ... so no need to hesitate :)

07-31-2000, 11:12 PM
Maybe I'm missing something, but where are you supposed to add that code? In the template?

I can't wait to install this!

07-31-2000, 11:26 PM
Sorry Jim I screwed up my edit, take a look now it is fixed.

07-31-2000, 11:49 PM
Works beautifully! Thanks!

:)

08-03-2000, 05:18 AM
Once again fine job Freddie!

12-01-2000, 11:33 PM
I tried to install this hack I would like it very much, but I can't find the line in search.php right after that I have to write the new code.

I have search.php3; vB 1.1.4 and there is no the line you show but this one:

$lastpostdate=date($dateformat,intval($searchresul t[lastpost])+intval($timeoffset+$bbtimezoneoffset)*3600);

I tried, anyway, to put the code after this, but it doesn't work.

Thank you Freddie for you answer.
Sinotto

12-02-2000, 07:41 AM
Eh this hack is most likely for 1.1.3 and not 1.1.4