Quote:
Originally Posted by Bestrafung
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?
|
First off Steam Card is horrible... I hate how it requires all lower case and names not numbers... Ideally we would want something where user adds their Steam account to the website and the website draws a custom card much like the mini card.
I was looking at your info was just wondering if the fictional name was supposed to be the same as the output name? Like vb:raw steamid_mycard was wondering why isn't the name reflective of the steamid_facard name??