PDA

View Full Version : what is the different between this templates variables


booktoweb
01-17-2009, 01:16 PM
what is the different between this templates variables

$specialtemplates
$globaltemplates
$actiontemplates

i programming add-on now
i don't know when should i put specified template in $specialtemplates , $globaltemplates or $actiontemplates in the header of my file

Lynne
01-17-2009, 02:31 PM
I could find this on google:

$globaltemplates are templates loaded by all actions.
$actiontemplates are templates loaded when a specified action is called such as $do (e.g. ?do=edit).

Then I found this. Look at the comments in the templates he puts in the article - there is a bit of an explanation in there. https://vborg.vbsupport.ru/showthread.php?t=59939

booktoweb
01-17-2009, 03:55 PM
thanks Lynne
what about $specialtemplates

Lynne
01-17-2009, 04:01 PM
I really don't know. I tried doing a search on that also and couldn't find anything about it. This may be a question best asked over on vb.com, although you now have me interested in the answer also.

booktoweb
01-17-2009, 07:59 PM
i think its catch template from datastore
put i don't understand the cach system in vbulletin to know how using $specialtemplates

i will reading some topics about this point
i get this from google
https://vborg.vbsupport.ru/showthread.php?t=110628

--------------- Added 1232238101 at 1232238101 ---------------

i learned everything about datastore
i using xcache and edit my config to
vB_Datastore_XCache

how can i knowing that its working fine and using XCache

Dismounted
01-18-2009, 03:23 AM
$specialtemplates are deceiving. They don't actually affect templates as you know them. It is used to fetch specific items from the datastore. Put any items you want from the datastore here.

Also, keep in mind that $actiontemplates are only affected by $_REQUEST['do'].
how can i knowing that its working fine and using XCache
Look in the XCache Admin Panel. It will show you what variables are cached, etc.