Back to vBulletin 3.6 Add-ons

Let PHP Live! (Allow PHP code in templates)
Mod Version: 1.00, by King Internet

This modification is in the archives.
vB Version: 3.6.0 Rating: (6 votes - 4.67 average) Installs: 76
Released: 16 Aug 2006 Last Update: 16 Aug 2006 Downloads: 365
Not Supported Uses Plugins Template Edits  

I got frustrated that the vBulletin template system limited me in this way so... I wrote a hack around it.

Just use <? <?php <?= as you would normally in the templates.

I'd like to see PHP based templates in the future, vBulletin! <if> is useless if I can just type <? if ?> !

Things to Remember

You cannot break up PHP blocks.

<? if (0): ?>
Hello!!!
<? endif ?>

will not work, and you'll get a nice error message about how it didn't. If it's really a concern for anyone, I can try to get it working. In my opinion, that's not a big deal. I think PHP support sans breaking up blocks in 10 lines of hack code is pretty nice, myself.

That's a limitation of eval anyway

Variables aren't always the same in PHP mode!

While you can use $vboptions[bbtitle] in your main code and get it working, vBulletin is doing behind the scenes voodoo on stuff.

To access $vboptions[x]: $GLOBALS['vbulletin']->options['x']

Download

This modification is archived, downloads are still allowed.

File Type: %1$s product-letphplive.xml (1.0 KB, 555 downloads)

Similar Mods

BB Code Enhancements MLG Live Event BB Code vBulletin 3.7 Template Modifications
BB Code Enhancements Live Video Embed BB Code vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024