vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Last 10 Searches (https://vborg.vbsupport.ru/showthread.php?t=35840)

David Bott 06-04-2002 08:39 PM

Quote:

Originally posted by TheCaver
Has the performance issue with this hack been resolved?

I am sorry to answer this with a NO for large sites. Not sure why, as it onmly seems to add 1 query....but it must be a big one. So...Why does it kill the server on large sites? Anyway around this?

AntiOnline 06-04-2002 09:00 PM

Dave:

We have over 90,000 registered members, and get around 6-7 million page views / month, and we've had no performance problems from this hack.

Although, we do run the site off of a dedicated Sun Enterprise 450 =x

David Bott 06-04-2002 09:22 PM

Thanks for the reply...

http://www.avsforum.com see 30,000 unique visitors a day and we run the site off of two Dell Poweredge 2550 server's. Each have two 1 ghz processors, 2 gigs of RAM, and are both run a 128 meg RAID 5 controller (3 - 10,000 RPM SCSI-3 drives). One server is for web, the other for DB. (another server also for ads.)

Not sure what to say...but we have over a million posts and do about 12.5 million page views a month. I do not think the user count matters as much as the posts in this case. As I write this there are 714 members on-line.

I would love to use this with our forum...but when I press the button to got into the search area...It just takes so long and server load goes up.

Anyone, anyone....Buler, Buler?

Kars10 06-05-2002 04:21 PM

Greetings all: very easy to install and very effectiv....if it works. But i had a Problem with it.
My searchresults are displayed but the last one was on 5.6.2002 0.19 . The hack where installed on 12.00 today. I made many searches but nothing whered displayed.
what can i do, .... :confused:
Thanx for youre support.
And please excuse my bad english!! ;)

Kars10 06-05-2002 04:52 PM

Sorry, vorget about it. It works!! Some Stupid Mistake from me... :D

Keyser S?ze 06-06-2002 02:16 PM

how can i change it so it displays it like this results - query - date

also, can i set it to only display the last 5 not 10?

Admin 06-06-2002 02:52 PM

Change the LIMIT 10 in the query to LIMIT 5.

Keyser S?ze 06-06-2002 03:07 PM

Quote:

Originally posted by patvdv


Mone, it's working great for me. What erros are you getting?

also getting this error Parse error: parse error in /usr/home/emusa/emusanet.com/public_html/forums/search.php on line 225


this is line 225 lend."</tr>";

Boofo 06-06-2002 04:49 PM

Mone',

Did you ever get an answer to this question or get it figured out? I'd like to know myself. :)

Quote:

Originally posted by Mone'
hack work perfectly !


patvdv your code is giving me error can you check your code as i'd like to have your layout :)

Mone'




87GTR 06-14-2002 04:16 AM

all of my past search where showing 1 more than the result so I just added this line and now they are ok
Code:

$lastsearchresultscount=sizeof($lastsearchresultscount);
 $lastsearchresultscount=$lastsearchresultscount-1;


Kathy 06-20-2002 12:31 PM

This is a great help to me. Thanks!

I'm wondering about making it possible for admin to see the users on this page? (Or have a page just for admin to see the searches?)

I have an ex-moderator who has been spending hours each day searching our forums. She left under unhappy circumstances (I caught her attempting to do other things in the control panel, underhanded things...... :( ) and now I'd like to know what she is spending her days "searching".

I'd like to just turn off her ability to search. Is that possible to turn one member off from ability to search the forums? In the meantime, this hack will help me to see what she is searching for...I think!

Kathy 06-20-2002 01:05 PM

One more question abuot this hack. If a person searches the forum by "membername" does this search show up? All I see are "keywords" and I think I might be interested in seeing (atleast for a while...) the membernames that are being searched.

Thanks!

FleaBag 06-20-2002 02:25 PM

Installed on 2.2.6, running well. Thanks! :D

Kathy 06-21-2002 02:26 AM

Is there anyway of having the "username" searched show up on this list? You know...not the keyword but the username (not the one who is searching but the username that is being searched).

This would really help me out for a while....

Thanks!

Roxie 06-25-2002 08:39 PM

My searches aren't showing on the page. Hmmmm.

Admin 06-26-2002 05:31 AM

Admins' and mods' searches do not appear.

josh929 06-28-2002 08:15 PM

cool hack.

i modified it so that everyone's searches appear (including mods and admins).

roxie, you can do that by removing this from the hack modification:
Code:

AND usergroupid NOT IN (5,6,7)

Schorsch 07-16-2002 04:27 AM

great modification, thank you :)

regards,
Schorsch

Destee 08-08-2002 02:12 AM

Great Hack!

Thank You ... Clicking Installed

Destee

Derek 08-10-2002 04:25 AM

I've installed this, but will it be possible for someone to code up the look to resemble the mods done by Chen for vB.org's last 10 searches?

FleaBag 09-03-2002 02:59 PM

Works a treat with 2.2.7. Cheers. :D

