![]() |
|
Thread Tools |
#1
|
||||
|
||||
function to include code on templates
Hi i'm trying to make a function for editing templates this is what i make
but it doesn't work it seems that "$vbulletin->templatecache[''.$template_name] .= $include;" doesn't work in a function.. where am i wrong :S --------------- Added 28 Jul 2012 at 19:20 --------------- The variable $vbulletin->templatecache['.....'] isn't working in a function! Why? ![]()
__________________
http://twitter.com/scanu_account No members have liked this post.
|
#2
|
||||
|
||||
globalize $vbulletin inside a function.
No members have liked this post.
|
#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?
No members have liked this post.
|
#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
__________________
http://twitter.com/scanu_account No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 16:50.