![]() |
In my opinion "Date and Time" column owe be broader...
|
@FireFly
can you plz post the code 4 this modifications, they are very usefull 4 me, THX, if you'll do that! cYa! |
I'll let AntiOnline do that, after all it is his hack. :)
|
Greetings All:
Geeze, thanks firefly =P I'll work on it tonight and post the updates. |
]YaY :D
|
Just a performance question: when the last 10 searches are exposed this way, I can easly assume most of users will try one or another ...
Question: are these searches cached ? How long they last on the search table in db ? Thanks |
Yes, all searches are cached in the database for 7 days IIRC (not sure about the time).
When the user clicks the link, only the results are shows and the search is not ran again. BTW there is a security issue with this hack that I will post a fix to later... |
Ok, if a user can find a searchid of a search that was done by an admin / mod, and goes to that search, he will see all posts inlcuding these in private forums he shouldn't see.
Of course, this hack makes it even easier to find these searches as they are just one click away. To solve the problem the hack created, replace the query: Code:
$lastsearches=$DB_site->query('SELECT searchid,querystring FROM search WHERE querystring!="" ORDER BY searchid desc LIMIT 0,10'); Code:
$lastsearches=$DB_site->query('SELECT searchid,querystring FROM search LEFT JOIN user USING (userid) WHERE querystring!="" AND usergroupid NOT IN (5,6,7) ORDER BY searchid desc LIMIT 0,10'); |
thx!
|
Quote:
O-T: have you noticed the small bug in search query_string when someone put the star BEFORE the word instead after ? :surprised This should be a bug due to some special char in regexp search. Submitted to vb.com, anyway... Bye and thanks again. |
All times are GMT. The time now is 08:41 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:
|