PDA

View Full Version : Mini Mods - Steam IM Card v4.x (now with Steam Profile Tab)


bananalive
06-08-2010, 10:00 PM
This adds the ability of having for each user of your board to enter their Steam ID like the MSN, ICQ, AOL, Yahoo and Skype Messenger contact cards.

Users can enter their steam id in the following forms:

steam id: STEAM_0:X:XXXX
http://steamcommunity.com/profiles/7656119XXXXXXXXXX (profile page url)
steam community id: 7656119XXXXXXXXXX

This hack also integrates itself into the AdminCP User editor and the User Control Panel when its enabled.

A profile tab with the steam profile information is also implemented. (optional - can be disabled)

Permission granted for port of this hack to vB v3.8 (and now to vB 4.x). Originally developed by Kalle Sommer Nielsen (c) 2007

Installation

upload im_steam.gif to images/misc/
import product

bananalive
06-09-2010, 06:13 PM
Version History

v4.0.2
- Different handling for community pages
- Added steam profile tab with option to turn on/off

v4.0.1
- Fixed issue of icons not displaying on Who's Online or Memberlist

v4.0.0
- Initial vB v4 port

bananalive
06-09-2010, 06:14 PM
reserved post #2

Skyrider
06-10-2010, 05:51 AM
Thanks, works great! :D

cortinator
06-11-2010, 03:57 AM
Trying to test this on my board, but it doesn't seem to work. When I try inputting my steam ID and I click on save, it won't save. It will remain blank. Some things to note: I have CSS saved as files and I use vB Supercharged.

Skyrider
06-11-2010, 10:51 AM
Bananalive, the steam icon won't show in: xxxxxx/online.php

bananalive
06-11-2010, 01:17 PM
Bananalive, the steam icon won't show in: xxxxxx/online.php

Fixed in v4.0.1

bananalive
06-11-2010, 01:17 PM
Trying to test this on my board, but it doesn't seem to work. When I try inputting my steam ID and I click on save, it won't save. It will remain blank. Some things to note: I have CSS saved as files and I use vB Supercharged.

What format are you entering it in?


steam id: STEAM_0:X:XXXX
http://steamcommunity.com/profiles/7656119XXXXXXXXXX (profile page url)
steam community id: 7656119XXXXXXXXXX

Skyrider
06-11-2010, 02:25 PM
Thanks Bananalive! :)

Theater
06-11-2010, 03:05 PM
Not saving for me either. No matter what I put in that field it comes back blank.

cortinator
06-11-2010, 06:00 PM
Not saving for me either. No matter what I put in that field it comes back blank.

Pretty much my problem. I tried entering all formats and it doesn't seem to register. I also tried editing it through the AdminCP and that doesn't seem to do anything either.

Skyrider
06-12-2010, 10:47 AM
You guys are not using profile names, are you? Example:

http://steamcommunity.com/id/Skyrider

^ That won't work. It needs to be either the SteamID or the number ID of your profile.

flussmitteldj
06-12-2010, 02:19 PM
Thanks for the nice addon :)

bananalive
06-12-2010, 03:49 PM
Pretty much my problem. I tried entering all formats and it doesn't seem to register. I also tried editing it through the AdminCP and that doesn't seem to do anything either.

You guys are not using profile names, are you? Example:

http://steamcommunity.com/id/Skyrider

^ That won't work. It needs to be either the SteamID or the number ID of your profile.

Not saving for me either. No matter what I put in that field it comes back blank.

I've changed the handler for community urls. So if you have enabled Enable Access to Steam Community you could input http://steamcommunity.com/id/*** and it now works out your steamid.

cortinator
06-13-2010, 05:34 AM
Ah, that last update did the trick. Now it works flawlessly. Excellent mod!

TerrorKalle
06-19-2010, 12:37 PM
Amazing to see its progress since vB 3.6, good job Banana

-Kalle

John Streetz
07-01-2010, 11:34 PM
I have iTrader on my site. When the Steam tag is live on a profile page after they enter in their Steam info, the other tabs don't work. You click on them and the profile page goes blank underneath the tabs. How can I fix this?

bananalive
07-05-2010, 10:22 AM
I have iTrader on my site. When the Steam tag is live on a profile page after they enter in their Steam info, the other tabs don't work. You click on them and the profile page goes blank underneath the tabs. How can I fix this?

I have just tested this error and i cannot reproduce it. Can you give any more details?

Trip3151
07-10-2010, 11:09 PM
Would you know why I get a link instead of the steam image in the postbit?

http://www.outkasts.net.au/forum/showthread.php/1132-New-Roster

Trip3151
07-11-2010, 12:35 AM
Never mind worked it out :)

thisgeek
09-21-2010, 08:30 AM
I have iTrader on my site. When the Steam tag is live on a profile page after they enter in their Steam info, the other tabs don't work. You click on them and the profile page goes blank underneath the tabs. How can I fix this?

I have just tested this error and i cannot reproduce it. Can you give any more details?

