The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Last.fm Postbit Enhancement PRO Details »» | |||||||||||||||||||||||||
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, HERE is the Profile Enhancement I have done Thanks to 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:
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, here. 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, here. 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: HERE 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: lapointe.charles@gmail.com Supporters / CoAuthors Show Your Support
|
Comments |
#2
|
|||
|
|||
Very nice addition for a music based forum or any other for that matter, Although i have too mch on mine already and dont have the room for sommat like this atm
Well done m8 looks nice |
#3
|
||||
|
||||
Quote:
|
#4
|
||||
|
||||
Merci le quebequois
Thanks |
#5
|
||||
|
||||
Quote:
|
#6
|
|||
|
|||
Very usefull addon, no doubt! Thanks a lot for that!
I'm just always wondering how people can use a forum with such a huge postbit; you got to scroll like 30 times the average size of a post to get to the next one |
#7
|
||||
|
||||
Quote:
|
#8
|
||||
|
||||
Quote:
I not use, but thanks for share |
#9
|
||||
|
||||
Quote:
|
#10
|
|||
|
|||
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|