Last.fm Postbit Enhancement PRO
This modification is in the archives.
LAST.FM POSTSBIT ENHANCEMENT PRO This template modification assumes you know at least the basics of last.fm // Version 1.1 You can now also modify the Member's Profile with a cool script, http://www.vbulletin.org/forum/showthread.php?p=932729 is the Profile Enhancement I have done Thanks to http://www.last.fm for their beautiful and addicting site! Well this will be my first hack ever, but I think this will be good for any forums that would like to get a unique music side to your forums. File edits: 0 Template mods: 1 Plugins: 0 Description This modification will basically let you use all last.fm's cool tools with your vBulletin forums and let each users have their own top charts integrated with every post. Steps to install 1) First, you will need to create a last.fm account if you don't already have one, you will also need to install a plug-in from the site. http://www.last.fm/signup.php 2) Now that you have an account and learned a little what it does, you can start coding, first you will need to create a new profile field. Create a new profile field (in AdminCP) User Profile Fields --> Add New User Profile Field --> Single-line textbox Title || Last.fm Username Description (copy & paste) || PHP Code:
Enter your last.fm username. (CaSe SeNsItIvE!) ex: <b>MisterChief</b>
Max length of allowed user input || 100 Display Size || (what ever, leave it default normally) Display Order || (whatever you want) Field Required || No Field Editable by User || Yes Private Field || No Field Searchable on Members List || (yes or no) Show on Members List || (yes or no) Options: Edit Profile (usually) 3) Now you have done your user profile field, find the number of that field and remember it or write it down you will need it later on. Here will be the code for the postbits. Open postbit_legacy: Postbit_legacy The last.fm enhancements works best for the postbit_legacy, it looks really weird with the normal postbit... Overall Artists This is if you want the user's overall artists to appear. HTML Code:
<a href="http://www.last.fm/user/$post[field29]/?chartstyle=n00b" target="_blank"><img src="http://imagegen.last.fm/n00b/oartists/$post[field29].gif" border="0" /></a> Here is other versions: Just replace the n00b with the name of the style two times, http://www.last.fm/onyoursite/chartgallery. Overall Tracks Again, this is if the user wants his overall tracks to be displayed. HTML Code:
<a href="http://www.last.fm/user/$post[field29]/?chartstyle=n00b" target="_blank"><img src="http://imagegen.last.fm/n00b/otracks/$post[field29].gif" border="0" /></a> Here is other versions: Just replace the n00b with the name of the style two times, http://www.last.fm/onyoursite/chartgallery. Here is a list of kind of options that you can decide to put, just replace the quoted text with otracks or oartists and it will give you this: Recently Played Tracks: HTML Code:
recenttracks HTML Code:
artists HTML Code:
tracks find HTML Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div> REMEMBER TO REPLACE THE field29 with your field number that you kept in the beginning (the last.fm Username textfield). That's it!!! You are done, now you have a beautiful chart on everyone of your posts where users can see your favorite artists, recently played tracks and more Version 1.1 find HTML Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div> Code:
<!-- Last.fm Postbit Enhancement PRO --> <table cellpadding="4" cellspacing="0" border="0" width="100%" align="center"> <tr> <td class="alt2" align="center"> <img src="images/misc/topartists.png" /> </td> </tr> <tr> <td class="alt2" align="center"> <if condition="$post['field29']"> <a href="http://www.last.fm/user/$post[field29]/?chartstyle=Geldropdown-small" target="_blank"><img src="http://imagegen.last.fm/Geldropdown-small/oartists/$post[field29].gif" border="0" /></a> <else /> <div class="smallfont">This user has not entered his <b><a href="http://www.last.fm">last.fm</a></b> username, he is missing out on alot of cool features :)</div> </if> </td> </tr> </table> <!-- end of Last.fm Postbit Enhancement PRO --> Features of 1.1: - Note that this one is using conditionals for people that did not enter a last.fm username so that they wake up - Can't make it collapsable, you need a file edit for postbit collapsable... - I have included a .png for it to look nicer (STORE THE IMAGE IN YOUR IMAGES MISC FOLDER) - The last screenshot is the one yours will look like, it only has your 5 top artists, but you can change that by changing your chart style Demo: http://www.myetalk.com/forums/showthread.php?p=30798#post30798 Please click INSTALL if you have found this useful or used it, it took me long to write this mod & post. Donations: If you really appreciated this hack and would like to thank me in big way, just send a little donation through Paypal: email Download No files for download. Addons Supporters / CoAuthors
Screenshots
|
Similar Mods
Forum Home Enhancements StatusIcon enhancement | vBulletin 3.6 Template Modifications |
Last.fm Profile Enhancement PRO | vBulletin 3.5 Template Modifications |