Back to vBulletin 3.6 Template Modifications

Quick Last.fm addon to member profile
Mod Version: 1.00, by Sparky_s

This modification is in the archives.
vB Version: 3.6.0 RC3 Rating: (0 vote - 0 average) Installs: 13
Released: 02 Aug 2006 Last Update: Never Downloads: 3
Not Supported Template Edits  

From doing a search here for a Last.fm/audioscrobbler hack to add a last.fm recent tracks, the two I found required Pear.

So I decided to do a quick add on and to share it.

As I'm new to this, I wont be able to offer full support, but I will hope that since it's fairly simple, none should be required.
If so, I can try myself and hope for help from other users.

Create new user profile field in User Profile Fields> Add new user profile field.

Edit the following:

Title= Last.fm recent tracks
Description= Your Last.fm username
Default Value= (leave blank)
Max length of allowed user input=100
Field Length=25
Profile Field Type= Single-Line Text Box
Display Order=99 (this is to make sure the last.fm field is last on the list)

Field Required= No
Field Editable by User= Yes
Private Field=No
Field Searchable on Members List= No
Show on Members List= No
Regular Expression= (blank)

Which page displays this option?= Edit Profile.

Once this is done, make sure to remember the field number, in my case it was 'field10'. In your case change it to whatever field number that you have.

In Styles & Templates> Style Manager.

Go to your chosen style and find MEMBERINFO under 'Member Info Templates'

After:
Code:
                </tr>
                </if>
                $customfields
                </table>
Add:
Code:
<if condition="$post['field10']"><div><a href="http://www.last.fm/user/$post[field10]/?chartstyle=basicrt10"><img src="http://imagegen.last.fm/basicrt10/recenttracks/$post[field10].gif" border="0" alt="$post[field10]'s Profile Page" /></a></div></if>
Save the template and thats it.

http://www.htireland.com/member.php?u=2

If you want a different style or want to have top albums, top tracks etc, all you need to do is go to your last.fm tools section and select charts. Copy the code for websites and just replace the username with $post[fieldX].

Thank you all

Sparky.

Download

No files for download.

Similar Mods

Quick Mood Changer - addon vBulletin 3.5 Add-ons
Profile Gallery: Allow Users to Upload Member Profile Images vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024