vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Phrase use and management within products, plugins and hacks (https://vborg.vbsupport.ru/showthread.php?t=96394)

buro9 09-16-2005 01:44 PM

Phrase use and management within products, plugins and hacks
 
Really... can someone write a comprehensive guide on this?

What the XML schema within plugin and product XML is.

How do you call a phrase in your plugin?

How do you pass a phrase parameters?

Is there a maximum to the number of parameters a phrase can take?

Are phrases eval'd like templates are?

I'm really tired of being lost in this area and just hard coding English... I'd actually like to do things properly but can't find documentation on what proper is.

Andreas 09-16-2005 05:14 PM

> What the XML schema within plugin and product XML is.
Don't think it's really that important to explain the schema in detail, as it is created automatically anyway.

> How do you call a phrase in your plugin?
$vbphrase['varname'] in PHP, $vbphrase[varname] in Templates

> How do you pass a phrase parameters?
construct_phrase($vbphrase['varname'], $param 1, $param2); in PHP
<phrase 1="$param1" 2="$param2">$vbphrase[varname]</phrase> in Templates

> Is there a maximum to the number of parameters a phrase can take?
Not "really"

> Are phrases eval'd like templates are?
No.


All times are GMT. The time now is 03:37 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.02078 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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