Version: 1.00, by Jafo232
Developer Last Online: Oct 2022
Category: Integration with vBulletin -
Version: 3.6.8
Rating:
Released: 02-25-2008
Last Update: Never
Installs: 17
Uses Plugins
Code Changes Additional Files Is in Beta Stage
No support by the author.
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:
<%
## Whatever smarty code you want
%>
Or for PHP:
Code:
<%php%>
echo "Hello World! The timestamp for now is " . TIMENOW;
<%/php%>
Have you had any experience using this on a load balanced server setup? I have 2 web front end servers and a shared (can use either CIFS or NFS) filesystem but when I enable this plugin, the servers all seem to slow down quite a bit. Do you know if I absolutely need to have the templates_c directory shared between all web servers? It seems that when smarty compiles to a remote filesystem that is where the slowdown occurs. I know this isn't a problem related specifically to your plugin, but thought I'd ask here anyway. BTW, my link between servers is all at 100mbps so there is plenty of bandwidth there to take care of things, but I may be limited by either the NFS or the CIFS services throughput. Your thoughts?
Have you had any experience using this on a load balanced server setup? I have 2 web front end servers and a shared (can use either CIFS or NFS) filesystem but when I enable this plugin, the servers all seem to slow down quite a bit. Do you know if I absolutely need to have the templates_c directory shared between all web servers? It seems that when smarty compiles to a remote filesystem that is where the slowdown occurs. I know this isn't a problem related specifically to your plugin, but thought I'd ask here anyway. BTW, my link between servers is all at 100mbps so there is plenty of bandwidth there to take care of things, but I may be limited by either the NFS or the CIFS services throughput. Your thoughts?
Hmm, probably more of a Smarty question. I am not very experienced in the load balancing area but if you want to, you can try using a local directory for the templates_c. You would have to edit the plugin code. The plugin named "Start Up Smarty", find:
Code:
$smarty->compile_dir = DIR . '/templates_c';
You can change that to whatever you wish, example:
i found :
%%1E^1E8^1E8F45E3%%db%3Anewpost_quote.php
%%40^403^40326BD9%%db%3Aeditor_jsoptions_size.php
%%67^676^67664761%%db%3Aeditor_jsoptions_font.php