Updated Steam Profile Badges

MjRNuT

L1: Registered
Mar 23, 2008
21
1
im sorry, i thought you had a problem it displaying.

the file you need to edit is the steamprofile js file.

try running a search on the file for 'tf2items.com'.

yes sir. That was the first attempt, to replace with a different url over the provided one. I found the one location in the file you mention and no dice.

even if you are editing the steamprofile.js file it wont work unless in the template you wont modify steamprofile.min.js in steamprofile.js. trust me, i saw this today:)

Did you get it to work? Are you referring to a different backpack site then?


I'm not hard pressed for this, so thanks for the attention though. I do have one question on a cosmetic note. By default, the status does not open unless you click the vertical bar. Unfortunately, there are ppl that do not realize that feature is actionable. Is it possible to have the "window" open by default and if so, how would that be accomplished?
 

drp

aa
Oct 25, 2007
2,273
2,628
yes sir. That was the first attempt, to replace with a different url over the provided one. I found the one location in the file you mention and no dice.



Did you get it to work? Are you referring to a different backpack site then?


I'm not hard pressed for this, so thanks for the attention though. I do have one question on a cosmetic note. By default, the status does not open unless you click the vertical bar. Unfortunately, there are ppl that do not realize that feature is actionable. Is it possible to have the "window" open by default and if so, how would that be accomplished?
im almost certain that leaving the slider in the 'open' position is possible. however, ive never really looked in to it so i cant offer much help.

the creator of steamprofile, Barracuda, lurks these forums, might want to send him a pm.
 

Barracuda

L1: Registered
Sep 24, 2009
41
37
Yes, I still look around here from time to time. Sorry for the late response, though. :unsure:

If you customize the steamprofile.js, keep in mind to use this file in the <script>-header as well, instead of the packed steamprofile.min.js. Both files have the same function, the packed one is just optimized to cause less traffic when transfered.

And default-open slider menus can be enabled by extending this function

Code:
	function createEvents(profile) {
		// add events for menu
		profile.find('.sp-handle').click(function() {
			profile.find('.sp-content').toggle(200);
		});
	}

by one line so it looks like this:

Code:
	function createEvents(profile) {
		// add events for menu
		profile.find('.sp-handle').click(function() {
			profile.find('.sp-content').toggle(200);
		});
		profile.find('.sp-content').toggle(200);
	}
 

MjRNuT

L1: Registered
Mar 23, 2008
21
1
Wow, thanks for the reply Barracuda!!

I will give that a go.

How do I modify the width of the badge?

div class="steamprofile" title="STEAM_0:0:0000" alt="Name" width="80"></div

This doesn't seem to work
 

Barracuda

L1: Registered
Sep 24, 2009
41
37
You need to edit the style.css of your theme. For the default one, it's themes\default\style.css.
The width and height can be changed in the section .steamprofile in line 8.
 

honeymustard

L9: Fashionable Member
Oct 26, 2009
698
574
Is it just me, or are they stuck? Mine says I've been in Metro 2033 for about a week straight (I played it for about 10 minutes).

edit: fixed now
 
Last edited:

drp

aa
Oct 25, 2007
2,273
2,628
its probably a caching error. ill look in to it right now.
 

Wilson

Boomer by Sleep
aa
May 4, 2010
1,385
1,223
I noticed today that these badges ain't updating at all, they are using people old avatars and show state they were before they stop updating. (Or then it is just me)
 

tyler

aa
Sep 11, 2013
5,102
4,621
I think mine has always been wrong, unless in the last hour I had said that it was wrong and someone had fixed it.
 

kondor7

L1: Registered
May 21, 2011
3
0
Hi everyone.

I'm posting here because it seems Baracuda is active on this board.

I want to set up this STeam Badge on my website (not on a forum. Just on roster page).
I don't understand very well your exemple because when I upload it on my website all I got is too links :
Add Gabe!
Add Drunken F00l!

here : http://redsoviet.free.fr/steam/example.html

So your exemple is not working for me, I don't try to try farer when I saw that.

I would be glad to have to help.
Sorry for french.
 

drp

aa
Oct 25, 2007
2,273
2,628
i do believe he has included some instructions on the read me file. you will need to include his javascript file in your header and call the badge using the steamid as a parameter.
 

kondor7

L1: Registered
May 21, 2011
3
0
Thanks. I'm so stupid...... Ignore my firt post. Seems to work, because I test it correctly this timle..

Thanks anyway =)
 
Last edited:

Zerogamer

L1: Registered
Jun 13, 2011
1
0
Nice stuff trying to use it on my site but it only appears on when you make a post not a reply.
I am using 4.0.5
 

gamemaster1996

L13: Stunning Member
Sep 30, 2009
1,064
134
Mines using a 2 month old avatar (atleast) an old name and it says i was last online 4 days ago when infact i've been online all week.