vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Error Messages (https://vborg.vbsupport.ru/showthread.php?t=224725)

ZeepySea 10-06-2009 11:40 PM

Error Messages
 
I'm attempting to figure out how vb displays their error messages.

I have gone thru register.php and see where it creates a variable called $errorlist and then adds a li for each error. But I am trying to see where it displays those errors.

Lynne 10-07-2009 01:47 AM

You mean what template they get displayed in? Try a Search in Templates for $errorlist and you will see a list of templates that list gets displayed in.

ZeepySea 10-07-2009 02:01 AM

Yes I found the template for it and found out it is just a datamanager for the $userdata. It then just adds the info to the $errorlist and flags the $show['errors'] to true.

EDIT:
For some reason, my phrases won't work for the errors. I added them into the global, but yet I can't use them. I've double checked the spelling. Am I missing something?

ZeepySea 10-10-2009 03:15 AM

Can anyone help me? I still can't find out why the phrases won't work.

I get; could not find phrase 'phrase_name'.

Do I need to include a different file to load the global? I currently have global.php, fuctions.php and class_core.php

Lynne 10-10-2009 03:21 AM

error phrases are not global phrases. You need to make them Front End Error Message phrases.

ZeepySea 10-10-2009 03:32 AM

ty, yet again you know how to fix it


All times are GMT. The time now is 10:33 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.01440 seconds
  • Memory Usage 1,707KB
  • 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
  • (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