masterross
03-05-2010, 10:56 PM
Hi
I'm trying to add some additional mod options when you click on username in postbit.
First I made template postbit_modtools
<li class="left"><a href="modcp/user.php?do=avatar&userid={vb:raw memberinfo.userid}"><img src="{vb:stylevar imgdir_siteicons}/settings.png" alt="" /> {vb:rawphrase editavatar}</a></li>
than I made plugin in postbit _display_start:
if (THIS_SCRIPT == 'showthread')
{
$templater = vB_Template::Create('postbit_modtools');
$template_hook[memberaction_dropdown_items] .= $templater->render();
} The problem is that userid's doesnt fetch in that way :confused:
Any ideas?
I'm trying to add some additional mod options when you click on username in postbit.
First I made template postbit_modtools
<li class="left"><a href="modcp/user.php?do=avatar&userid={vb:raw memberinfo.userid}"><img src="{vb:stylevar imgdir_siteicons}/settings.png" alt="" /> {vb:rawphrase editavatar}</a></li>
than I made plugin in postbit _display_start:
if (THIS_SCRIPT == 'showthread')
{
$templater = vB_Template::Create('postbit_modtools');
$template_hook[memberaction_dropdown_items] .= $templater->render();
} The problem is that userid's doesnt fetch in that way :confused:
Any ideas?