[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.
This works nice ... but gotta understand how 2 use the google and yahoo in it. Awsome using this last post as well. Btw does it affect the site on google search ranks bec of this ? ... POssible to Put google search adsense into this? .... Thankyou
Ok hmmm u must be knowing of www.google.com/adsense i have an account over there and iam placing their ads. Now they also have a feature of google search 2 be placed on the site. I wanted 2 know if that code is possible 2 be placed into this ? ... hmm i guess ill post the code .. here it is
Quote:
<!-- Search Google -->
<center>
<form method="get" action="http://www.google.com/custom" target="_top">
<table>
<input type="text" name="q" size="31" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Search"></input>
<input type="hidden" name="client" value="pub-23232323(Each user has its own id code, so i guess this will be changed depending on the user,so u might wanna add this in ure description)"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH :center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000F F;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1;"></input>
<input type="hidden" name="hl" value="en"></input>
</table>
</form>
</center>
<!-- Search Google -->
It's possible as I think you can spoof the headers as if you were posting a form with a redirection script, however I don't know if google allows you to do this? Might want to ask them?
Hmmm true, i should ask them... but how about making up the code and presenting it 2 google and asking them if its ok 2 run it. cause they have spiders and they can catch on anything they dont like ... so ill ask them regarding the code you make and then publish it ? .. that k ?
What would it take so that you could get a dropdown on each word with different search options for each word? It would be kinda neat to be able to search on the board *or* on Google
Welp, looks like it could be a nice hack. I've installed it but have no idea what I just installed. hahahaha... Is there something visual here, or is it just behind the scenes stuff like:
Ok, scratch that last question. I figured it out. What I would like to know is this. When you click on a search word, how does google or yahoo or whatever, get factored into the search. When I click on a word, the only things returned are items that are right from my site.