Welcome to WebmasterWorld Guest from 50.16.24.12

Forum Moderators: lawman

Highlighted Searchwords on webmasterworld.com

If you come from a searchengine, webmasterworld.com highlights the keywords

   
6:28 pm on Mar 11, 2003 (gmt 0)

10+ Year Member



Hi Forum,

I just came here to webmasterworld.com via google. And I'm impressed, that all searchwords, which I typed in google, are highlighted on webmasterworld! That is a very interesting function.

I would like to have such a function on my website, too! Can anybody help me? Where can I find a script, which implement this function to my website?

Thanks a lot! And I'm very happy to have found your fantastic site. I already learned a lot.

Chriss
Germany

6:31 pm on Mar 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That is pretty clever, Brett. :) I know how you do it, so I won't go spoiling it for ya if you don't want yer secret out. Really nifty stuff, though.

G.

7:16 pm on Mar 11, 2003 (gmt 0)

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Well, it's not rocket science, but it is specific science. It's built into the board. I don't think there would be a way to make a script generic enough to work with very many web sites.
8:30 pm on Mar 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>I won't go spoiling it for ya

I don´t believe this is exactly a secret. Anyway, since I do not know how Brett does it I felt free to post how I do it. Have a look at Bag-O-Tricks for PHP II - some code snippets that should be helpful for all in creating dynamic sites - Highlighting Search Terms [webmasterworld.com]

Andreas

10:00 pm on Mar 11, 2003 (gmt 0)

WebmasterWorld Senior Member marcia is a WebmasterWorld Top Contributor of All Time 10+ Year Member



>>I just came here to webmasterworld.com via google.

Then the good times have just begun! Welcome to WebmasterWorld, Chriss - glad to have you here with us.

8:44 pm on Mar 12, 2003 (gmt 0)

10+ Year Member



Thanks Marcia!
I'am very glad to have found this board!

@andreasfriedrich: Thanks to Berlin! Danke für Deine Hilfe. Für dynamisch generierte Seiten ist es tatsächlich einfach umzusetzen. Für meine statischen Seiten muss ich mir da wohl noch was einfallen lassen, oder?

Chriss
Germany

2:42 am on Mar 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>Danke für Deine Hilfe. Für dynamisch generierte
>>Seiten ist es tatsächlich einfach umzusetzen.
>>Für meine statischen Seiten muss ich mir da wohl
>>noch was einfallen lassen, oder?

For all those who for whatever reasons do not understand German: Thanks for your help. Highlighting search terms is indeed easy to implement for dynamically generated pages. It seems that this requires a bit more thought for my own static pages, doesn´t it.

If your pages are truly static as in simple HTML pages then there is little you can do if you want to keep serving these static pages in a static way. You might however, want to have a look at Bag-O-Tricks for Perl - Let´s collect some nice and useful perl scripts - Highlighting Search Terms on Static Pages [webmasterworld.com] which uses mod_rewrite [httpd.apache.org] and a Perl [perl.com] script to highlight search terms.

Andreas

3:09 am on Mar 13, 2003 (gmt 0)

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



That's only if you want to do it in post processing Andreas. Pregenerating and then substituting is not that good an option as it causes tons of system load by the memory usages. It's why all those with some forum software get kicked off their host when they hit 20-30k a day. Properly done in a cgi environ to me, means generating on the fly.
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved