I'm not using it in a query; I'm using it in a plugin. I'm not sure if it makes a difference though...
--------------- Added 12 Apr 2009 at 21:26 ---------------
Okay, that isn't working either. Here's my plugin:
Code:
$blocklist = array_merge($blocklist, array(
'licenses' => array(
'class' => 'licenses',
'title' => 'User Licenses',
'hook_location' => 'profile_left_last'
)
));
class vB_ProfileBlock_licenses extends vB_ProfileBlock
{
var $template_name = 'memberinfo_block_licenses';
function confirm_empty_wrap()
{
return false;
}
function confirm_display()
{
return ($this->block_data['licenses'] != '');
}
function prepare_output($id = '', $options = array())
{
$this->block_data['licenses'] = '<iframe src="http://www.mydomain.net/admincp/vbma_admin.php?do=viewuserslicenses&userid=userIDhere" width="100%"></iframe>';
}
}
What I'm doing is adding a new tab to the user profiles. Basically, the content of the tab will be an iframe of a page in the AdminCP (code in blue). I need the code in red to become the user ID of the person's profile I'm viewing.
So now here is the list of things I've tried (in place of the red code):
$user['userid']
$prepared[userid]
$prepared['userid']
'".$prepared['userid']."'
... and none of them work.