The Arcive of vBulletin Modifications Site. |
|
Limited PHP scripts functionality for templates v1.0 Details »»
|
|||||||||||||||||||||||||||
|
Limited PHP scripts functionality for templates v1.0
Developer Last Online: Apr 2014
Hello all !
Here is small funny hack (5 strings of new code only in one script That may help to bring more power to vb templates ![]() Features: - executing php scripts (with modified syntax) from templates. Changing\creating php variables from templates, conditional actions and database requests without editing scripts. It is all ![]() PS changes in 1.1 - normal php variables syntax (with $) - added example of database request from template - support for several PHP blocks in one template Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
hey, looks nice
|
|
#3
|
||||
|
||||
|
Indeed this looks very nice.
But what if a template is called by more than one file? - miSt |
|
#4
|
||||
|
||||
|
then why not to use some condition checking #PHP_SELF in template code ?
|
|
#5
|
||||
|
||||
|
he got u there mist
![]() Looking nice JohnWooo I will check it out when I get home |
|
#6
|
||||
|
||||
|
Interesting, but for organizational methods I like to keep PHP separate from the templates
|
|
#7
|
||||
|
||||
|
Organizational?
Well I would use this in a case of when I am lazy to add 3 lines of code that do 1 thing one 1 page. So it would be pretty useful in my caze
|
|
#8
|
||||
|
||||
|
hmm seems not to be working correctly
![]() I was trying to pull out the the filesize attachments PHP Code:
|
|
#9
|
||||
|
||||
|
It is "limited functionality". Remember?
echo will not work - sorry Try to replace echo with return.
|
|
#10
|
|||
|
|||
|
nice. we should release template mods with this(they might like this on www.vbulletintemplates.com to.
|
![]() |
|
|