I'm trying to add the Steam card (it's the only part of this mod we use on our site) to the free agent page in our tournaments. I have a working plugin that shows the currently logged in user's steam card instead of the user whose page you're on. If anyone could give me an idea on how to do this I'd greatly appreciate it. Here's what I have at the moment:
PHP Code:
$steamid_facard = $vbulletin->userinfo[field11];
vB_Template::PreRegister('header',array('steamid_facard' => $steamid_facard));
Then I use something like:
HTML Code:
<a target="_blank" href="http://steamcommunity.com/id/{vb:raw steamid_mycard}"><img width="203" border="0" alt="" src="http://steamcard.com/do/original/{vb:raw steamid_mycard}.png"></a>
in the free agent template. What I need is a way to load the profile field by userid of the page you're on. I found somewhere that you can use
PHP Code:
$userinfo = fetch_userinfo($userid);
to find the profile field but before I can even try to dig into that I have to find a way to pass the userid value. Does anyone have any ideas?