First I set up a small plugin like that:
PHP Code:
$niuchacz['foruminfo_forumid'] = $foruminfo['forumid'];
$niuchacz['foruminfo_vbulletin_GPC'] = $vbulletin->GPC['forumid'];
$niuchacz['thread'] = $thread['forumid'];
vB_Template::preRegister('block_html',array('niuchacz' => $niuchacz));
hooked at global bootstrap init complete (I'm not sure about that) and then call them from block_html template to see the forumid:
Code:
<div id="block_html_{vb:raw blockinfo.blockid}" class="blockbody restore">
{vb:raw content}
<br />foruminfo: {vb:raw niuchacz.foruminfo_forumid}
<br />GPC: {vb:raw niuchacz.foruminfo_vbulletin_GPC}
<br />thread: {vb:raw niuchacz.thread}
</div>
Results are, that $global->GPC['forumid'] works for forumdisplay, but not for showthread.php.
On the showthread level I see no forumid at all.
Any clue what I'm doing wrong?
--------------- Added [DATE]1296125847[/DATE] at [TIME]1296125847[/TIME] ---------------
Solved. Plugin hook should be process_templates_complete.
Although I am not sure if AFTER that process I can give some parameters to my own php file. I'll check this...