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.

gmarik 02-11-2004 06:11 PM

Could it log IP or user names for admins to show up?

Mike Gaidin 02-11-2004 08:52 PM

Nice one Bob.

/me clicks install.

Boofo 02-12-2004 12:12 AM

Quote:

Originally Posted by FleaBag
Sweet, big fan of this on vB2, glad to see it come to vB3.

Thanks! But don't forget that install button (on this hack and the other one). ;)

Boofo 02-12-2004 12:13 AM

Quote:

Originally Posted by gmarik
Could it log IP or user names for admins to show up?

I'm not sure what you mean.

lange 02-12-2004 02:17 AM

Thanks

Lange clicks Install.

AutomatikStudio 02-12-2004 04:53 PM

Hmmm...I'm a bit confused...I'm not seeing the table with recent searches.

Boofo 02-12-2004 05:00 PM

It won't show up for Admins and Mods. And the table doesn't show up until any searches are made. Log in as a registered user and make a search and then you will see the table show up. Then log in as Admin again and you will also see the searcher's name in the table. ;)

dbroomjr 02-18-2004 01:38 PM

me clicks install... and gave the thread a five star rating...Great hack! Keep up the good work.

David

Alien 02-18-2004 01:49 PM

Very nice, installed and working. :)

[high]* Alien clicks evil install button.[/high]

Boofo 02-18-2004 04:14 PM

Thank you, gentlemen. ;)

Frank 02-21-2004 11:55 PM

Boofo, here's an HTL file for it (same version as you currently have in text file).

Feel free to include it in your release :)

gmarik 02-22-2004 07:01 AM

I would want to see who made the search. I'm the admin and want to see the username - if it was out member or the ip - if a guest on our board ...

Frank 02-22-2004 10:21 AM

Quote:

Originally Posted by gmarik
I would want to see who made the search. I'm the admin and want to see the username

Quote:

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.

Boofo 02-22-2004 04:08 PM

Thank you, Frank. ;)

I'll link to your post with the HTL file from the first post. ;)

FleaBag 02-23-2004 07:03 AM

Just installed this with the HTL on RC4 - running smoothly. Thanks for this. :)

Boofo 02-23-2004 07:47 AM

You're getting to be one of my best customers. ;)

Thank you, sir. ;)

TheComputerGuy 03-12-2004 03:50 PM

I am curious to as this is ignoring some users...I have made it where it shows all users, not some. It shows the like new people, but I know people have been searching a lot more...I just think the hack is not working.

Boofo 03-12-2004 04:07 PM

The hack is working. It only holds the searches for 24 hours before it deletes them. Keep an eye on it for a few days and you will see that it is working like it is supposed to. ;)

TheComputerGuy 03-12-2004 04:08 PM

Does it log vistors?

Also...I think I should upgrade to RC4.

Boofo 03-12-2004 04:12 PM

No, it doesn't log guest searches.

This hack is running on RC3 on my site with no problems.

djohn 03-15-2004 03:06 PM

Any way to limit the number of recent searches to, for example 5? 15 is way too much for me :)

lokki 03-17-2004 04:14 AM

This is what I'm trying to reduce the number. If this is in error or incomplete, I'd really appreciate a correction!

in search.php find:

if ($numqueries > 15){
$numqueries = 15;
}

and replace both 15s with whatever you like.

then find:

$lastsearches=$DB_site-> (SNIP) ORDER BY searchid desc LIMIT 0,15");

and change that, too.

Boofo 03-17-2004 10:10 AM

Quote:

Originally Posted by djohn
Any way to limit the number of recent searches to, for example 5? 15 is way too much for me :)

lokki's partly right, but all you really need to change is this part of the query:

Quote:

LIMIT 0,15
Change ther 15 to whatever you need and that's all you need to change.

You also need to click the install button. ;)

djohn 03-17-2004 12:41 PM

yep, thanks, you got it
/me clicks install

Boofo 03-17-2004 12:49 PM

You're very welcome, sir. ;)

milkmycow 03-21-2004 08:18 PM

does this work with gold?

Alien 03-21-2004 08:28 PM

Yes.

Boofo 03-21-2004 10:38 PM

Thanks, Jason. ;)

Alien 03-22-2004 06:58 AM

No thanks necessary, I love it! :D

Boofo 03-22-2004 07:18 AM

It's people like you, Jason, that make coding hacks like this a pleasure. I wish more people felt like you do about hacks here. ;) Thank you, again. ;)


All times are GMT. The time now is 06:21 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.01381 seconds
  • Memory Usage 1,808KB
  • 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
  • (8)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