Hi , I'm still training and I made small plugin
Hook Location private_fetchreply_start
PHP Code:
function pmerr($mtloobg,$iarry){
$iarry = explode(",", $iarry);
if(in_array($mtloobg,$iarry)){
return true;
}
else {return false;}
}
if ($vbulletin->options['pm_onoff_mohamed'])
{
if(pmerr($vbulletin->userinfo['usergroupid'] ,$vbulletin->options['pm_groupid_mohamed']))
{
eval(standard_error(fetch_error('pm_phrase')));
}
}
I got the error message when try to read a message

now I want to read my message and I want to get the error message when I press submit message
can you help me about that .
thanks
--------------- Added [DATE]1268930756[/DATE] at [TIME]1268930756[/TIME] ---------------
thanks sorry for inconvenience problem solved by changing hook location
to private_insertpm_process