vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   eval(standard_error($errormsg)); (https://vborg.vbsupport.ru/showthread.php?t=170700)

woostar 02-16-2008 10:05 PM

eval(standard_error($errormsg));
 
Hi folks,

I'm attempting to make a plugin and need a bit of advice.

I know the standard error is this:-
eval(standard_error($errormsg));

but how would I create an error (displaying var $errormsg), pause and then go back 1 step (which would be the reply editor).

Thanks in advance.

W.>

Dismounted 02-17-2008 01:16 AM

standard_error() stops execution, as there is an error :p. Maybe what you are looking for is standard_redirect().

woostar 02-17-2008 01:49 AM

OK let me see if I can explain - I'm trying to convert a few mods to work with 3.7 (im running beta 4 at the mo.)

Now in 3.8 when I use
$dataman->set('visible', 0); in the newpost_process I automatically get the message "Thank you for posting! Your post will not be visible until a moderator has approved it for posting. You will now be taken back to the forum. If you opted to post a poll, you will now be allowed to do so."
.... BUT in 3.7 I dont get any message :s

So now I'm trying to find a way of sending a post to be moderated and get the message before continuing.

Any ideas?


All times are GMT. The time now is 01:04 PM.

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.03228 seconds
  • Memory Usage 1,703KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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