![]() |
Steam Community Profile in Postbit
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 |
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. |
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]"> 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 |
Quote:
|
Ahh....
Sorry, my bad. Leave Regular Expression: and Default Value: blank. |
yeah..working now :-)
10x |
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. |
What do you mean by "nothing wants to work"? Can you supply your URL and more information as to the issues you're having?
|
Does this work on 3.8.1? I see your forum is so im guessing it does.
|
Works perfectly in 3.8.x
|
Nice
|
Nice,,
thank you.. |
I assume since you no longer have it on your boards that it is not working anymore? I installed it on our board, when I click on it it takes me to a steam error webpage....
|
Never mind, I decided to remove it all and try again and now it works.
|
Quote:
|
nice addon
|
All times are GMT. The time now is 04:54 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|