vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - vB3.5 15 Most Recent Searches Made By Our Members (https://vborg.vbsupport.ru/showthread.php?t=95270)

Dave-ahfb 01-19-2006 01:54 PM

I am showing nothing at all.

1) searches made within five minutes, still not showing. (not an issue with cron cleaning searches)

2) The only changes I see on search_forums are from adding google adsense.

3) product is enabled, as are (2) hooks

4) link: http://www.ahfb2000.com/webmaster_help_desk/search.php

I may well be wrong but it seems obvious to me that the xml failed to write to the search_forums template. Can somebody post the changes that should be made to this template.

TheMusicMan 01-24-2006 01:06 PM

Sorry to ask this dumb question... but i have installed this plug-in, yet I don't see anything on my forums.

Is there an area in AdminCP that controls who sees this that I have yet to spot...?? Sorry for being dull...

funinthesun 01-24-2006 01:09 PM

It only shows up searches that are done recently. Try doing a search your self then taking a look. The cron deletes the search list every hour.

TheMusicMan 01-24-2006 01:13 PM

Thanks for the quick response funinthesun.

However, I did a quick search for 'coding', and yet I still see nothing on the forumhome page...? is this where it will appear?

EDIT: Damn... I see it now on the Search.php pages... sorry...:(

Also... is there any way of controling who actually sees this search list? it would be nice if we were able to control via usergroups et al...

Guest210212002 01-25-2006 03:59 PM

/me clicks install

Dave-ahfb 01-25-2006 09:43 PM

Quote:

Originally Posted by Dave-ahfb
I am showing nothing at all.

1) searches made within five minutes, still not showing. (not an issue with cron cleaning searches)

2) The only changes I see on search_forums are from adding google adsense.

3) product is enabled, as are (2) hooks

4) link: http://www.ahfb2000.com/webmaster_help_desk/search.php

I may well be wrong but it seems obvious to me that the xml failed to write to the search_forums template. Can somebody post the changes that should be made to this template.


anybody have an idea?

Dave

Boofo 01-25-2006 11:37 PM

Quote:

Originally Posted by Dave-ahfb
anybody have an idea?

Dave

Guests won't see the searches. If you want to make a test account with Admin CP priviledges, I can take a look and see if everything is set up right.

Dave-ahfb 01-26-2006 12:42 PM

Quote:

Originally Posted by Boofo
Guests won't see the searches. If you want to make a test account with Admin CP priviledges, I can take a look and see if everything is set up right.


pm sent

Nathan2006 03-15-2006 11:01 PM

Works great!

Thank you

Install

Pickalo 03-16-2006 08:21 PM

Someone asked this a while ago, but is there any way to get this outside of the search.php page? Such as on the forumhome or something? Great hack - thanks :)

bashy 03-18-2006 08:02 AM

Hi boofo

This iant showing any last searches for me
I have imprted the product and still no go for launch...

I have checked for $last15searches and cannot find it so it aint that
What was the name of the old product, just in case ihad that installed,
but i dont think so?

EasyTarget 03-19-2006 12:31 AM

have you made any searches since you intalled it?

bashy 03-19-2006 06:23 AM

only about 20 odd lol

bashy 03-19-2006 01:41 PM

Hi, this does work ok for me sorry.....
I was checking Post and title search, not the main advanced search..

Is there a way to get this to show atop of the search results?

Julie 03-20-2006 07:31 PM

Thanks for the updated code! :)

*updates*

mikeinjersey 03-28-2006 02:10 PM

Hello this is the first Plugin i installed on my forums. It seemed to install flawlessly. Nice mod.

I have a few questions.

#1 I have 3.5.4 installed...Should i uninstall this Plugin when upgrading to the next version of vBulletin? (whenever its released)

#2 Im also having the problem with only a few searches being shown an hour...when many more are actually being done. Could someone tell me which Cron's i should disable so that the cleanups dont erase the data?

thanks

cudaxtreme 04-06-2006 01:56 AM

its in /includes/cron/cleanup.php

//searches expire after one hour
$vbulletin->db->query_write("
DELETE FROM " . TABLE_PREFIX . "search
WHERE dateline < " . (TIMENOW - 2592000) . "
### Remove stale searches ###

change the timing in green

cudaxtreme 04-07-2006 02:10 PM

Somehow the search results is still available to guests, anybody have any idea what went wrong?

http://www.asiareefing.org/forums/search.php

Boofo 04-07-2006 02:58 PM

Quote:

Originally Posted by cudaxtreme
Somehow the search results is still available to guests, anybody have any idea what went wrong?

http://www.asiareefing.org/forums/search.php

Because you allow guests to search. ;)

cudaxtreme 04-07-2006 10:59 PM

hrmmm ... is there a way to allow guest to search yet not display the top seaches to them?

Boofo 04-07-2006 11:12 PM

Quote:

Originally Posted by cudaxtreme
hrmmm ... is there a way to allow guest to search yet not display the top seaches to them?

You could do a conditional in the template.

cudaxtreme 04-08-2006 08:08 AM

Thanks but I'm a total newbie to this,

Could you please advise how can I do this?

cavorite 04-29-2006 11:02 PM

Installed and working great :) , but I still see members with "Searching Forums" as a location on Who's Online, and no new searches are displayed. Is there any way to know what these people are doing? We have a few that show this status nearly all the time, and I'd like to know what they're looking for (or looking at).

