![]() |
Great hack!
Works great! Thanks! - Alex |
nice hack
|
Hi Boofo, my old friend, very nice Hack !
clicked install thank your ;) |
vb is also only showing the last hour of searches for me. This was on a fresh 3.0.3 install on my test board. So I did some investigating. I figured I would start at the scheduled tasks, so I took a look at the "Hourly Cleanup" entries. In the file ./includes/cron/cleanup.php I found:
PHP Code:
If I have problems I will report back. |
Quote:
|
I am getting this error;
Code:
Database error in vBulletin 3.0.3: My table prefix is vb3_ I'm running 3.0.3 :) |
JimpsEd,
Change to following queries. They will add the table prefix for you. Change: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Make sure to click install. ;) |
Thanks for the tips :)
But, unfortunatly nothing is showing at all - just nothing. Even from a clean install of your mod with your changes (and yes, template stuff correct); http://forum.ugamer.net/search.php? :( Not even an error message. ( I have also testing searching as regular user, and also turning off User Group *not** 7,6,5 |
Quote:
|
Still definetly not working :surprised:
I cannot understand, i've resinstalled the hack, even installed it on a blank forum install. Attatched is my Search.php and Template file if you can see anything wrong. The Search Template is a reverted one, with the hack added. The same goes for the search.php file, only with your above query modifications. I have tried rebuilding search indexes etc. |
Quote:
|
Attatched, is an extract of the search.php (relevant), too save time.
|
Quote:
|
Quote:
|
Quote:
I think he did the template snippets a few posts up if you want to look at it. ;) |
Quote:
Mine: PHP Code:
PHP Code:
Then another query: mine: PHP Code:
PHP Code:
So, I would reset those 2 queries to the ones in the install file, just to see if that gets you anywhere. I would have thought they would have worked broken up like that. I will look at the template in a bit. edit: our templates are identical. |
Hi there;
I commented out that line, following the install.txt instructions if Iwanted admin searches to show up. Because I use table prefixes in my install, Boofo kindly designed those queries to allow it to auto detect my table prefixes :) I'll try without line breaks as you said. Thank you all, for your time. |
I installed this on vb3.0 with no problema
but in another with vb3.0.3 im having some problems. Quote:
|
Quote:
forosearch forouser |
Nice hack.
|
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:
|
hmmm dont seem to see it at all on either of me styles i added everything as mentioned in the install
.matt |
yeah, this didnt work.
i use 3.0.2 |
cool hack,
small, easy and useful :) joergh |
I've decided to abandon this, not because it's a bad hack. It seems to work great everywhere but my server lol. Need to cut down on excess code these days. I might look back into trying to get it to work when things calm down!
|
Quote:
PHP Code:
|
Great hack. /me hits install button.
Is there a way to make another usergroup view who searched for what? ie: super moderators to be able to see who searched for what as well as administrators. |
Quote:
Look for the following in search.php and add the usergroup in there with an OR statement. ;) PHP Code:
|
I've installed and tested this okay, but... is it the normal behaviour of this hack to forget the most recent searches after a certain period of time or...?
|
Quote:
https://vborg.vbsupport.ru/showpost....&postcount=116 |
this don't work with full text on?
|
All times are GMT. The time now is 09:44 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:
|