The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
this is an example of what I'm doing:
PHP Code:
what is your opinions ? |
#2
|
|||
|
|||
![]()
Please see the HOW-TO section for 3.5
PS I don't understand your remark about 3.0 creating variables automatic, please provide examples. |
#3
|
||||
|
||||
![]()
He means the Variables created by globalize()
|
#4
|
|||
|
|||
![]()
Well they sre still created, only part of an array now.
|
#5
|
||||
|
||||
![]() Quote:
|
#6
|
||||
|
||||
![]() Quote:
|
#7
|
||||
|
||||
![]() Quote:
For a bigger one I'm looking to convert I'm considering writing a small function to call after calling the gpc cleanup, that converts everything in the gpc array to a variable as well. |
#8
|
|||
|
|||
![]()
I think (but could be wrong) that security is the reason for this construction.
When a script starts it will unset the whole array, making sure that no external source can insert values. |
#9
|
||||
|
||||
![]()
thanks for the answer, but is it ok if I use like the example in my first post ? or should it be 'reference' ?
else I would have to 'find and replace' +_+ |
#10
|
|||
|
|||
![]()
Your method works, but personally I replaced variables with the GPC array reference instead of relying on globalize at all.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|