The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Add a Separate Page to your Forum to search Last XX Days Details »» | |||||||||||||||||||||||||||
Add a Separate Page to your Forum to search Last XX Days
Developer Last Online: Aug 2006
This is a simple hack.
What is does is adds a new page to your forum to allow the user to view posts by the last xx number of days. What's different in this hack is that we don't replace the "get daily function" (which has been the big hurdle with this type of hack). This only adds a new php page that can be linked to from anywhere in the forum to search by the last xx days. Very simple to do and install time is about 10 minutes and should work with all later versions of vb. Here is a working online example -Day Search . In my version it just creates a text link to the day search page the we create (from instructions) where the user can search from the last xx days. Simple and easy enough. Credits go to c-pr0mpt and the search days hack by Vincent "MW" Chan who created two hacks which I modified into one to suit my needs. ***pretty easy hack just requires some php pages to be changed and a few template changes**** Mike ps...instructions are in html format please note- this hack has been updated on May 4, 2003 to include suggestions in the threads below Show Your Support
|
Comments |
#12
|
|||
|
|||
Good hack, thank you, I have already installed it!
|
#13
|
|||
|
|||
Is it possible to exclude forums that a regular search would find? I have Usenet Groups on my site but would like this hack to just show results from my regular forums.
|
#14
|
||||
|
||||
Quote:
Hope this helps. Mike |
#15
|
||||
|
||||
Thanx!!!
Nice Hack |
#16
|
||||
|
||||
Hi,
nice hack! Is it possible to have a field in User CP where the user can define how many days he normally wanted to show? Maybe there could be a dropdown field with 1-x days and one called "variable". if this is choosen the user can enter the value in the template.??? Thanks. |
#17
|
|||
|
|||
thanx indiamike looks great.
btw nice forum going to install this one |
#18
|
|||
|
|||
Thanks IndiaMike , just what my (ab)users have been asking for.
|
#19
|
|||
|
|||
Thanks for the great hack, this is exactly what I was looking for. I can't believe that they still haven't added this feature to the standard vbulletin, even in the v3 beta.
I made a few tweaks to the searchinfo template code that you may want to change in the original. I think the following lines have the text in the wrong place. The "To search for all..." text does not appear in the same size or color as the other search page tables. Code:
<td bgcolor="#1D6AA0"><b>To search for all posts by xx days click below</b> <smallfont color="#EEEEFF"></smallfont></td> Code:
<td bgcolor="#1D6AA0"><smallfont color="#EEEEFF"><b>To search for all posts by xx days click below</b> </smallfont></td> Code:
<a href="daysearch.php"> |
#20
|
||||
|
||||
Thanks for updating some of the hack. It's a way old hack (over a year now) so any additions or corrections are welcome. I will update the file in a few days.
It's such a simpler hack but I still find myself using it after all this time. Cheers Mike |
#21
|
|||
|
|||
Glad to see you're still following this thread. Thanks for making the hack available. I think people will keep using it until the developers add this feature to the standard vbulletin, which it seems they have no interest in adding to v3 at this time.
Of course, shortly after adding this hack, someone asked if there was a way to sort the results. After some tinkering, I figured out how to do this. You need to modify an additional line in the search2.php file as follows. Find the following line in the "Start Get Daily" section of search2.php: Code:
eval("standardredirect(\"".gettemplate("redirect_search")."\",\"search.php?s=$session[sessionhash]&action=showresults &getnew=true&searchid=$searchid\");"); Code:
eval("standardredirect(\"".gettemplate("redirect_search")."\",\"search.php?s=$session[sessionhash]&action=showresults &getnew=true&searchid=$searchid&sortby=".addslashes($sortby)."&sortorder=".addslashes($sortorder)."\");"); Feel free to add these changes to the hack if you want. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|