View Full Version : Google Highlight Mod
bobby9101
05-12-2006, 07:56 PM
put Content visible to registered users only. in header.tpl
create new file gsearch.js in your root folder and use this code in it
Content visible to registered users only.
vegabond
05-12-2006, 08:24 PM
want to see a demo...
bobby9101
05-12-2006, 08:40 PM
i don't have one :(
why don't you back up your files and try it real quick
post your results for the rest of the community
vegabond
05-12-2006, 10:08 PM
I will wait for a live demo, it's better :D
bobby9101
05-12-2006, 10:28 PM
i'll try to get one up in a day or so
Neticus
05-12-2006, 10:41 PM
Lol how do you know it works if you haven't seen it in action?
bobby9101
05-12-2006, 10:58 PM
@neticus and vegabond... click this:
http://www.google.com/search?hl=en&lr=&rls=GGLD%2CGGLD%3A2004-33%2CGGLD%3Aen&q=ranktips+web+ranking+is+proudly+powered+by&btnG=Search
then click my site
i am taking this mod off in a couple minutes, because i personnaly don't want it anymore
but i'll leave it up fopr you to check
bobby9101
05-12-2006, 11:01 PM
BTW i editted the code a little
Neticus
05-12-2006, 11:20 PM
Nice, thanks :)
bobby9101
05-12-2006, 11:21 PM
I took it down from my site.
Neticus, could you post a link showing yours? so we can use that as a demo
Yep, it's working :) nice!
Here is a much simplier method and it highlights not only Google but also Yahoo!, Lycos, Altavista, MSN, etc...
http://www.smarty.net/forums/viewtopic.php?t=1400
Just save it as outputfilter.highlight_search_words.php and copy it to /libs/smarty/plugins/ folder.
Then start the highlighting with:
Content visible to registered users only.The nice thing with Smarty is you find many nice plugins (http://smarty.incutio.com/?page=SmartyPlugins) and you don't have to spend time writing your own hacks ;)
Boby
Neticus
05-13-2006, 12:05 AM
Content visible to registered users only.
Hi, I may install it, still in two minds.
As for those who want a demo it will basicly highlight all the keywords on your site if accessed via
Google. (More search engines with Boby's one)
If it was installed on this site the keyword 'phpld directory' will show for example.
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.