2014-03-31, 06:44 PM
I am trying to check user filed fid6 if they are entering Facebook URL or some other one by can't make it work please help?
function cpfbbcode()
{
global $mybb;
$cpfbbcode = 'facebook.com';
if(preg_match("/$cpfbbcode/", $userfields['fid6'], $match))
{
}
else
{
error("some error");
}
}