![]() |
Quote:
|
Boofo - Great mod! Do you have some php code that can be run to view ALL searches done which the admin can install/hide somewhere separately from the VB output to keep track of all searches? Maybe this admin version could have a text box so you can specify the amount of entries to display.
|
Yeah tables with a prefix have problems with this hack.
|
I can't get it to work... i use vb3_ as my table prefix... any way to make it work?
Thanks!! Here's the error I get... Database error in vBulletin 3.0.3: Code:
Database error in vBulletin 3.0.3: |
I got it to work...
I changed the SELECT query (line 14 of the part to be added to search.php) from: Code:
$lastsearches=$DB_site->query("SELECT search.searchid,search.orderedids,search.dateline,search.query,search.userid,user.username,user.userid,user.usergroupid FROM " . TABLE_PREFIX . "search," . TABLE_PREFIX . "user WHERE query!='' AND user.userid = search.userid AND usergroupid NOT IN (5,6,7) ORDER BY searchid desc LIMIT 0,15"); Code:
$lastsearches=$DB_site->query("SELECT vb3_search.searchid,vb3_search.orderedids,vb3_search.dateline,vb3_search.query,vb3_search.userid,vb3_user.username,vb3_user.userid,vb3_user.usergroupid FROM " . TABLE_PREFIX . "search," . TABLE_PREFIX . "user WHERE query!='' AND vb3_user.userid = vb3_search.userid ORDER BY searchid desc LIMIT 0,15"); I also wrapped the search_forums template edit with this conditional, because I wanted only Admin to see the recent searches. Code:
<if condition="$bbuserinfo[usergroupid] == 6"> |
One more question... Is there some sort of time limit that the most recent searches are cached for?
When I tested it around 8pm it listed like 4 searches, now it's a bit after 10 and they aren't listed any more? Thanks! |
Quote:
PHP Code:
|
*clicks install
thats now 100 installs well done :) |
Works great on VB3.0.3 THANK YOU!
|
Quote:
|
All times are GMT. The time now is 09:34 PM. |
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:
|