vBulletin 4.0.3
Edit Plugin lastx
global $db, $vbulletin;
$arr = $vbulletin->stylevars['imgdir_misc'];
$imgDir = $arr['imagedir'];
var_dump(get
switch ($vbulletin->options['devel_lastx_ord'])
{
case 0: $ord = 'dateline'; break;
case 1: $ord = 'lastpost'; break;
}
$forumdevel1 = $vbulletin->options['lastxforumid1'];
# $db->query_read
# $db->fetch_array
...
vB_Template::preRegister('FORUMHOME',
array(
'lastxdevelt1' => $lastxdevelt1,
'lastxdevelt2' => $lastxdevelt2,
'lastxdevelt3' => $lastxdevelt3,
'forumnamedevel1' => $forumnamedevel1,
'forumnamedevel2' => $forumnamedevel2,
'forumnamedevel3' => $forumnamedevel3,
));
...
Template: FORUMHOME (id: N)
...
<!-- Last X threads -->
<vb:if condition="$vboptions[endislastx]">
<vb:if condition="$vboptions[endislastx1]">
<img src="{vb:stylevar imgdir_misc}/sticky.gif" alt="" /> {vb:raw forumnamedevel1}
</vb:if>
</vb:if>
Title:
Access to plugin's variables in template vBulletin 4.0.x
Description:
vBulletin 4.0.3 Edit Plugin lastx global $db, $vbulletin; $arr = $vbulletin->stylevars['imgdir_misc']; $imgDir = $arr['i...
...
Rating:
4