eSkiSo
03-05-2011, 10:00 PM
Hi there, today i was trying to add a Steam image to the Member Profile witch shows some Steam info. Finally i did it and this is how to do it yourself:
1? Go to Admin CP > User Profile Fields > Add New User Field.
On Profile Field Type choose Single-Line Text Box
Now fill it like this:
* Title: Steam ID
* Description: Enter your Steam ID.
* Max length of allowed user input: 25
* Field Length: 25
* Private Field: No
* Field Searchable on Members List: Your choice!
* Show on Members List: Your choice!
* Regular Expression: ^([A-Za-z0-9 ]+)?$
* Which page displays this option? Edit Profile
Then go to the User Profile Field Manager and see your created field ID in Name Column. (fieldx: x is field ID)
Once you did that go to Admin CP > Styles and Templates > Style Manager > (Skin you're editing) > Edit Templates >
Search Member Info Templates and double click it to expand it
Open MEMBERINFO
Now search:
$userinfo[age]
There should only be one there, so you will see this:
$userinfo[age]
</td>
</tr>
</if>
$customfields
Now add this code under $customfileds (dunno if you also have $customfileds or not, if you dont its under </if>)
BTW dont forget to change the number, where i have field10 to the field number you got when creating the field ID
<tr>
<td>
<if condition="$userinfo['field10']">
<strong>Steam Card</strong>:<br />
<a href="http://steamcommunity.com/id/$userinfo[field10]" target="_blank"><img src="http://steamcard.com/do/original/$userinfo[field10].png" alt="" border="0" width="203" /></a>
</if>
</td>
</tr>
Save it and you should have it correctly created =D
Dont forget to click on Install =D
This is how it looks :
https://vborg.vbsupport.ru/external/2011/03/41.png
1? Go to Admin CP > User Profile Fields > Add New User Field.
On Profile Field Type choose Single-Line Text Box
Now fill it like this:
* Title: Steam ID
* Description: Enter your Steam ID.
* Max length of allowed user input: 25
* Field Length: 25
* Private Field: No
* Field Searchable on Members List: Your choice!
* Show on Members List: Your choice!
* Regular Expression: ^([A-Za-z0-9 ]+)?$
* Which page displays this option? Edit Profile
Then go to the User Profile Field Manager and see your created field ID in Name Column. (fieldx: x is field ID)
Once you did that go to Admin CP > Styles and Templates > Style Manager > (Skin you're editing) > Edit Templates >
Search Member Info Templates and double click it to expand it
Open MEMBERINFO
Now search:
$userinfo[age]
There should only be one there, so you will see this:
$userinfo[age]
</td>
</tr>
</if>
$customfields
Now add this code under $customfileds (dunno if you also have $customfileds or not, if you dont its under </if>)
BTW dont forget to change the number, where i have field10 to the field number you got when creating the field ID
<tr>
<td>
<if condition="$userinfo['field10']">
<strong>Steam Card</strong>:<br />
<a href="http://steamcommunity.com/id/$userinfo[field10]" target="_blank"><img src="http://steamcard.com/do/original/$userinfo[field10].png" alt="" border="0" width="203" /></a>
</if>
</td>
</tr>
Save it and you should have it correctly created =D
Dont forget to click on Install =D
This is how it looks :
https://vborg.vbsupport.ru/external/2011/03/41.png