hmmm okay... i guess... lol
but i would like 2 knw how cn i make tht only admins of site write sum BB codes....?
in lava script 4 exsample.......
is ti tht i just put tht bb code
if (isadmin(getuid_sid($sid)))
{
$text=preg_replace("/\[b\](.*?)\[\/b\]/i","\\1", $text);
}
easy just use the function in core.php copy that and add to the new bbcode funtions u dnt want normal users to use like this for example
function getbbcode($text, $sid="")
{
$text=preg_replace("/[b](.?)[/b]/i","\1", $text);
$text=preg_replace("/[i](.?)[/i]/i","\1", $text);
$text=preg_replace("/[u](.?)[/u]/i","\1", $text);
$text=preg_replace("/[big](.?)[/big]/i","\1", $text);
$text=preg_replace("/[small](.?)[/small]/i","\1", $text);
$text = preg_replace("/[url=(.?)](.?)[/url]/is","<a href="$1">$2</a>",$text);
$text = preg_replace("/[topic=(.?)](.?)[/topic]/is","<a href="index.php?action=viewtpc&tid=$1&sid=$sid">$2</a>",$text);
$text = preg_replace("/[club=(.?)](.?)[/club]/is","<a href="index.php?action=gocl&clid=$1&sid=$sid">$2</a>",$text);
if(ismod($uid))
{
$text = preg_replace("/[blog=(.?)](.*?)[/blog] is","<ahref="index.php?action=viewblog&bid=$1&sid=$sid">$2</a>",$text);
$text = ereg_replace("http://[A-Za-z0-9./=?-_]+","<a href="\"></a>", $text);
if(substr_count($text,"[br/]")<=3){
$text = str_replace("[br/]","
",$text);
}
}
maybe that will work lol havennt thought of that feature but yeah guess that would be ho u add it in