Quote:
Originally Posted by limey
Has anyone gotten this to work without turning on HTML in their forums? I thought that was a big security risk? I would like to get this to work so it posts with VB url code, but can't seem to figure it out.
thanks.
|
Yes, it's very simple to do it without HTML ON!!!!!!!
PHP Code:
function affiliateparse($text) {
$affiliate_code = "[ URL=http://www.google.com ]Google[ /URL ]";
$text = stri_replace("Google",$affiliate_code,$text);
return $text;
}
PS:
Remove the Spaces