I installed but then used what Kentaurus posted and it works on highly modified vb 3.0.0
I also solved your
www.google.com problem.
Simply search for <space>Google<space> which will insure you wouldn't replace subwords as well for example Googleicous...
So look for " Google " instead of "Google"
Kentaurus's code with my small addition to check for spaces before and after the word and add a space before and after the replacement:
PHP Code:
static $customReplaceInit = false;
static $findtext = array();
static $replacetext = array();
if (!$customReplaceInit)
{
$textlinks = $DB_site->query(" SELECT text, link FROM " . TABLE_PREFIX . "textlink");
while($link = $DB_site->fetch_array($textlinks))
{
$findtext[] = " ".$link['text']." ";
$replacetext[] = " [url=" . $link['link'] . "]" . $link['text'] . "[/url] ";
}
$customReplaceInit = true;
}
$bbcode = str_replace($findtext, $replacetext, $bbcode);
This works for me at
Giant Vegenetics
Sample word: Pumpkin
Pending full implementation with Wiki...
I plan to connect it to my WIKI for a very nice feature. Encylopedic knowledge injected directly into the threads. Sweet.