PDA

View Full Version : Coding help (fetch userids)


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?

masterross
03-08-2010, 05:55 PM
no one?

donottumbledry
03-08-2010, 06:08 PM
The code you need in your first bit is:

{vb:raw bbuserinfo.userid} in place of {vb:raw memberinfo.userid}


Hope that helps :)

masterross
03-08-2010, 06:30 PM
If I do that will get my own ID's :)
Not other's members ID

masterross
03-11-2010, 08:15 PM
hmmm....
So many coders here and noone wants to help...