does anyone know of a script or code that could search a story posted on a page and make keywords (in my case a players name) automatically into a link.
I've done it manually here: http://www.tigerscentral.com/ but most of my staff isnt proficent enough in html to be making links and formatting things.
Thanks!
sure there is a better way, but:
$names = array( 0=> "Keeth Keethson", 1=> "Peet Peterson"; $replace = array( 0=> "<a hre=\"link.php\">Keeth Keethson</a>", 1=> "<a hre=\"link.php\">Peet Peterson</a>"; $story = str_replace($names, $replace, $story);
phpGiggle is a tool to automatically link key words and phrases in HTML documents.
phpGiggle locates user-defined keywords and phrases in an HTML document or string and subsequently replaces the keywords or phrases with anchor tags linking to user-defined URLs.
http://sourceforge.net/projects/phpgiggle/
hth.
Sweet, thanks. I'll give that a try.