Vishal:
even though the message is not displayed (shows "This message is pending approval."), the signature is displayed.
You may try the following addition: to the parseMessage() function's code add the following (if the function doesn't exist, create it; if it does exist, just add the code before the return statement):
function parseMessage(){
/* Premoderation hack - do not display signature for suspended text */
if($GLOBALS['posterText']==$GLOBALS['l_postQueued']) $GLOBALS['userInfo_user_custom2'][$GLOBALS['poster_id']
]='';
/* --Premoderation hack */
return;
}
You should change 'user_custom2' to the field name in database, which is used as a Signature.
It works on my end and I've uploaded it to
miniBB demo, so it appears to work there as well.
This approach may be used for File Upload add-on as well, because it also displays attached files, even if the message itself is pending approval.