vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Last 15 Searches (https://vborg.vbsupport.ru/showthread.php?t=169241)

Boofo 01-30-2008 10:00 PM

Last 15 Searches
 
Last 15 Searches for vB3.7
Version 1.0.1
(By Boofo and MarcoH64)

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.1 --Initial release for vBulletin 3.7.0 beta 4

Credits:
A big thank you goes out to EvilSL1 for co-authoring the vB3.0 version, on which this hack has been converted. And also to MarcoH64, for re-writing the code and keeping me in line while converting this to vB3.5. This also works on vB3.7.0 beta 4.

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

-------------------------------
Installation Instructions:
-------------------------------

Go to your AdminCP
Scroll down to 'Plugin System'
Click 'Manage Products'
Click 'Add/Import Product'
Click the 'Browse' button, and locate the product-last_15_searches_bh.xml file on your computer

------------------------------------------

Done!
Enjoy!

NOTE: If you do not click install, you do not need support.

Konstantinos 01-31-2008 12:07 PM

seems it works for 3.6.8 but u should replace 15 with X so admins can choose how many to show

Boofo 01-31-2008 01:28 PM

Well, this is an old throwback from the Chen days. He originally did this mod for the org. His limit was set to 10. Since the results aren't in there very long (they are reset hourly), I figured 15 was a good round number. ;)

Also, this is the same exact code used for the 3.5.4 version so it should work from that version on up. ;)

vwdforum 01-31-2008 08:22 PM

added it to mine, works well.

Boofo 01-31-2008 08:42 PM

I have to admit this is one of my favorites. I've been using it a long time and it only got better with the rewrite, thanks to Marco. ;)

Sandy-XXX 02-01-2008 10:09 PM

Installed, working nice on 3.6.8 level 2.

It will great than you can do to show 10 at the bottom of the forumhome, where the users online, the stadistics and teh events are (at tje bottom of all that).

Boofo 02-01-2008 10:15 PM

I'm sure you could use a query to get the info for the forumhome but then you would have to get the permissions of the searches for those who can view what searches were made and it would get kind of complicated, I think. And since the searches get deleted every hour, unless you have a real busy site doing a lot of searches, it wouldn't pay to have it on the forumhome.

rinkrat 02-02-2008 04:41 AM

Where are the searches listed? I can't find them.

Boofo 02-02-2008 07:24 PM

At the top of the search page.

And hello rinkrat, it's been a while. ;)

asj 02-02-2008 07:38 PM

Thank you very much :)


All times are GMT. The time now is 06:40 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.02434 seconds
  • Memory Usage 1,726KB
  • 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
  • (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
  • (10)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