I'm getting the same issue. If I enable the plugin "Steam Profile Tab", then any tabs that occur after the steam profile don't render. The tab headings render, but not the actual tab contents.

I have the addon 'vbExperience (https://vborg.vbsupport.ru/showthread.php?t=245023)' installed which creates a profile tab, as well as 'Display Reputation Comments on User Profile (https://vborg.vbsupport.ru/showthread.php?t=232497)' installed. Neither of the profile tabs work - including the vBulletin Blogs tab.

I have attached screenshots, with the steam profile tab enabled, and with it disabled.

bananalive
09-22-2010, 09:54 AM
I'm getting the same issue. If I enable the plugin "Steam Profile Tab", then any tabs that occur after the steam profile don't render. The tab headings render, but not the actual tab contents.

I have the addon 'vbExperience (https://vborg.vbsupport.ru/showthread.php?t=245023)' installed which creates a profile tab, as well as 'Display Reputation Comments on User Profile (https://vborg.vbsupport.ru/showthread.php?t=232497)' installed. Neither of the profile tabs work - including the vBulletin Blogs tab.

I have attached screenshots, with the steam profile tab enabled, and with it disabled.

Import attached file

Or find in template memberinfo_block_steam
</if>
Replace with
</vb:if>

kroko
11-01-2010, 12:24 AM
dose this work with vbulletin 4,8?

Trip3151
11-01-2010, 12:44 AM
dose this work with vbulletin 4,8?

yes

Foxtrotelite
11-07-2010, 11:51 PM
Nice mod! I had a lot of this already custom added, but this was a lot nicer and easier. Thanks!

websimplicity
03-09-2011, 06:04 PM
Hi, my steam tab appears with out the actual tab when you first load the profile page
if I click on the steam tab then it shows as it should when active and if i go to another tab it then looks as it should as well. its only on page load.

any suggestions?
127302

MissSavitri
05-17-2011, 08:52 PM
Getting the following error on 4.1.3

Warning: DOMDocument::load() [domdocument.load]: URL file-access is disabled in the server configuration in [path]/member.php(500) : eval()'d code on line 41

Warning: DOMDocument::load(http://steamcommunity.com/profiles/76561198017321000?xml=1) [domdocument.load]: failed to open stream: no suitable wrapper could be found in [path]/member.php(500) : eval()'d code on line 41

Warning: DOMDocument::load() [domdocument.load]: I/O warning : failed to load external entity "http://steamcommunity.com/profiles/76561198017321000?xml=1" in [path]/member.php(500) : eval()'d code on line 41

Warning: Invalid argument supplied for foreach() in [path]/member.php(500) : eval()'d code on line 43

crazymilk
05-21-2011, 10:04 AM
sorry but I'm missing where you get the im_steam.gif

ICannt.org
05-25-2011, 02:42 PM
Hello,

There appears to be a bit of a glitch with this plugin.

When a person's Steam Community Profile is set to Friends Only or Private, there becomes a glitch in the HTML which causes a leak somewhere on the user's forum profile page - as seen in the comparative screenshots.

If you have a look at

Additionally, the "Steam" tab has border-lines where they shouldn't be, is there any known reason for this or how it could be fixed?

If you compare between no-steam-tab.png and steam-tab.png, the bottom navbar links change colour, as does the background, and the navigation breadcrumb at the top becomes separated (A misplaced </div> maybe?)

And finally, one feature request:

Would it be possible to have an entry in the "Contact" area of the profile with something about adding them on Steam?


Anyway, aside from my dribbling on, I'd just like to thank you for your awesome mod! It works well, and is very effective!

Cheers :)

luckid
06-22-2011, 01:34 AM
With vb 4.1.3 is ok but with the VB 4.1.4 plugin error when you go to "connected users"

Database error in vBulletin 4.1.4:

Invalid SQL:

SELECT IF(userid > 0, 1, 0) as isuser, COUNT(session.userid) as online_users
, user.steam
FROM session as session

WHERE session.lastactivity > 1308709383



GROUP BY isuser;

MySQL Error : Unknown column 'user.steam' in 'field list'
Error Number : 1054
Request Date : Tuesday, June 21st 2011 @ 10:38:03 PM
Error Date : Tuesday, June 21st 2011 @ 10:38:04 PM
Script : http://***********/forum/online.php
Referrer : http://**********/forum/forum.php
IP Address : **********
Username : *****
Classname : vB_Database
MySQL Version : 5.0.77

Tnx in advance for this fix :-)

thisgeek
06-29-2011, 07:09 PM
With vb 4.1.3 is ok but with the VB 4.1.4 plugin error when you go to "connected users"

Database error in vBulletin 4.1.4:

Invalid SQL:

SELECT IF(userid > 0, 1, 0) as isuser, COUNT(session.userid) as online_users
, user.steam
FROM session as session

WHERE session.lastactivity > 1308709383



GROUP BY isuser;