Da`Nacho 09-03-2002 06:19 PM

Quote:

Originally posted by josh929
cool hack.

i modified it so that everyone's searches appear (including mods and admins).

roxie, you can do that by removing this from the hack modification:
Code:

AND usergroupid NOT IN (5,6,7)

You do realize that by doing this people can view your admin forums, right??? Or at least the threads from that forum returned in the results...

Keith 09-11-2002 05:25 PM

Mine shows quantity 1 more than actual amount of results. So if it shows 3, there are always 2.

Using 87GTR's suggestion on page 6 of this thread works, but now shows 1 when there are indeed no results. So if it shows 1 result and you click on it, there could be either 1 or none. Very weird.

PHiXTiT 09-12-2002 02:11 PM

Working great on 2.2.7!

5 Stars...

neocorteqz 09-16-2002 02:15 AM

Nice hack, Thanks.

And i don't think you want to have Mods and admins searches shown...unless there is a way of checking user permissions in the search(if the user is an admin or mod then it shows All post by the admin or mod). IMO, a serious flaw in security.

neocorteqz 09-16-2002 02:17 AM

Quote:

Originally posted by Da`Nacho


You do realize that by doing this people can view your admin forums, right??? Or at least the threads from that forum returned in the results...

I discovered that quite awhile back. Before i took over the Current forum (yes you know which one:p ;)) A mod posted a Search on a Admins post and I saw every thread in the private mods forum. with a small bit of his post.

FleaBag 10-29-2002 08:52 PM

Working like a dream with 2.2.8. Thanks again! :)

Chris M 10-29-2002 10:11 PM

Gamer:mad: - https://vborg.vbsupport.ru/showthrea...&postid=316171

Satan

DrkFusion 10-29-2002 10:13 PM

Quote:

Originally posted by hellsatan
Gamer:mad: - https://vborg.vbsupport.ru/showthrea...&postid=316171

Satan

LOL
All the posts in full releases either has working, or 2.2.8, or 2.2.7

-Arunan

Chris M 10-29-2002 10:15 PM

Indeed...

Please stop Gamer...

Satan

FleaBag 10-29-2002 10:24 PM

At least DrkFusion had the sense to PM me rather than posting in every thread behind me - which I'm quite unlikely to read. Fear the brain power!

N9ne 10-29-2002 10:58 PM

You read most of the replies, so it wasn't unlikely you were going to read them :p

FleaBag 10-29-2002 11:11 PM

I only read them because I got the PM from DrkFusion and saw how many times Satan had decided to post!

Dynamic One 11-01-2002 07:08 PM

Thanks will try it.

Xer 12-01-2002 03:55 PM

working on 2.2.9 thx!!!

Visionray 12-03-2002 07:20 AM

Strange, its not really working for me. After I installed, one search showed up under latest searches, so I thought it was working. However, whenever I search something, it doesnt update the search list, it only shows the same one.

any ideas?

Boofo 12-03-2002 07:36 AM

Quote:

Originally posted by hellsatan
Gamer:mad: - https://vborg.vbsupport.ru/showthrea...&postid=316171

Satan

Chris,

Installed on 2.2.9 :)

;)

Visionray 12-03-2002 07:37 AM

Nevermind I just noticed it does not display mods/admins searches

Icheb 12-11-2002 10:59 AM

I just made a search as admin in a private forum and then logged in as a regular user, tried to view the results of the search i just did by using the search id and it didn't show up any results. However, when i went back to the search page I could see which query has been run and how many results were returned.
Some of those security issues were apparently solved, but not every one of them as it seems.
The regular user can still see what an admin/mod was looking for and how many results were returned, although you don't see the actual results. This is not necessarily a security issue, but a privacy issue.
Let's assume the following: An admin searched for "ban AND user x", the reason why he did this is not really relevant, as this scenario is hypothetical. Now user y finds out that there was this search and that several results were returned, he tells this user x and user x makes it public.

Now what? Or am I just being paranoid?

Icheb

Squirre1 12-23-2002 07:31 AM

Hey FireFly, you might want to check me on this one...

I looked into this because I have not been able to see any searchs that I am performing.. Based on the below quote from the MySQL manual:

Quote:

If there is no matching record for the right table in the ON or USING part in a LEFT JOIN, a row with all columns set to NULL is used for the right table.
If the search was performed by a guest which has an account value of "0", it tries to do the NOT IN which it can not compare to anything because that account does not exist in the user table...

I think this should be a correct query, I have tested here and it is working with no issues:

SELECT searchid,postids,dateline,querystring FROM search LEFT JOIN user USING (userid) WHERE querystring!="" AND (usergroupid NOT IN (5,6,7) OR search.userid = "0") ORDER BY searchid desc LIMIT 0,10

Also, as a note to some people, I had to upgrade my search.php in order the get the links created correctly so other users could access them. Otherwise, I got a user is not authorized message.

Enjoy this info folks.... !!


All times are GMT. The time now is 07: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
  • Page Generation 0.02068 seconds
  • Memory Usage 1,825KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete