Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Quick Last.fm/audoscrobbler latest tracks pack. Details »
Quick Last.fm/audoscrobbler latest tracks pack.
Mod Version: 1.00, by Sparky_s (Member) Sparky_s is offline
Developer Last Online: Oct 2009 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.1 Rating: (1 vote - 5.00 average) Installs: 11
Released: 26 Sep 2006 Last Update: Never Downloads: 3
Not Supported Template Edits Additional Files  

Following on from my quick hack to the member profiles, I have tested this setup out for quite a few months and I am very happy with the results.
The most recent add-on to the pack, I have tested for a few days and is pretty simple in terms of what it does.
Many special thanks to Skedoozy for his idea on the AIM icons add on, which is included here.

What it is!
This is basically a template mod to the posbit templates to add any latest songs/tracks a user has played beside their avatar/name.

Install time?

~5 minutes max for each feature.
~15 max for the whole package.

Add-on 1- Latest tracks in member profile.

As per this hack: http://www.vbulletin.org/forum/showthread.php?t=122843
If you have already installed this, you can proceed to install the next feature. (Add-on 2)

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Save the template and thats it.

Live example here

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].

Please also note the "basicrt10" in the http address for both chartstyle and /recenttracks.

You can change this to any of the following in the codes here:
http://www.last.fm/tools/charts/

If you have any querys, post them here if you like or PM me.

Add-on 2 - Tracks in Postbit

Note: If you have your forum on postbit_legacy please scroll to Add- on 2.1 after you read how to add a profile field below.

Having created the user input field in add-on 1, we can now use them to also show the details on the postbit.
However you must first create the option for if the user wants to display their tracks beside their username/avatar.

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

Single selection radio buttons.

Edit the following:

Title= Show Last.fm track with posts?
Description= Click YES to show your last played track where you post.
Items per line= (leave at zero)
Options= YES on first line, NO on second line.
Set default= select 'no'
Display order= 98
Field Required= No
Field Editable by User= Yes
Private Field=No
Field Searchable on Members List= No
Show on Members List= No
Allow user to input their own value for this option=no
Max length of allowed user input=100
Field length= 25
Regular Expression= (blank)
Which page displays this option?= Options:Other

Once that's done go to
Styles & Templates> Style Manager.

Your style>>>Postbit templates>>>>>postbit

Find

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

After </if> add:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

That is all for the postbit template.
Remember that [field11] will be whatever your profile field turns out to be. ie: 9, 10 etc.
The same also applies to the existing [field10] for the last.fm users name.

You can see a live example here.
Please not that I am using my own design to show latest tracks under the name "sparkysimple", you can change "basicrt10" to it if you rather that look.


Add-on 2.1 - Tracks in Postbit_legacy

As the image is generally too big to use in postbit_legacy, I have choosen to have it added beneath the signatures, you can tinker around with this and post your results if you can do better.

Please follow the step above to add a user field....

After the above is done....

In
Styles & Templates> Style Manager.

Your style>>>Postbit templates>>>>>postbit_legacy

Find

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add after </if>:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Save all.


Add-on 3- Last.fm AIM icon linking to your profile

Special thanks to Skedoozy for this idea.

Again you will need to create another user option field in the same fashion as above but rename as appropiate.


Find in postbit or postbit_legacy, whichever your forum is running on:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

After add the following:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Again, [field12] is used for example and [fieldX] will be the id of the last.fm username profile field.

The last.fm icon is available below to save to your images directory.
(rightclick- save as)


After all this is done, inform your users and watch tracks appear.

I will offer of what I know and my knoweledge as support to help anyone with and problems they may encounter.

Happy installing and remember to hit the install button.



Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	site1.jpg
Views:	316
Size:	78.5 KB
ID:	53998   Click image for larger version

Name:	site2.jpg
Views:	367
Size:	127.8 KB
ID:	53999   Click image for larger version

Name:	site3.jpg
Views:	302
Size:	112.7 KB
ID:	54000  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
[Release] Quick Reply Expantion Pack Brad vBulletin 2.x Template Modifications 30 15 Feb 2004 18:19

Comments
  #2  
Old 26 Sep 2006, 21:21
da420 da420 is offline
 
Join Date: Nov 2005
I'm sorry, but I am unsure of what this product accomplishes exactly...

Maybe some screenshots?

This is basically a template mod to the posbit templates to add any latest songs/tracks a user has played beside their avatar/name.
I mean that I understand. But does it add the latest tracks automatically, or does a user have to manually add it?

Last edited by da420; 26 Sep 2006 at 21:31.
Reply With Quote
  #3  
Old 26 Sep 2006, 21:35
tazB.ca's Avatar
tazB.ca tazB.ca is offline
 
Join Date: Sep 2005
Real name: Taz B
Thanks For This I Love Music And So My Members
Reply With Quote
  #4  
Old 27 Sep 2006, 16:37
Sparky_s's Avatar
Sparky_s Sparky_s is offline
 
Join Date: Nov 2005
Real name: Denis Nolan
Originally Posted by da420
I'm sorry, but I am unsure of what this product accomplishes exactly...

Maybe some screenshots?



I mean that I understand. But does it add the latest tracks automatically, or does a user have to manually add it?
Oh sorry, I should of said more.

What it really does is grab the latest tracks info from last.fm.
They create an image of the last track you have played and have it on their server.
Basically what you are doing is grabbing that image and displaying it.

This is the image for my last.fm tracks info.


I'll upload a few screenshots for all soon.

I have tinkered around with the postbit_legacy template as to where the latest track image should be placed.

I know the edit buttons are on the right etc, using the stylevar, but does anyone have an idea as to get the image on the same line as them but only over on the left.
Stylevar left seems to keep it left but one line over. Maybe I need to tinker a bit more

Last edited by Sparky_s; 27 Sep 2006 at 19:00.
Reply With Quote
  #5  
Old 05 Oct 2006, 01:12
SecTa SecTa is offline
 
Join Date: Dec 2004
There is a possibility to use XML for integrating it in forum, take a look here. This will be more customizable and won't lag as picture version does...
Reply With Quote
  #6  
Old 16 Oct 2006, 00:16
Sparky_s's Avatar
Sparky_s Sparky_s is offline
 
Join Date: Nov 2005
Real name: Denis Nolan
I'm going to have a good luck at some other methods.

For the moment the image seems to be the simplest. Pitty it can be slow at times.
Reply With Quote
  #7  
Old 30 Nov 2006, 15:32
Sparky_s's Avatar
Sparky_s Sparky_s is offline
 
Join Date: Nov 2005
Real name: Denis Nolan
Just an update:

There was a small error in the lastfm icon code.

I have since edited the code, so all should be ok.

Basically. I left the http: in after the src code.
Reply With Quote
  #8  
Old 27 May 2007, 18:28
Drix Drix is offline
 
Join Date: Aug 2005
Any chance for an update of this to 3.6.7 PL1?

That would be great!
Reply With Quote
  #9  
Old 29 May 2007, 05:13
Drix Drix is offline
 
Join Date: Aug 2005
Wasn't that much change in the template, so i fixed it myself. Thanks for the script!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 16:40.

Layout Options | Width: Wide Color: