vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   vbulletin array ??? (https://vborg.vbsupport.ru/showthread.php?t=224248)

MyPornLife.info 09-30-2009 03:08 AM

vbulletin array ???
 
I found almost in every .php files of vbulletin (faq.php, showthread.php, gallery.php........) thses array

PHP Code:

$phrasegroups = array( 
   
// some templates
); 

$specialtemplates = array(
   
// some templates
); 

$globaltemplates = array(
   
// some templates
); 

$actiontemplates = array(
   
// some templates  
); 


actually what r they? why we should use them? what they do? can anyone plz explain me ??

Lynne 09-30-2009 03:26 AM

You should use them if you need them, yes. If you plan to use phrases in your code, then you need to list the phrasegroup. If you plan to use any templates, you need to list the templates.

MyPornLife.info 09-30-2009 05:03 AM

i can use templates like this
PHP Code:

eval('print_output("' fetch_template('FAQ') . '");'); 

& that shows the templates named FAQ

so why should i list it ??

im novice about it....can u plz explain it, maybe with an example....plzzzzzzz

Lynne 09-30-2009 02:59 PM

I am pretty sure there are articles about this or even stuff written in the vb documentation about it. I am not the person to write a detailed post about their uses.


All times are GMT. The time now is 07:10 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.01135 seconds
  • Memory Usage 1,714KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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