o0mohammed0o
03-18-2010, 03:18 PM
Hi , I'm still training and I made small plugin
Hook Location private_fetchreply_start
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
http://img402.imageshack.us/img402/9522/004dg.jpg
http://img687.imageshack.us/img687/2307/003tso.jpg
now I want to read my message and I want to get the error message when I press submit message
http://img94.imageshack.us/img94/5489/005ks.jpg
can you help me about that .
thanks :)
--------------- Added 1268930756 at 1268930756 ---------------
thanks sorry for inconvenience problem solved by changing hook location
to private_insertpm_process :D
Hook Location private_fetchreply_start
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
http://img402.imageshack.us/img402/9522/004dg.jpg
http://img687.imageshack.us/img687/2307/003tso.jpg
now I want to read my message and I want to get the error message when I press submit message
http://img94.imageshack.us/img94/5489/005ks.jpg
can you help me about that .
thanks :)
--------------- Added 1268930756 at 1268930756 ---------------
thanks sorry for inconvenience problem solved by changing hook location
to private_insertpm_process :D