Did anyone ever figure out a way to do this??? I tried creating a plugin that does this, but it seems that a member has figure out a way around it. Was trying to avoid doing a code hack, but it might be the only solution....
My plugin used the following hooks:
editpost_update_start
newreply_post_start
newthread_post_start
all 3 places have the following code in them:
Code:
if (!in_array($vbulletin->userinfo['usergroupid'], array(x,y,z)))
{
//we need to remove the [img] tags....
$vbulletin->GPC['message'] = str_ireplace("[img]","",$vbulletin->GPC['message']);
$vbulletin->GPC['message'] = str_ireplace("[/img]","",$vbulletin->GPC['message']);
}
Does anyone know what other place I might need to put this code in or see any errors in my code? I figure if we can catch the issue before the post is saved, this will prevent images from being posted.
Thanks for the help....
Dr00pY