hey mate want to use a bbcode like @userprofile using this code but it wont work can any0ne help me?
if(substr_count
($text,"@")<=5)
{
$text=preg_replace
("/\@(.*?)/
i","<a href=
\"index.php?
a=viewuser&who=$
1\">$2</
a>", $text);
}
if(substr_count
($text,"@")<=5)
{
$text=preg_replace
("/\@(.*?)/
i","<a href=
\"index.php?
a=viewuser&who=$
1\">$2</
a>", $text);
}