The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
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? ![]() |
#2
|
|||
|
|||
![]()
globalize $vbulletin inside a function.
PHP Code:
|
#3
|
||||
|
||||
![]()
Also, isn't $vbulletin->templatecache[''.$template_name] the same thing as $vbulletin->templatecache[$template_name]? X3 Why prepend an empty string literal to it?
|
#4
|
||||
|
||||
![]()
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
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|