vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   need help for create new product pm_replay standard error (https://vborg.vbsupport.ru/showthread.php?t=238560)

o0mohammed0o 03-18-2010 03:18 PM

need help for create new product pm_replay standard error
 
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

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 [DATE]1268930756[/DATE] at [TIME]1268930756[/TIME] ---------------

thanks sorry for inconvenience problem solved by changing hook location

to private_insertpm_process :D


All times are GMT. The time now is 10:31 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03133 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete