PDA

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


31 Jul 2000, 23:55
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:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Addd this Right After it:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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

01 Aug 2000, 00:00
just put in my word... this works perfectly the first time on my forum ... so no need to hesitate :)

01 Aug 2000, 00:12
Maybe I'm missing something, but where are you supposed to add that code? In the template?

I can't wait to install this!

01 Aug 2000, 00:26
Sorry Jim I screwed up my edit, take a look now it is fixed.

01 Aug 2000, 00:49
Works beautifully! Thanks!

:)

03 Aug 2000, 06:18
Once again fine job Freddie!

02 Dec 2000, 00:33
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($searchresult[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

02 Dec 2000, 08:41
Eh this hack is most likely for 1.1.3 and not 1.1.4