![]() |
Limited PHP scripts functionality for templates v1.0
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 |
hey, looks nice :)
|
Indeed this looks very nice.
But what if a template is called by more than one file? - miSt |
then why not to use some condition checking #PHP_SELF in template code ?
|
he got u there mist ;)
Looking nice JohnWooo I will check it out when I get home |
Interesting, but for organizational methods I like to keep PHP separate from the templates :p
|
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 :) |
hmm seems not to be working correctly :(
I was trying to pull out the the filesize attachments PHP Code:
|
It is "limited functionality". Remember? :) echo will not work - sorry :) Try to replace echo with return.
|
nice. we should release template mods with this(they might like this on www.vbulletintemplates.com to.
|
All times are GMT. The time now is 02:42 PM. |
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:
|