Quote:
Originally Posted by Cadellin
- IF steam linked user
|
HTML Code:
Linked=<vb:if condition="$vbulletin->userinfo['steam_link']">1<vb:else />0</vb:if>
Quote:
- IF steam avatar is available
|
Won't work, because the data steam returns gives you a generic url to the avatar, which returns the default questionmark avatar if none was specified. So in short: There is no way to find that out.
Quote:
- IF steam profile is public/profile
|
Coming in the next update. For now you can only check that in the code, not in templates yet.
PHP Code:
global $vbulletin;
$steamid = get_user_steamid($vbulletin->userinfo);
$steaminfo = fetch_steam_info($steamid, $vbulletin->options['stc_apikey']);
if ($steaminfo['communityvisibilitystate'] == '3') {
echo 'Public';
} else {
echo 'Private';
}
Quote:
- VAR User SteamID (post.steam64?)
|
HTML Code:
{vb:raw bbuserinfo.steam_code}
Where you can replace bbuserinfo with any other var containing userinformation, like for example in postbit templates.
Quote:
What is your recommended location for the steam cache and the file permissions for that folder?
|
I recommend the /tmp folder on linux machines, so if you use multiple vbulletin instances, they can all share the same cached files instead of one of their own.
Also, it's good style to keep all cached data at one location. At least it should remain outside a web-accessible directory for privacy reasons.
Folder permissions should be 0777, but as long as the webuser has read/write permission, it's good enough.