Version: 1.0.4, by Boofo
Developer Last Online: Jun 2012
Category: Miscellaneous Hacks -
Version: 3.5.0
Rating:
Released: 08-28-2005
Last Update: 10-11-2005
Installs: 196
Uses Plugins
No support by the author.
vB3.5 15 Most Recent Searches Made By Our Members
Version 1.0.4
(By Boofo)
What does this product do?
This product 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. Searches made in your private forums are not shown to members who do not have access to those forums. It is now fully permissions based.
Version Information:
Version 1.0.0 --Initial release
Version 1.0.1 --Fixed error for new sites when the search table was empty.
Version 1.0.2 --Product is now fully self-contained. No more need for a template edit. Also changed the product name.
Version 1.0.3 --Fixed search template from repeating itself on each subsequent search.
Version 1.0.4 --Fixed searchee name being blank on a guest search.
Upgrade Instructions:
1. You MUST un-install the old product before upgrading due to the product name being changed.
1. Go to the "search_forums" template and remove "$last15searches" (sans quotes).
2. Install the product.
Credits:
A big thank you goes out to EvilSL1 for co-authoring the vB3.0 version, on which this hack has been converted.
Installation overview:
----------------------------
Products to install: (1)
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
But only in those forums you allow guests to view.
What do you mean? Are you saying that results will only display if guests have the permissions to view the forums in which the search results found information?
LOL that was a mouthful...
So if guests cannot view any of the forums, they will be unable to view the last 15 searches?
What do you mean? Are you saying that results will only display if guests have the permissions to view the forums in which the search results found information?
LOL that was a mouthful...
So if guests cannot view any of the forums, they will be unable to view the last 15 searches?
Exactly!
Try searching for a word that is in a private forum and you will notice that it will not show up to anyone who doesn't have permission to view that forum. As I stated in the first post, this is now FULLY permissions based.
What do you mean? Are you saying that results will only display if guests have the permissions to view the forums in which the search results found information?
Even better then just that. If a search for a word has for example 5 resulting threads, of which 3 are in public forums, and 2 in privat. It will show to those that have no access to the privat forum, that there are only 3 results.
In Marco's example, the Admin, who has access to all forums would see the results as: 5 Threads while the other user who does NOT have access to the private forums would see the results as: 3 Threads.
I tried to do this on the vB 3.0 version but didn't have any luck at it then. Marco's expert coding allowed it to happen for this version now.
On RC3, has anyone gotten repeated looping? Like when going to the search page you will see, for example 5 results and 5 tables repeating the same information.. Do a new search, and you will notice 6 seperate tables (with all the correct data) but it keeps creating brand new template tables per search term.. Anyone?
All this hack does is read the last 15 rows from the search table. It is very possible to have what looks like duplicates, but are really not, if you search for the same item more than once. It did the same thing in RC 2 and it working as designed.