homepage Welcome to WebmasterWorld Guest from 184.73.52.98
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Home / Forums Index / Local / WebmasterWorld Community Center
Forum Library, Charter, Moderators: Hawkgirl & lawman

WebmasterWorld Community Center Forum

    
Highlighted Searchwords on webmasterworld.com
If you come from a searchengine, webmasterworld.com highlights the keywords
Chriss74




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

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

 

Grumpus




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

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.

Brett_Tabke




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

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.

andreasfriedrich




msg:514422
 8:30 pm on Mar 11, 2003 (gmt 0)

>>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

Marcia




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

>>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.

Chriss74




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

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

andreasfriedrich




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

>>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

Brett_Tabke




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

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Local / WebmasterWorld Community Center
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved