vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - [tk] Multi-Tag Search (https://vborg.vbsupport.ru/showthread.php?t=210595)

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


All times are GMT. The time now is 03:19 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.00905 seconds
  • Memory Usage 1,717KB
  • 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
  • (6)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