MySQL Error : Unknown column 'user.steam' in 'field list'
Error Number : 1054
Request Date : Tuesday, June 21st 2011 @ 10:38:03 PM
Error Date : Tuesday, June 21st 2011 @ 10:38:04 PM
Script : http://***********/forum/online.php
Referrer : http://**********/forum/forum.php
IP Address : **********
Username : *****
Classname : vB_Database
MySQL Version : 5.0.77


Getting the same problem. Disabling the product fixes the error. I'll leave it disabled until this mod is updated.

Thanks :)

luckid
07-01-2011, 02:11 AM
Getting the same problem. Disabling the product fixes the error. I'll leave it disabled until this mod is updated.

Thanks :)

I had to disable it ... I hope in a fix as soon as possible :o

Gerdeman
07-02-2011, 02:17 AM
Definitely update this mod, great feature to have.

techanalyst
07-02-2011, 04:22 AM
Possible etas for 4.1.1 users :)

kardac.stenfot
08-23-2011, 02:56 PM
With vb 4.1.3 is ok but with the VB 4.1.4 plugin error when you go to "connected users"

Database error in vBulletin 4.1.4:

Invalid SQL:

SELECT IF(userid > 0, 1, 0) as isuser, COUNT(session.userid) as online_users
, user.steam
FROM session as session

WHERE session.lastactivity > 1308709383



GROUP BY isuser;

MySQL Error : Unknown column 'user.steam' in 'field list'
Error Number : 1054
Request Date : Tuesday, June 21st 2011 @ 10:38:03 PM
Error Date : Tuesday, June 21st 2011 @ 10:38:04 PM
Script : http://***********/forum/online.php
Referrer : http://**********/forum/forum.php
IP Address : **********
Username : *****
Classname : vB_Database
MySQL Version : 5.0.77

Tnx in advance for this fix :-)

Confirming that I have the same problem. Disable this plugin until update is posted.

Skyrider
09-02-2011, 08:40 AM
No updates on this?

chamoul
09-03-2011, 02:28 PM
I didn't really managed to make it properly, but my hack made this add-ons work for vBulletin 4.1.5 Patch Level 1


in product-imsteamv4.0.2.xml
remove or put in comment (<!-- -->) the code below

<plugin active="1" executionorder="5">
<title>add online bit</title>
<hookname>online_query</hookname>
<phpcode><![CDATA[$hook_query_fields .= ", user.steam";]]></phpcode>
</plugin>


and if you want to display the steam icon in the online.php

you need to change this


$globaltemplates = array(
'forumdisplay_sortarrow',
'im_aim',
'im_icq',
'im_msn',
'im_yahoo',
'im_skype',
'WHOSONLINE',
'whosonlinebit'
);


by


$globaltemplates = array(
'forumdisplay_sortarrow',
'im_aim',
'im_icq',
'im_msn',
'im_yahoo',
'im_skype',
'im_steam',
'WHOSONLINE',
'whosonlinebit'
);


and at line 263 you need to change the sql query

SELECT user.username, session.useragent, session.location, session.lastactivity,
user.userid, user.options,
session.host, session.badlocation, session.incalendar, session.inthread,
user.aim, user.icq, user.msn, user.yahoo, user.skype,


by


SELECT user.username, session.useragent, session.location, session.lastactivity,
user.userid, user.options,
session.host, session.badlocation, session.incalendar, session.inthread,
user.aim, user.icq, user.msn, user.yahoo, user.skype, user.steam,


This is just a hack until maybe to author find a solution to the problem :)

FTG LIQUID CL
02-04-2013, 05:04 PM
anyway to make this work with 4.1.12

Pictureclass
06-25-2013, 07:47 PM
wow, great Plugin. Thank you very very much. Works great with 4.2.1

ruger
04-27-2014, 05:25 AM
Working fine on 4.2.2PL1

SVTdrivah
05-07-2014, 04:36 PM
Getting the following error on 4.1.3

Warning: DOMDocument::load() [domdocument.load]: URL file-access is disabled in the server configuration in [path]/member.php(500) : eval()'d code on line 41

Warning: DOMDocument::load(http://steamcommunity.com/profiles/76561198017321000?xml=1) [domdocument.load]: failed to open stream: no suitable wrapper could be found in [path]/member.php(500) : eval()'d code on line 41

Warning: DOMDocument::load() [domdocument.load]: I/O warning : failed to load external entity "http://steamcommunity.com/profiles/76561198017321000?xml=1" in [path]/member.php(500) : eval()'d code on line 41

Warning: Invalid argument supplied for foreach() in [path]/member.php(500) : eval()'d code on line 43

Getting same error using 4.2.2.1

Barbecue_Eater
03-19-2015, 06:37 PM
The error happens while the STEAM Community server is offline.
The script is trying to load some XML objects which are not existent, this is why the error occures.

There would be 2 theoretical fixes:
Do the whole thing in JS (which would be good)
And make the script check if the website / XML object is available.