vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB3 15 Most Recent Searches Made By Our Members (https://vborg.vbsupport.ru/showthread.php?t=61424)

Boofo 02-10-2004 10:00 PM

vB3 15 Most Recent Searches Made By Our Members
 
vB3 15 Most Recent Searches Made By Our Members
Version 1.1
(By Boofo and EvilLS1)

What does this hack do?
This hack 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. The Admin, Supermod and Mod searches will not show up in the listing. It is done this way so any searches made in your private forums are not shown to the regular members.

Credits:
A big thank you goes out to AntiOnline for his original "Last 10 Searches" hack for vB2, partly on which this hack is based.

Version Information:
Version 1.0 --Initial release
Version 1.1 --Re-did the template code to make it match the default style a little better and also added the ability to collaspe the table.

Installation overview:
Files to edit:
(1)
--search.php
Templates to edit: (1)
--search_forums

For those wanting the HTL file for this, thanks to Frank, you can get it from this post. ;)

The first image is what the other members will see and the second image is what the Admin will see.

Allan 02-11-2004 08:02 AM

Great Hack, thanks Boofo ;)

Boofo 02-11-2004 08:11 AM

Thank you, sir. Don't forget the install button. ;)

Experience 02-11-2004 08:38 AM

Thank you, is great =)

Oblivion Knight 02-11-2004 08:52 AM

Just a suggestion Boofo :)
Wouldn't it be better placing the two instances of $lastsearch in to templates? lastsearch and lastsearch_staff for example..

Great mod, however the vB2 version was a concern on server load for some (not me personally), how does this compare?

Boofo 02-11-2004 09:03 AM

I didn't want to clutter up the template with too much code on this. I tried it that way first. Maybe I can re-do a part of it and use conditionals. I'll look at it.

As far as server load goes, I really couldn't say too much about that since my site is so small. It seems to run like it isn't even there on my site, but that might not be the best indicator. All I can say is try it and let me know what the server load looks like. ;)

Allan 02-11-2004 09:39 AM

Quote:

Originally Posted by Boofo
Thank you, sir. Don't forget the install button. ;)

no prob, click INSTALL :)

TheComputerGuy 02-11-2004 10:13 AM

Great Boofo!!

Me says thank you!

Dan 02-11-2004 10:32 AM

Quote:

Originally Posted by Boofo
vB3 15 Most Recent Searches Made By Our Members
Version 1.1
(By Boofo and EvilLS1)

What does this hack do?
This hack 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. The Admin, Supermod and Mod searches will not show up in the listing. It is done this way so any searches made in your private forums are not shown to the regular members.

Version Information:
Version 1.0 --Initial release
Version 1.1 --Re-did the template code to make it match the default style a little better and also added the ability to collaspe the table.

Credits:
A big thank you goes out to Antionline for his original version of this hack for vB2, partly on which this hack is based.

Installation overview:
Files to edit:
(1)
--search.php
Templates to edit: (1)
--search_forums

The first image is what the other members will see and the second image is what the Admin will see.

Interesting hack might use it if i feel the need to install it

FleaBag 02-11-2004 01:18 PM

Sweet, big fan of this on vB2, glad to see it come to vB3.


All times are GMT. The time now is 10:00 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.01117 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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