My first mod, made by request of one of hte moderators on my forum, to remove
images from the signatures in the Trade Forum so that users could not create flashy
signatures to draw people to thier trade topics.
Code: Select all
$regex1 = "#\[img:$user_sig_bbcode_uid\]([^\[]*)\[/img:$user_sig_bbcode_uid\]#";
$regex2 = "#<img .*?src=[\"'](.*?)[\"'].*?>#";
$replace = '';
$user_sig = preg_replace($regex1,$replace,$user_sig);
$user_sig = preg_replace($regex2,$replace,$user_sig);