Boofo 04-29-2006 11:39 PM

Quote:

Originally Posted by cavorite
Installed and working great :) , but I still see members with "Searching Forums" as a location on Who's Online, and no new searches are displayed. Is there any way to know what these people are doing? We have a few that show this status nearly all the time, and I'd like to know what they're looking for (or looking at).

The search table gets emptied every hour by a cron job. ;)

Do the searches you make show up?

cavorite 04-30-2006 12:06 AM

Quote:

Originally Posted by Boofo
The search table gets emptied every hour by a cron job. ;)

Do the searches you make show up?

Searches are showing up correctly for me and from other members. I've just edited the cleanup job to extend the time beyond an hour, in case that was having something to do with it. However, I'm looking at the Who's Online right now and seeing members with the "Searching Forums" location, and yet no new searches are showing up in the "Last 15" list. :confused:

Boofo 04-30-2006 12:09 AM

Quote:

Originally Posted by cavorite
Searches are showing up correctly for me and from other members. I've just edited the cleanup job to extend the time beyond an hour, in case that was having something to do with it. However, I'm looking at the Who's Online right now and seeing members with the "Searching Forums" location, and yet no new searches are showing up in the "Last 15" list. :confused:

They could be sitting on the search page and not doing anything. That happens a lot. I used to get that all the time on my old forums.

Or if they did a search for a word that wasn't found. That would explain the list being empty.

cavorite 04-30-2006 12:17 AM

I understand. It's just that we've got a "situation" with another forum, and a high percentage of these people that are doing this searching thing are from that forum. Love to know what they're looking at...

(Just in case it is an attempt to load the server with search requests, I do have the time between searches at 90 seconds. Also, we're not seeing high load numbers...)

Boofo 04-30-2006 12:39 AM

Quote:

Originally Posted by cavorite
I understand. It's just that we've got a "situation" with another forum, and a high percentage of these people that are doing this searching thing are from that forum. Love to know what they're looking at...

(Just in case it is an attempt to load the server with search requests, I do have the time between searches at 90 seconds. Also, we're not seeing high load numbers...)

It sounds like they're either not finding whatever it is they are looking for or they are sitting on thre search page waiting for the time to pass so they can search again. ;)

CSS59 04-30-2006 04:26 PM

how do i remove the usernames so members don't see who serched

akanevsky 04-30-2006 04:55 PM

Perhaps you should store the data for this hack in a separate table (or a datastore). That's because vbulletin's searches expire and get erased after a certain amount of time, and your hack seems to draw info from there.

If you choose to store things in a separate place, it should have fields: userid (left join usertable for username), keywords, dateline, resulttype, resultcount. It would be easier to store this in a datastore because then you can strip everything that's more than x number that you wanna show without any extra queries. Just a suggestion :)

Boofo 05-01-2006 03:34 AM

Quote:

Originally Posted by CSS59
how do i remove the usernames so members don't see who serched

The staff is the only one who can see the user names. Regulars users never see them. Look at the 2 pics in the first post. ;)

Boofo 05-01-2006 03:41 AM

Quote:

Originally Posted by Psionic Vision
Perhaps you should store the data for this hack in a separate table (or a datastore). That's because vbulletin's searches expire and get erased after a certain amount of time, and your hack seems to draw info from there.

If you choose to store things in a separate place, it should have fields: userid (left join usertable for username), keywords, dateline, resulttype, resultcount. It would be easier to store this in a datastore because then you can strip everything that's more than x number that you wanna show without any extra queries. Just a suggestion :)

We thought about doing that even in the 3.0 version but decided it against it as I wanted to stay with how it had been done since the "Chen" days. On busier boards the list can stay pretty well filled up as there are usually more searches. The only thing it would be good for is smaller boards, I guess. ;)

SnickersTK 06-19-2006 01:41 PM

Quote:

Originally Posted by cudaxtreme
its in /includes/cron/cleanup.php

//searches expire after one hour
$vbulletin->db->query_write("
DELETE FROM " . TABLE_PREFIX . "search
WHERE dateline < " . (TIMENOW - 2592000) . "
### Remove stale searches ###

change the timing in green

thanks man

TheBlackPoet 06-21-2006 05:29 AM

no errors... i installed it and it works great.. the problem i had is that since it was only a xml, i didnt really read through the dirty details that i've read before on other hacks...
the problem was i didnt know where to go on my test server to verify this hack works...
when i slowed down to re read the instructions it was there... MAIN SEARCH PAGE... SO GO JOB!!

Spiffware 07-17-2006 11:54 PM

whats nice ill hit installed

nerofix 07-18-2006 01:55 PM

sorry for this question, i did install this product but i cant find where it appears o_O

futuredood 07-20-2006 02:05 AM

is their any way to get this to work in the memberinfo page so that it links people with the $post[fieldxx]? (this links people with the same interests)..

Smitty 08-14-2006 03:42 AM

Anyone have this on 3.6?

Kihon Kata 09-02-2006 01:58 PM

Also requesting this on 3.6 Anyone?

zeropaid 09-08-2006 07:28 PM

Just installed and nothing is showing up. I am running 3.5.4.

Do i need to make any changes to the templates?


All times are GMT. The time now is 05:47 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.02092 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
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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