![]() |
Split thread title into searchable keyword components
[Split thread title into searchable keyword components]
Information
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:
Installation 1/ In showthread.php find: PHP Code:
PHP Code:
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. |
Custom Searches
This modification offers a great flexibility in that you can make other searches. Unfortunately you can only choose one at a time but this post will contain a list of some of the other search options you can choose. How to make/add a search You can only use TWO arguements when writing your search addon. These are BOTH the word in question. These are referenced by placing %1s and %2s within your search string. It'll replace these with the word. What you need to do is find the last search. by default it will be PHP Code:
List of custom searches Urban Dictionary PHP Code:
PHP Code:
|
cool, thanks :)
|
nice ;)
|
very cool.....thanks =D
|
Cool!
This will really help me find posts in a hurry. |
That does not work with foreign languages with accent. For example the character " ï " is not recognized, therefore is skipped. Haïfa becomes Hafa in the thread title.
it also skips characters such as "(" etc... basically distorting the title |
I deliberately did this. Foreign characters are not recognized by vB3's search (when using the query string), and also not by most sites which allow input from the query string. The same with other characters like brackets :)
|
Dean - thx so much for working on this - I changed the text in my showthread.php then replaced the old file with the new - I don't see a change on my boards - did I do s/thing wrong?
Cheers |
Quote:
|
I have vb3.03
Do I I ftp the file to my desktop, open in wordpad, then add the changes & then ftp the file back to my forums folder, or do I have to go into myphp admin? Also, do I include th etext in orange or not? Thx guys |
sounds like a nice hack, might have some use for this
|
Could anyone giveme some guidance as to why this isn't working - or what should I see on my threads - I don't notice anything different. How does it manifest itself on the bboard?
Thx |
Forget it - it's working - thx!
|
One more question - does anyone know how to add a small bit of text next to the searchable thread title that would let users know about this feature so they don't miss it? - like "<-- click on word to search"
|
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
*clicks install* |
Tell me where you want the "<-- click on word to search" to go and I'll modify the code for you to go in that position :)
|
Thx! Right next to the search string ie
Beatles without Yoko <-- search on keyword - ideally only where the search string shows up (not in the other places you see the navbar) & in smaller font |
Ok open up showthread.php and find:
PHP Code:
PHP Code:
|
Excellent - thx - 2 ?'s
1- Can the text be a tiny bit smaller that says search here? 2- Can I paypal you a little s/thing for your efforts? cheers |
1/ Try this
Find: PHP Code:
PHP Code:
|
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
|
Sorry owner, I didn't quite understand what you were saying in your last post :(
|
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:
|
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 :D ... so ill ask them regarding the code you make and then publish it ? .. that k ?
|
Quote:
|
Quote:
|
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:
google search... site http://www.njflyfishing.com "trout" something like that? |
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.
|
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:
|
Quote:
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. Thanks again. |
I thought about adding a dropdown but I think it'll look really tacky.
|
Is there a way to fix it so that the <title> in the <head> tags doesn't look like this and muck up the title in the title bar of the browser?:
Quote:
|
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* |
LOL thanks I was like... ok what does this do.
After being on vb for a while you learn not to install anything... even if its your test board. |
Quote:
-M |
All times are GMT. The time now is 03:53 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|