The Arcive of vBulletin Modifications Site. |
|
Steam Community Profile in Postbit Details »»
|
|||||||||||||||||||||||||
Hi. This is a quick dirty little edit which allows a user to display a link to their Steam Community Profile in their postbit. This mod is brought to you courtesy of http://left4deadforums.com.
First create a New User Profile Field: Title: Steam Community Profile Description: Your <a target="_blank" href="https://steamcommunity.com/"><b>Steam Community</b></a> profile page. Please only enter the final part of the URL. For example: "http://steamcommunity.com/id/left4deadforums" I would enter only "<b>left4deadforums</b>". Default Value: LEAVE THIS BLANK Max length of allowed user input: 30 (will prevent people posting the full URL. This is a "good thing".) Field Length: 25 Profile Field Type: Single-Line Text Box Field Required: No Field Editable by User: Yes Private Field: Yes Field Searchable on Members List: Yes Show on Members List: Yes Regular Expression: LEAVE THIS BLANK Hit save and make a note of the profile field ID for the next step. Edit template POSTBIT. Find: PHP Code:
PHP Code:
Save and you're done. Voila!! DEMO: http://left4deadforums.com/835-left-...movie-1-a.html Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
very nice but i get:
Code:
You did not enter the correct format for the Steam Community Profile field. Please read the field description for the expected format. |
|
#3
|
||||
|
||||
|
If you want to add this mod as a little steam icon where your IM icons are:
Find this in postbit: Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon] Add this right below: Code:
<if condition="$post[fieldXX]"> <a href="http://steamcommunity.com/id/$post[fieldXX]" target="_blank"><img src ="$stylevar[imgdir_misc]/steam.gif"border="0"alt="View Member's Steam Community Profile"></a> </if> Upload the attachment to: /images/misc Dont forget to replace fieldXX with your field number you made. Demo: http://www.theriseoftsm.com/forums/s...ead.php?t=2613 |
|
#4
|
||||
|
||||
|
Where did you get that?
|
|
#5
|
||||
|
||||
|
Ahh....
Sorry, my bad. Leave Regular Expression: and Default Value: blank. |
|
#6
|
|||
|
|||
|
yeah..working now :-)
10x |
|
#7
|
|||
|
|||
|
I realize its been awhile since anyone has posted here, but I've recently had a request to add such a mod and thought I'd give this one a try.
Here are the edits I've made to my postbit. <if condition="$post['field18']"><div>Steam ID: <a href="http://steamcommunity.com/id/$post[field18]" target="_blank">$post[field18]</a></div></if> I've also added the one above to add the image, <if condition="$post[field18]"> <a href="http://steamcommunity.com/id/$post[field18]" target="_blank"><img src ="$stylevar[imgdir_misc]/steam.gif"border="0"alt="View Member's Steam Community Profile"></a> </if> However nothing is wanting to work. Does anyone notice any bonehead mistakes I've made in my edits? The field I made was field18. |
|
#8
|
||||
|
||||
|
What do you mean by "nothing wants to work"? Can you supply your URL and more information as to the issues you're having?
|
|
#9
|
|||
|
|||
|
Does this work on 3.8.1? I see your forum is so im guessing it does.
|
|
#10
|
||||
|
||||
|
Works perfectly in 3.8.x
|
![]() |
|
|