[high]Copyright:[/high] 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.
[high]Donations:[/high] 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:
// 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.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
You have to change the option within the actual code you added. Be careful though. I'll assume you have no knowledge of PHP so just look for a list kinda thing. It'll be numbered from 1-3 by default. Then below that is a variable. If you want it to search google you select the number that google is in the list:
PHP Code:
// selete the number from above of the site you want to search
$chooseoption = 1;
You have to change the option within the actual code you added. Be careful though. I'll assume you have no knowledge of PHP so just look for a list kinda thing. It'll be numbered from 1-3 by default. Then below that is a variable. If you want it to search google you select the number that google is in the list:
PHP Code:
// selete the number from above of the site you want to search
$chooseoption = 1;
Ok, So basically we can have as many search engines in the code as we want but only 1 will be used for the actual search.
Is there a way to make this a dropdown menu... so if I hover my mouse over any of the search words, I will get a list of utils such as, (Search site / Search Google / Yahooo.....)...
then of course when you click on it, it will search the cooresponding search engine or site? If not, that's ok, it's still a nice hack.
So Installed. Addmittedly took also me a while to get the "what changed here?". For anyone still figuring it out: The thread tiltle words become clickable in the navbar breadcrumb where typically the viewed thread title is black. After installing this hack the title of the viewed thread turns each word of the title into a clickable search link.
Regs,
-Mika *feeling like the master of the obvious*