CampinCarl
07-16-2008, 10:00 PM
Well, I'm a newb when it comes to coding and such, but this was a relatively simple mod to whip up. What it does is displays your steam friends status in the postbit
Screen shot
https://vborg.vbsupport.ru/external/2008/07/6.png
DEMO: (NOTE I use the legacy postbit customized to fit my needs, but this is still a good demo for you guys ;D) http://forum.usgcommunity.com/showthread.php?p=313
Installation:
I'm not experienced enough to create and xml file for simple install, but installation is very simple anyway ;D
Step #1 Creating the steam id profile field
Go to admin control panel> User profile fields> Add new user profile field
Create a Single line text box
Title: STEAM ID
Description: Enter your Steam Id here (alter this to w/e you want ;D)
You don't need to change anything else, unless you deem it necessary
IMPORTANT!!!!: if this is the first custom field you have entered, the value will be field5, if however it is not, you need to go to admin control panel> User profile fields> user profile field manager and write down the field number (ie: field6, field7, etc)
https://vborg.vbsupport.ru/external/2008/07/7.png
Step #2 Editing the postbit
Navigate to Styles & templates > style manager> your style> edit templates> postbit templates> postbit and double click on it.
Find
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
$template_hook[postbit_userinfo_left]
</td>
<td width="100%">
and after add
<if condition="$post['field5']"><iframe src="http://steam.appspot.com/beta/api/iframe?steamID=$post[field5]" width="250" height="60" scrolling="no" marginheight="0" marginwidth="0" frameborder="0"></iframe></if>
NOTE: remember that field you wrote down from the end of step one? if it says anything other then field5, change the above code to $post['your field here'] and $post[your field here]
once youve edited the template accordingly, hit save and enter your STEAM ID in the profile field, and check out your postbit! your should look alot like the screenshot above!
Credits:
Kost: This guy did pretty much everything! he is the creater of http://steam.appspot.com/ (the site that the iframe came from)
View his site @ http://www.steamfortress.com/
Additional notes:
If anyone has any suggestions, please let me know!
If you use it, please click install :D
I have been asked by some people to remove the brand at the top saying something like "steamfreinds2web beta by KoST", however, I am unable to do that, and you must contact KoST and possibly pay him a small fee to do so
http://steamcommunity.com/profiles/76561197960465058
Screen shot
https://vborg.vbsupport.ru/external/2008/07/6.png
DEMO: (NOTE I use the legacy postbit customized to fit my needs, but this is still a good demo for you guys ;D) http://forum.usgcommunity.com/showthread.php?p=313
Installation:
I'm not experienced enough to create and xml file for simple install, but installation is very simple anyway ;D
Step #1 Creating the steam id profile field
Go to admin control panel> User profile fields> Add new user profile field
Create a Single line text box
Title: STEAM ID
Description: Enter your Steam Id here (alter this to w/e you want ;D)
You don't need to change anything else, unless you deem it necessary
IMPORTANT!!!!: if this is the first custom field you have entered, the value will be field5, if however it is not, you need to go to admin control panel> User profile fields> user profile field manager and write down the field number (ie: field6, field7, etc)
https://vborg.vbsupport.ru/external/2008/07/7.png
Step #2 Editing the postbit
Navigate to Styles & templates > style manager> your style> edit templates> postbit templates> postbit and double click on it.
Find
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
$template_hook[postbit_userinfo_left]
</td>
<td width="100%">
and after add
<if condition="$post['field5']"><iframe src="http://steam.appspot.com/beta/api/iframe?steamID=$post[field5]" width="250" height="60" scrolling="no" marginheight="0" marginwidth="0" frameborder="0"></iframe></if>
NOTE: remember that field you wrote down from the end of step one? if it says anything other then field5, change the above code to $post['your field here'] and $post[your field here]
once youve edited the template accordingly, hit save and enter your STEAM ID in the profile field, and check out your postbit! your should look alot like the screenshot above!
Credits:
Kost: This guy did pretty much everything! he is the creater of http://steam.appspot.com/ (the site that the iframe came from)
View his site @ http://www.steamfortress.com/
Additional notes:
If anyone has any suggestions, please let me know!
If you use it, please click install :D
I have been asked by some people to remove the brand at the top saying something like "steamfreinds2web beta by KoST", however, I am unable to do that, and you must contact KoST and possibly pay him a small fee to do so
http://steamcommunity.com/profiles/76561197960465058