Since I've received several requests for a vBulletin plugin, I decided to provide one which covers the basics and can be modified at will. I'll leave modification, optimization and styling to you. As stated before, KoST wrote most of the code, all props to him. I just turned it into a poor vB plugin (one of my few skills is pressing Ctrl+C followed by Ctrl+V).
As for optimization, grabbing the XML (add ?xml=1 to a Friend's page -
example) instead of parsing complete HTML pages might speed up things. Also, not loading the Steam2Friends part with javascript until the complete page has loaded could increase the user/visitor friendliness. To enable memcached support, open steam_function.php and follow the instructions.
As for styling, you could have a look at the original Steam Community pages for inspiration, or create your own style. To create a style of your liking, you can simply use CSS and (X)HTML. See the attached .xml file for the basic XHTML.
Here are the instructions for this basic plugin :
- create a subfolder named 'steamtools' in the folder where your forum (index.php) resides
- create a subfolder in 'steamtools' named 'icons'
- make 'icons' writable for the webserver (chmod to 755)
- open steam_function.php in a plain text editor like notepad, and replace the paths in lines 58 and 62 accordingly. Note that these paths need to be absolute and not relative!
- upload steam_function.php to 'steamtools'
- create a sinlge-line text box custom profile field named 'Steam ID' (note this is case sensitive, if you want to change this, change the occurring instances in the .xml and .php files as well)
- create a single-selection radio buttons custom profile field named 'Steam Community' with these two values : 'Yes, make the links visible' and 'No, hide the links' (note this is all case sensitive, if you want to change this, change the occurring instances in the .xml and .php files as well)
- import product-steam2friends.xml in the admin panel
Oh, it's only been tested on vBulletin 3.7.x and 3.8.x. It may or may not work on other versions.
Update: a bug that prevented the avatars from showing up has been fixed in 1.1 (see attachment)