vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   standard_error messing up styles in plugins (https://vborg.vbsupport.ru/showthread.php?t=249299)

SynTaX404 08-25-2010 01:29 PM

standard_error messing up styles in plugins
 
In plugins when I use standard_error it messes up the style, is there a different function I am supposed to be using when triggering errors within plugins?

kh99 08-25-2010 03:20 PM

I'm not sure, but my guess would be that it has to do with the hook that you're using, and not just that you're calling it from a plugin.

SynTaX404 08-26-2010 03:06 AM

Quote:

Originally Posted by kh99 (Post 2089402)
I'm not sure, but my guess would be that it has to do with the hook that you're using, and not just that you're calling it from a plugin.

well if you call it from global_start it messes up the styles but not from global_setup_complete

in vb4 it doesn't matter, it messes up in both

Lynne 08-26-2010 01:26 PM

You don't want to use global_start since it is deprecated.
PHP Code:

// Deprecated as of release 4.0.2, replaced by global_bootstrap_init_start
($hook vBulletinHook::fetch_hook('global_start')) ? eval($hook) : false


BirdOPrey5 08-26-2010 04:34 PM

Quote:

Originally Posted by Lynne (Post 2089867)
You don't want to use global_start since it is deprecated.
PHP Code:

// Deprecated as of release 4.0.2, replaced by global_bootstrap_init_start
($hook vBulletinHook::fetch_hook('global_start')) ? eval($hook) : false


"global_bootstrap_init_start" doesn't appear to be a hook in 3.x...

Lynne 08-27-2010 01:51 AM

ARgh! I did it again. Maybe I need to just ignore the vB3 forum if I'm gonna keep giving vB4 answers in here!


All times are GMT. The time now is 09:08 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.02233 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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