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)

Boofo 08-28-2005 10:00 PM

vB3.5 15 Most Recent Searches Made By Our Members
 
vB3.5 15 Most Recent Searches Made By Our Members
Version 1.0.4
(By Boofo)

What does this product do?
This product will display the last 15 searches made by your members on your main site search page at the top. The search words are then linked to those search results. It uses your censor options to make sure nothing bad shows up. The searchee will also be visible, but only to Admins. The search box will only show up when searches have been made. Searches made in your private forums are not shown to members who do not have access to those forums. It is now fully permissions based.

Version Information:
Version 1.0.0 --Initial release
Version 1.0.1 --Fixed error for new sites when the search table was empty.
Version 1.0.2 --Product is now fully self-contained. No more need for a template edit. Also changed the product name.
Version 1.0.3 --Fixed search template from repeating itself on each subsequent search.
Version 1.0.4 --Fixed searchee name being blank on a guest search.

Upgrade Instructions:
1. You MUST un-install the old product before upgrading due to the product name being changed.
1. Go to the "search_forums" template and remove "$last15searches" (sans quotes).
2. Install the product.

Credits:
A big thank you goes out to EvilSL1 for co-authoring the vB3.0 version, on which this hack has been converted.

Installation overview:
----------------------------
Products to install: (1)

yoyoyoyo 08-29-2005 01:10 PM

Thanks once again, Bob!

Boofo 08-29-2005 01:12 PM

You're very welcome, sir. Enjoy! ;)

amykhar 08-29-2005 01:20 PM

Dumb question. This doesn't show people doing the getnew search does it? My members do that every 2 seconds, which would make it impossible to see real search terms.

Boofo 08-29-2005 01:22 PM

Quote:

Originally Posted by amykhar
Dumb question. This doesn't show people doing the getnew search does it? My members do that every 2 seconds, which would make it impossible to see real search terms.

No, it only shows specific words/terms they are searching for. ;)

VirtualMind 08-29-2005 01:40 PM

working fine here

*installs*

amykhar 08-29-2005 01:41 PM

Then I'll give it a shot. Thanks Bob. (See, I spelled your name right! :D )

Boofo 08-29-2005 02:02 PM

Quote:

Originally Posted by amykhar
Then I'll give it a shot. Thanks Bob. (See, I spelled your name right! :D )

Oh, sure, spell it right when I release something. ;)

And you're welcome. ;)

chanzero 08-29-2005 03:35 PM

Quote:

Originally Posted by Boofo
Oh, sure, spell it right when I release something. ;)

And you're welcome. ;)

cool :) thanks boofo *installs*

FleaBag 08-29-2005 04:36 PM

Nice addition Boofo. The 3.0 version intermitantly stopped working on me once I got past around 3.05 or so I believe - hopefully this one will work out :)! About to install - thanks a lot. :)

Paul M 08-29-2005 04:59 PM

Does this work for both search methods (i.e. vb search, and mysql fulltext search) ?

Marco van Herwaarden 08-29-2005 05:29 PM

Quote:

Originally Posted by Paul M
Does this work for both search methods (i.e. vb search, and mysql fulltext search) ?

All this hack does, is list the last 15 rows in the search table, and then apply forumpermissions on those.

This hack itself does not do any searching, so binary or fulltext search is not in the question.

So i don't really get your question.

Paul M 08-29-2005 05:40 PM

Quote:

Originally Posted by MarcoH64
All this hack does, is list the last 15 rows in the search table, and then apply forumpermissions on those.

Ah Okay, so it will work whichever method you have set on the forum.

Quote:

Originally Posted by MarcoH64
This hack itself does not do any searching, so binary or fulltext search is not in the question.

Yes, surprisingly, I did know it doesn't do any searching .... :p

Quote:

Originally Posted by MarcoH64
So i don't really get your question.

Try harder then ;) - oh, hang on - you answered it above :)

dieselpowered 08-29-2005 07:44 PM

Great hack, however, for some reason I am getting an error on the search.php page??

Quote:

Warning: Invalid argument supplied for foreach() in /search.php(292) : eval()'d code on line 73
Any thoughts?

Neal-UK 08-29-2005 07:49 PM

Quote:

Originally Posted by xtremeoff-road
Great hack, however, for some reason I am getting an error on the search.php page??



Any thoughts?

me too

Boofo 08-29-2005 08:20 PM

Are you installing it as a product or a plug-in?

dieselpowered 08-29-2005 09:25 PM

Quote:

Originally Posted by Boofo
Are you installing it as a product or a plug-in?

I am installing it as a product...just as indicated :)

Thanks Boofo :)

Boofo 08-29-2005 09:49 PM

Quote:

Originally Posted by xtremeoff-road
I am installing it as a product...just as indicated :)

Thanks Boofo :)

What version of MySQL and PHP are you using?

dieselpowered 08-29-2005 09:55 PM

Quote:

Originally Posted by Boofo
What version of MySQL and PHP are you using?

PHP version 4.3.11

MySQL version 4.0.25

Thanks for looking into it!

TTG 08-29-2005 10:01 PM

Same error !?

Quote:

Warning: Invalid argument supplied for foreach() in /search.php(292) : eval()'d code on line 73

