The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#31
|
|||
|
|||
![]()
Anyone see why it's erroring out?
Quote:
What tag can I put in this function and where to stop parsing of IMG tags if the poster is a user group id 1? I tried just displaying the user group id but couldn't even find the tag to do that would work. |
#32
|
|||
|
|||
![]()
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 |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|