The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Thanks cellarius for your reply. I think I may have to hire a programmer for this.
|
#12
|
||||
|
||||
Thx a lot Cellarius!
Just a little correction. Code should looks like this: PHP Code:
|
#13
|
||||
|
||||
And what should be corrected in your version of the code? The only thing you changed is the name of the variable, which you lowercased and inserted some underscores. Of course, you can name your variables whatever you want within the limits given by php. But there is no rule, not even a convention in php to use only lowercase variable names and add underscores, so why should using the camelcase variable names the original poster came up with be incorrect?
|
#14
|
||||
|
||||
The var in vB_Template::create and $templatevalues should be the same and without string ($)
|
#15
|
||||
|
||||
You're correct with the $, that is indeed a typo I missed. Thanks for pointing this out. But the vars in the method call and the array do not have to be the same by any means. The first one is the name of the template that's being called, the second one the variable that can be accessed later on. It can make sense to name them the same, but that's not mandatory. In my code I was using the template names and variables the original poster was using. This was not my choice, but I stuck to it to make things not even more difficult.
|
#16
|
|||
|
|||
Just a note to solboy. I initially had a problem understanding the new template rendering system. I spent time going over numerous mods and over cellarius' thread on the subject. I actually keep a handy print out of that thread which I still look over often. I now feel comfort in the "new way" and it is easy to learn via trial and error. If something isn't working, register another variable. Now, it looks so simple to me...except for a couple problems I'm still having.
|
#17
|
||||
|
||||
@ cellarius,
Can you help me with this? https://vborg.vbsupport.ru/showthread.php?t=236031 I cant handle auto template editing |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|