dieselpowered 08-29-2005 10:01 PM

To add something...I just ran a search and now that error is gone and displaying the search...that is kinda odd...wonder what the issue is?

dieselpowered 08-29-2005 10:02 PM

Quote:

Originally Posted by TTG
Same error !?

You will notice that if you do in fact do a search of your own, that error will go away. Seems that when no searches are listed that is when the error appears??

Boofo 08-29-2005 10:09 PM

Quote:

Originally Posted by xtremeoff-road
You will notice that if you do in fact do a search of your own, that error will go away. Seems that when no searches are listed that is when the error appears??

Your search table was empty. You shouldn't have any problem with that error now. ;)

Don't forget the install button. ;)

dieselpowered 08-29-2005 10:12 PM

Quote:

Originally Posted by Boofo
You're search table was empty. You shouldn't have any problem with that error now. ;)

Don't forget the install button. ;)

So that error had to do with the fact that the table was empty? I guess if you say so as I know nothing about coding??

**clicks install just for Boofo :) **

Boofo 08-29-2005 10:26 PM

Quote:

Originally Posted by xtremeoff-road
So that error had to do with the fact that the table was empty? I guess if you say so as I know nothing about coding??

**clicks install just for Boofo :) **

Yes, that was it. I just had it confirmed for me by someone who knows more about arrays than I ever will. I just need to add a check to make sure there are entries in the search table is all. ;)

Neal-UK 08-29-2005 10:31 PM

working now thankyou

merk 08-29-2005 10:38 PM

You will notice that the error will reappear every hour unless people have been searching. (The cron system deletes the contents of the search table that are over an hour old every hour)

Im sure Boofo and Marco will solve the issue soon.

yoyoyoyo 08-29-2005 11:15 PM

Quote:

Originally Posted by merk
You will notice that the error will reappear every hour unless people have been searching. (The cron system deletes the contents of the search table that are over an hour old every hour)

Im sure Boofo and Marco will solve the issue soon.

same thing here.. I would prefer not to have a cron job to delete them, and keep the last 15 searches, without a time restraint.

Boofo 08-29-2005 11:19 PM

Quote:

Originally Posted by yoyoyoyo
same thing here.. I would prefer not to have a cron job to delete them, and keep the last 15 searches, without a time restraint.

That would require a total re-write of this product.

Boofo 08-29-2005 11:20 PM

Quote:

Originally Posted by merk
You will notice that the error will reappear every hour unless people have been searching. (The cron system deletes the contents of the search table that are over an hour old every hour)

Im sure Boofo and Marco will solve the issue soon.

The error doesn't appear for me when the search table contents are deleted. ;)

dieselpowered 08-29-2005 11:46 PM

Quote:

Originally Posted by merk
You will notice that the error will reappear every hour unless people have been searching. (The cron system deletes the contents of the search table that are over an hour old every hour)

Im sure Boofo and Marco will solve the issue soon.

You are correct sir...I am having that issue as well.

I do not mind the cron job deleting the searches, however, I would like to not see that error every hour.

ThePimp 08-29-2005 11:50 PM

Any way to get this on the Forumhome?

Boofo 08-29-2005 11:56 PM

Quote:

Originally Posted by xtremeoff-road
You are correct sir...I am having that issue as well.

I do not mind the cron job deleting the searches, however, I would like to not see that error every hour.

It is being worked on as we speak. Sit tight.

yoyoyoyo 08-29-2005 11:59 PM

Quote:

Originally Posted by Boofo
That would require a total re-write of this product.

you're not too busy are you? j/k Just a suggestion, but if it is undoable then that is fine. I would like to see the prune cron be optional, but not if it means a total re-write.

Boofo 08-30-2005 12:08 AM

Well, between this hack and talking to lawyers and dealing with that stuff (personal), I am doing what I can as best I can at the present time.

As far as the prune cron job goes, this hack doesn't touch any of that. That is how vBulletin handles that part of it.

dieselpowered 08-30-2005 12:20 AM

Quote:

Originally Posted by Boofo
It is being worked on as we speak. Sit tight.

I am sorry, I did not mean to come accross as though I was knocking your hack or knocking you :)

Boofo 08-30-2005 12:25 AM

Quote:

Originally Posted by xtremeoff-road
I am sorry, I did not mean to come accross as though I was knocking your hack or knocking you :)

No problem. ;)

I will get back to you shortly with a fix. ;)

dieselpowered 08-30-2005 01:49 AM

Quote:

Originally Posted by Boofo
No problem. ;)

I will get back to you shortly with a fix. ;)

Excellent, looking forward to it :)

Talisman 08-30-2005 02:10 AM

Oh, no...... not that dreaded 15-Most-Recent-Searches hack?

Do you have any idea how distracting it was here when I went to search for something and a good 8 of the 15 previous searches caught my attention ... ? By the time I checked out what results someone else got back on those, I couldn't remember what I went there to search for in the first place. LOL.

:cheeky:

Kirk Y 08-30-2005 02:56 AM

If the keyword(s) you're searching for don't return any results, they're not added to the list. Any way to add keywords that don't yield results to the list?


All times are GMT. The time now is 02:25 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.01614 seconds
  • Memory Usage 1,826KB
  • 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
  • (26)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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