PDA

View Full Version : Miscellaneous Hacks - [tk] Multi-Tag Search


hambil
04-06-2009, 10:00 PM
https://vborg.vbsupport.ru/

Description:
Tag search the way vBulletin should have done it from the start. Search for multiple tags. +/- syntax:

hambil +love -hate

Results are weighted (ordered) by the number of tags matched and shown most recent first.

Install:
Download the multitagsearch_1.0.xml file.
Import the file in your admincp.
Make sure you the built in vBulletin tag system enabled and properly setup for use.

Do not be afraid to click the install button, or whatever :p

Additional Notes:
If you are new to tags, and largely ignored them do to their limited (until now) nature, you might have a lot of untagged threads. I would suggest installing Automatic Thread Tagger for vB3.8 (https://vborg.vbsupport.ru/showthread.php?t=201156) to get some fast and serious searching power from this mod.

hambil
04-07-2009, 08:38 PM
Reserved

hambil
04-07-2009, 10:01 PM
Edited/created new screen shoots to make it clearer what this mod does.

Sofia
04-07-2009, 10:43 PM
thank you hambil.

I will test it

digicom
04-08-2009, 01:03 AM
Installed! Much apprciated hambil :up:

KevinL
04-08-2009, 02:03 AM
You make some pretty useful mods! Thanks! :)

Jasem
04-08-2009, 02:56 AM
Nice work, thank you!

Installed

Alien
04-08-2009, 07:28 PM
This will work nicely for me, thank you very much.

Hornstar
04-08-2009, 08:31 PM
nice work, something which I could see useful becoming default.

hambil
04-11-2009, 12:41 AM
Useful Mod! Thanks.

FEATURE REQUEST: Can you provide a feature to enable the use of wildcards (*) in tag searches, similar to VB message searching?
It's probably possible - I'll look into it. There are some other tag search enhancements I want to make as well. I definitely have a 2.0 version of this planned, just not sure when.

kafi
11-23-2009, 07:07 AM
this makes using tags finally usefull

GREAT mod!!! Congrats!

cagbaazee
12-19-2009, 05:55 PM
Great Tools .. Thanks

cagbaazee
01-16-2010, 06:45 PM
This would be great if upgraded for vb4...

MoMan
11-10-2010, 04:19 AM
This mod is BRILLIANT! Can't believe it's buried so deep down.

I've written my own plugin that forces a tag search whenever any search term under 3 characters is present, and in conjunction with that, this works like a charm!

With just my plugin, searches like this:
"camera xy review"
would redirect just to the tag "xy".
Now, in conjunction with this mod, the same search will provide highly relevant results.

MoMan
11-17-2010, 03:10 PM
FYI there is a easily-fixable but potentially-exploitable bug in this mod:
1. tags are not escaped, so a tag like "mike's" will give you a DB error
2. regex characters in tags will cause database errors, i.e. if you search for: [tag]

To address this, I used the following addition to the code:

$qtag = str_replace(array(']','[','\\','^','$',',','|','?','*','+','(',')','\''),a rray('\\]','\[','\\\\','\\^','\\$','\\,','\\|','\\?','\\*','\\+' ,'\\(','\\)','\\\''),$qtag);

You can also use $vbulletin->db->escape_string() to fix issue #1, but that doesn't cover the regex characters.

TheLastSuperman
12-02-2011, 07:28 PM
Moved to graveyard per authors request - https://vborg.vbsupport.ru/showthread.php?t=274938