PDA

View Full Version : Mini Mods - Steam Community Profile in Postbit


AzH
11-01-2008, 10:00 PM
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:

<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>

Add below:

<if condition="$post['fieldX']"><div>Steam ID: <a href="http://steamcommunity.com/id/$post[fieldX]" target="_blank">$post[fieldX]</a></div></if>

Replace ['fieldX'] with the number of your new profile field.


Save and you're done. Voila!!


DEMO: http://left4deadforums.com/835-left-4-dead-offical-movie-1-a.html

Fynnon
11-10-2008, 08:19 PM
very nice but i get:

You did not enter the correct format for the Steam Community Profile field. Please read the field description for the expected format.

i entered the correct id...

johkalhaups
11-11-2008, 02:24 AM
If you want to add this mod as a little steam icon where your IM icons are:

Find this in postbit:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]



Add this right below:

<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/showthread.php?t=2613

AzH
11-13-2008, 08:15 PM
very nice but i get:

You did not enter the correct format for the Steam Community Profile field. Please read the field description for the expected format.

i entered the correct id...

Where did you get that?

AzH
11-13-2008, 08:16 PM
Ahh....

Sorry, my bad. Leave Regular Expression: and Default Value: blank.

Fynnon
11-14-2008, 11:41 AM
yeah..working now :-)

10x

mlthmp
02-01-2009, 04:25 PM
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.

AzH
02-01-2009, 08:21 PM
What do you mean by "nothing wants to work"? Can you supply your URL and more information as to the issues you're having?

DontWannaName
03-04-2009, 08:16 PM
Does this work on 3.8.1? I see your forum is so im guessing it does.

AzH
03-04-2009, 11:08 PM
Works perfectly in 3.8.x

LieuR
07-28-2009, 06:42 PM
Nice

lm3a.net
08-23-2009, 10:19 AM
Nice,,

thank you..

Paradigm
09-23-2009, 03:56 PM
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....

Paradigm
09-24-2009, 02:50 PM
Never mind, I decided to remove it all and try again and now it works.

Bigj85
09-24-2009, 06:54 PM
Never mind, I decided to remove it all and try again and now it works.

its just because the steam profile site was having troubles,it wasnt working for me either yesterday for a few hours,and when I checked the site it was down

Kyojii
07-29-2010, 01:35 AM
nice addon