![]() |
function to include code on templates
Hi i'm trying to make a function for editing templates this is what i make
PHP Code:
--------------- Added [DATE]1343499648[/DATE] at [TIME]1343499648[/TIME] --------------- The variable $vbulletin->templatecache['.....'] isn't working in a function! Why? :( |
globalize $vbulletin inside a function.
PHP Code:
|
Also, isn't $vbulletin->templatecache[''.$template_name] the same thing as $vbulletin->templatecache[$template_name]? X3 Why prepend an empty string literal to it?
|
That was a test, because in '' i should put prefix of template however thanks the code works $vbulletin isn't a variable declared on the function so i have to globalize it
|
All times are GMT. The time now is 11:51 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|