vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Display X Most Recent Searches (https://vborg.vbsupport.ru/showthread.php?t=187417)

Mephisteus 08-06-2008 10:00 PM

Display X Most Recent Searches
 
Hack name: Most Recent Searches
Version: 1.01
Author: Mephisteus (Sebastiaan)

Steps:
1 product import

Info:
Show the X most recent searches

Tested on:
3.7.2 - OK
Note: I have added a product dependancy for vBulletin 3.7.0 at minimum. It might work on earlier versions, it might not.

Feature
- Choose the X for the X amount of most recent searches

Noteworthy stuff
It only tracks Keyword searches and it adds a new most recent search for each and every single one executed.

MAKE A BACKUP
I will not be held responsible for any damage this hack may cause to your forum.
This hack is NOT supported. If you get support, consider yourself lucky.
I reserve the right to REMOVE the hack at any time without prior notice.

Please keep any bug reports in this thread.

History
1.0.1
1 table created (mrs_search)
2 new plugins (search_process_start, cron_script_cleanup_hourly2)
1 plugin altered (search_intro)
1.0.0
Initial release

Requested by CarterMarkham

CarterMarkham 08-07-2008 01:26 AM

1.0.1 coming :D

Mephisteus 08-07-2008 01:44 AM

Fixed, turns out you need to enable the "vBulletin Default (Will be replaced by upgrade scripts)" option. Who thought of that!

CarterMarkham 08-07-2008 01:53 AM

Thank you for making this!

Marco van Herwaarden 08-07-2008 06:19 AM

I hope you do realize that permissions are not considered. This means that if an admin makes a search, this can also be seen by any member.

Mephisteus 08-07-2008 09:40 AM

I'm pretty aware of that, cause, ya know, I wrote it.

If that's a problem, don't use it. If you want to make it so that it doesn't and release that, go right ahead. I tagged the whole "Re-usable Code" thing for a reason :p

CarterMarkham 08-07-2008 10:36 AM

So this is a "rolling" display? Is there a way to make it like the one for 3.5? Where it just shows the last 15 searches no matter what time. I have a small board and people dont search every 15 minutes.

Mephisteus 08-07-2008 11:22 AM

Err, it still shows the latest searches on my test board. The ones I made last night well over 12 hours ago.

[edit]
And *now* they're gone. I'll look into it.

[edit 2]
Found what it is, working on a fix.

[edit 3]
Fixed

CarterMarkham 09-06-2008 01:53 PM

This is working great, but is there a way to get rid of the double search thing?

MrD 05-08-2011 09:29 AM

Hi,
will it be a vb4 Version?


All times are GMT. The time now is 11:21 PM.

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.01094 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)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