![]() |
parameters
I wanna know how to set parameters and get them to work! :) Here is part of the file I am using.....
Code:
if ($action == "play") { |
did you make sure that you did the {filename here}.php?s=&action=play in the browser?
regards... g-force2k2 |
it was. it was simply not calling the templates.
|
you have singlequotes around $game this will stop the variable from being changed and it will actually attempt to load the template $game
change them to doublequotes around game so its "$game" and not '$game' |
ahh, see, I'm learning ;)
that is the whole point of making, modding, and installing hacks for me, PHP is cool. Thanks PPN. |
yeah thanks PPN... see i leanred someting new too ;) i didn't know the reason why in some files double quotes were used for eval() templates and for other ones single quotes ;) but i think you just helped me in the long run... :) a question though is there anything wrong with having all the templates incased in double quotes? regards...
g-force2k2 |
Its less efficent, php tries to replace all variables in double quotes among other things.
Thats why in vB3 everything uses single quotes where possible in all the coding. You also dont have to escape double quotes within singlequotes. PHP Code:
|
All times are GMT. The time now is 07:00 AM. |
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:
|