Back to vBulletin 3.0 Add-Ons

Split thread title into searchable keyword components
Mod Version: 1.00, by Dean C

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 10
Released: 04 Dec 2004 Last Update: Never Downloads: 1
Not Supported  

[Split thread title into searchable keyword components]

Information
  • vBulletin Version: 3.0.x

  • Author: http://www.deanclatworthy.com

  • Copyright: You may use this modification at your own risk. I cannot and will not be held responsible for any damage you may cause to your forums during installation or thereafter. You may not distribute this modification in whole or parts and anyone found doing so faces risk of prosecution. All my modifications are released at vBulletin.org and anyone found releasing them elsewhere also faces risk of prosecution. You may not translate this modification without my prior permission.

  • Donations: I release my modifications for free. If you wish to donate please contact me and I will give you my details. All donations are graciously appreciated.

What does this modification do?
[size=1]This modification will allow you to split your thread title into the navbar into searchable components. You have three searchable options at the moment but it can easily be modified. These searchable sites are:
  • Your forums search engine (default)
  • Dictionary.com
  • Google

Installation

1/

In showthread.php find:

PHP Code:
$navbits[''] = $thread['title']; 
ABOVE it place:
PHP Code:
// #############################################################################
// START: split thread title into keyword search components
$sites = array(
    
=> '<a href="' $vboptions['bburl'] . '/search.php?q=%1s">%2s</a>',
    
=> '<a href="http://www.google.com/search?q=%1s">%2s</a>',
    
=> '<a href="http://dictionary.reference.com/search?q=%1s">%2s</a>',
);

// selete the number from above of the site you want to search
$chooseoption 1;

// get rid of all stupid characters (sacrifice so we don't break the query string
$ttitle preg_replace("/[^a-z0-9\-_\'\s]/i"''$thread['title']);

// split thread title by any number of commas or space characters
$ttitle preg_split("/[\s,]+/"$ttitle);

// loop through all words replacing the delimeter with the word
if(is_array($ttitle))
{
    foreach(
$ttitle AS $tword)
    {
        
$twords[] = sprintf($sites["$chooseoption"], $tword$tword);
    }

    
// get back into a readable title
    
$thread['title'] = implode(' '$twords);
}
// END: split thread title into keyword search components
// ############################################################################# 
Please Click Install!
If you installed this modifcation please click the install button. It'll help you keep up to date with future releases and important bugfixes, security updates.

Download

No files for download.

Similar Mods

Remove thread title in navbits if you have large thread title installed vBulletin 2.x Full Releases

vblts.ru supports vBulletin®, 2022-2024