![]() |
vB3 15 Most Recent Searches Made By Our Members
vB3 15 Most Recent Searches Made By Our Members
Version 1.1 (By Boofo and EvilLS1) What does this hack do? This hack will display the last 15 searches made by your members on your main site search page at the top. The search words are then linked to those search results. It uses your censor options to make sure nothing bad shows up. The searchee will also be visible, but only to Admins. The search box will only show up when searches have been made. The Admin, Supermod and Mod searches will not show up in the listing. It is done this way so any searches made in your private forums are not shown to the regular members. Credits: A big thank you goes out to AntiOnline for his original "Last 10 Searches" hack for vB2, partly on which this hack is based. Version Information: Version 1.0 --Initial release Version 1.1 --Re-did the template code to make it match the default style a little better and also added the ability to collaspe the table. Installation overview: Files to edit: (1) --search.php Templates to edit: (1) --search_forums For those wanting the HTL file for this, thanks to Frank, you can get it from this post. ;) The first image is what the other members will see and the second image is what the Admin will see. |
Great Hack, thanks Boofo ;)
|
Thank you, sir. Don't forget the install button. ;)
|
Thank you, is great =)
|
Just a suggestion Boofo :)
Wouldn't it be better placing the two instances of $lastsearch in to templates? lastsearch and lastsearch_staff for example.. Great mod, however the vB2 version was a concern on server load for some (not me personally), how does this compare? |
I didn't want to clutter up the template with too much code on this. I tried it that way first. Maybe I can re-do a part of it and use conditionals. I'll look at it.
As far as server load goes, I really couldn't say too much about that since my site is so small. It seems to run like it isn't even there on my site, but that might not be the best indicator. All I can say is try it and let me know what the server load looks like. ;) |
Quote:
|
Great Boofo!!
Me says thank you! |
Quote:
|
Sweet, big fan of this on vB2, glad to see it come to vB3.
|
Could it log IP or user names for admins to show up?
|
Nice one Bob.
/me clicks install. |
Quote:
|
Quote:
|
Thanks
Lange clicks Install. |
Hmmm...I'm a bit confused...I'm not seeing the table with recent searches.
|
It won't show up for Admins and Mods. And the table doesn't show up until any searches are made. Log in as a registered user and make a search and then you will see the table show up. Then log in as Admin again and you will also see the searcher's name in the table. ;)
|
me clicks install... and gave the thread a five star rating...Great hack! Keep up the good work.
David |
Very nice, installed and working. :)
[high]* Alien clicks evil install button.[/high] |
Thank you, gentlemen. ;)
|
Boofo, here's an HTL file for it (same version as you currently have in text file).
Feel free to include it in your release :) |
I would want to see who made the search. I'm the admin and want to see the username - if it was out member or the ip - if a guest on our board ...
|
Quote:
Quote:
|
Thank you, Frank. ;)
I'll link to your post with the HTL file from the first post. ;) |
Just installed this with the HTL on RC4 - running smoothly. Thanks for this. :)
|
You're getting to be one of my best customers. ;)
Thank you, sir. ;) |
I am curious to as this is ignoring some users...I have made it where it shows all users, not some. It shows the like new people, but I know people have been searching a lot more...I just think the hack is not working.
|
The hack is working. It only holds the searches for 24 hours before it deletes them. Keep an eye on it for a few days and you will see that it is working like it is supposed to. ;)
|
Does it log vistors?
Also...I think I should upgrade to RC4. |
No, it doesn't log guest searches.
This hack is running on RC3 on my site with no problems. |
Any way to limit the number of recent searches to, for example 5? 15 is way too much for me :)
|
This is what I'm trying to reduce the number. If this is in error or incomplete, I'd really appreciate a correction!
in search.php find: if ($numqueries > 15){ $numqueries = 15; } and replace both 15s with whatever you like. then find: $lastsearches=$DB_site-> (SNIP) ORDER BY searchid desc LIMIT 0,15"); and change that, too. |
Quote:
Quote:
You also need to click the install button. ;) |
yep, thanks, you got it
/me clicks install |
You're very welcome, sir. ;)
|
does this work with gold?
|
Yes.
|
Thanks, Jason. ;)
|
No thanks necessary, I love it! :D
|
It's people like you, Jason, that make coding hacks like this a pleasure. I wish more people felt like you do about hacks here. ;) Thank you, again. ;)
|
All times are GMT. The time now is 06:21 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|