| 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.
| 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.
| 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]
| 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.
| 8:44 pm on Mar 12, 2003 (gmt 0)|
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?
| 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.
| 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.