PDA

View Full Version : Miscellaneous Hacks - Display X Most Recent Searches


Mephisteus
08-06-2008, 10:00 PM
Hack name: Most Recent Searches
Version: 1.01
Author: Mephisteus (Sebastiaan)

Steps:
1 product import

Info:
Show the X most recent searches

Tested on:
3.7.2 - OK
Note: I have added a product dependancy for vBulletin 3.7.0 at minimum. It might work on earlier versions, it might not.

Feature
- Choose the X for the X amount of most recent searches

Noteworthy stuff
It only tracks Keyword searches and it adds a new most recent search for each and every single one executed.

MAKE A BACKUP
I will not be held responsible for any damage this hack may cause to your forum.
This hack is NOT supported. If you get support, consider yourself lucky.
I reserve the right to REMOVE the hack at any time without prior notice.

Please keep any bug reports in this thread.

History
1.0.1
1 table created (mrs_search)
2 new plugins (search_process_start, cron_script_cleanup_hourly2)
1 plugin altered (search_intro)
1.0.0
Initial release

Requested by CarterMarkham (https://vborg.vbsupport.ru/showthread.php?t=187074)

CarterMarkham
08-07-2008, 01:26 AM
1.0.1 coming :D

Mephisteus
08-07-2008, 01:44 AM
Fixed, turns out you need to enable the "vBulletin Default (Will be replaced by upgrade scripts)" option. Who thought of that!

CarterMarkham
08-07-2008, 01:53 AM
Thank you for making this!

Marco van Herwaarden
08-07-2008, 06:19 AM
I hope you do realize that permissions are not considered. This means that if an admin makes a search, this can also be seen by any member.

Mephisteus
08-07-2008, 09:40 AM
I'm pretty aware of that, cause, ya know, I wrote it.

If that's a problem, don't use it. If you want to make it so that it doesn't and release that, go right ahead. I tagged the whole "Re-usable Code" thing for a reason :p

CarterMarkham
08-07-2008, 10:36 AM
So this is a "rolling" display? Is there a way to make it like the one for 3.5? Where it just shows the last 15 searches no matter what time. I have a small board and people dont search every 15 minutes.

Mephisteus
08-07-2008, 11:22 AM
Err, it still shows the latest searches on my test board. The ones I made last night well over 12 hours ago.

[edit]
And *now* they're gone. I'll look into it.

[edit 2]
Found what it is, working on a fix.

[edit 3]
Fixed

CarterMarkham
09-06-2008, 01:53 PM
This is working great, but is there a way to get rid of the double search thing?

MrD
05-08-2011, 09:29 AM
Hi,
will it be a vb4 Version?

YOODA230
01-12-2015, 02:20 PM
i need it to 4.2 and on footer as a cloud or somthing nice