vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How 'global' is $prepared[] ? (https://vborg.vbsupport.ru/showthread.php?t=309967)

doob 03-28-2014 12:53 AM

How 'global' is $prepared[] ?
 
I've seen stuff like $prepared[musername] which would output...the user's name in a template. (I think I noticed it in the profile templates, but may be elsewhere).

I'm just wondering if anyone knows offhand if this should work in all the templates, or if its going to be specific to certain ones.

Zachery 03-28-2014 01:00 AM

I can't think of anywhere I've even seen $prepared[musername] in the templates before.

But, you can try, it'll work or it wont :)

doob 03-28-2014 01:46 AM

Its in MEMBERINFO for sure...

along with a bunch of other $prepared[] stuff.

ozzy47 03-28-2014 01:50 AM

It will only work in any of the member info templates, most likely these:

Code:

MEMBERINFO
memberinfo_block_aboutme
memberinfo_block_contactinfo
memberinfo_block_friends
memberinfo_block_friends_mini
memberinfo_block_groups
memberinfo_block_ministats
memberinfo_block_profilepicture
memberinfo_block_statistics
memberinfo_block_visitormessaging


doob 03-28-2014 02:25 AM

Thanks!

ozzy47 03-28-2014 02:36 AM

Not a problem. :)


All times are GMT. The time now is 03:54 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.00993 seconds
  • Memory Usage 1,711KB
  • 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_code_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