View Full Version : how can i add php code to the footer
samiro
02-18-2010, 11:05 AM
i want to add an <php include> option...
how can i mahe php work in the template ?
borbole
02-18-2010, 12:33 PM
Have a look here:
https://vborg.vbsupport.ru/showthread.php?t=231525
samiro
02-18-2010, 01:01 PM
dont find enything that can help me
do you mean to this :
<phpcode>
<![CDATA[
$vfsms_can_stick_by_sms_forums_ids = str_replace(' ', '', $vbulletin->options['vfsms_can_stick_by_sms']);
$vfsms_allowed4sticky_forums = explode(',', $vfsms_can_stick_by_sms_forums_ids);
// I've already read article from this forum abt passing variables to the template engine
vB_Template::preRegister('SHOWTHREAD', array('vfsms_allowed4sticky_forums' => $vfsms_allowed4sticky_forums));
]]>
</phpcode>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.