PDA

View Full Version : vbulletin array ???


MyPornLife.info
09-30-2009, 03:08 AM
I found almost in every .php files of vbulletin (faq.php, showthread.php, gallery.php........) thses array

$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
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.