![]() |
Smarty Integration With Vbulletin - BETA
This modification will allow you to use Smarty tags in your Vbulletin templates and even allow you to write PHP code in your templates.
I have tested this for the last 3-4 months before I posted it here and am pretty confident that it is all working properly but it should be fully tested on your site before released into production. I am still considering it BETA software. This does require one small source code edit and there really is no way around it that I can find. There is no hook in the fetch_template() function at this time, so it is required. After you install the modification, you can enter tags like this in your templates: Code:
<% Or for PHP: Code:
<%php%> If you find this useful, please: Brought to you by WorldWideCreations.com. |
Great news .. this could help designers produce more interesting themes / skins.
|
Using smarty conditionals will definitely make things easier that is for sure..
|
Have used smarty with some CMS's in the past, and they did prove usefull for some things will have a play on my test server with this
|
Yeah, I would like to get some feedback on how this is all working for you..
|
Smarty - to my knowledge - is the best and most flexible PHP template system. I love it.
Is there anybody who have experience with server performance when running this add-on in vB ? |
In my tests, I found it hardly noticeable. It will not improve performance as templates are still evaluated by Vbulletin. It would IMO although help performance if plugins were built around it. You would really not need the plugin system as we know it with this method as you could execute PHP right in the templates (ideally, with includes).
Also, in custom templates, you could in essence eliminate the need for bit templates as Smarty opens up loops which are not available in Vbulletin template conditionals. |
hey didnt work for me please help
what i had from the test is : #######START CODE echo "Hello World! The timestamp for now is " . TIMENOW; and i really need php |
Did you edit the functions.php file as laid out in the readme?
|
yes i did
the file functions.php is in this path right??? /public_html/vb/includes PHP Code:
|
All times are GMT. The time now is 05:44 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:
|