Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Last.fm Postbit Enhancement PRO Details »»
Last.fm Postbit Enhancement PRO
Version: 1.10, by The Chief The Chief is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 03-21-2006 Last Update: Never Installs: 5
Template Edits
 
No support by the author.

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:
Enter your last.fm username. (CaSe SeNsItIvE!) ex: <b>MisterChief</b
Default Value || (don't enter anything)
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
Weekly artists:
HTML Code:
artists
Weekly top tracks:
HTML Code:
tracks
4) There, now that you have chosen which one you wanted;

find
HTML Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
and ADD BELOW the code you selected in Step 3...

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>
and ADD this BELOW

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 -->
To change the styles, you just need to follow the instructions above..don't forget to change all places where field29 is written with your field number


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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-23-2006, 06:55 AM
kira kira is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks really cool, nice idea, el jefe. (Sorry, just wanted to add a third language to this thread!)

Will this work in memberinfo as well/instead? It'd be too long for my community's postbit, but I do use the myspace PRO extension and this seems like a natural to add in there. Whatcha think?
Reply With Quote
  #13  
Old 03-23-2006, 12:59 PM
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Location: Montreal
Posts: 1,037
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sensimilla
Great hack, any way to make it colapse?

http://www.last.fm/user/sensimilla
I'll try to make it collapsable today
Reply With Quote
  #14  
Old 03-23-2006, 12:59 PM
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Location: Montreal
Posts: 1,037
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kira
This looks really cool, nice idea, el jefe. (Sorry, just wanted to add a third language to this thread!)

Will this work in memberinfo as well/instead? It'd be too long for my community's postbit, but I do use the myspace PRO extension and this seems like a natural to add in there. Whatcha think?
I will be working on a MEMBERINFO hack also with alot more features, should be released today
Reply With Quote
  #15  
Old 03-23-2006, 01:57 PM
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Location: Montreal
Posts: 1,037
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Hope you guys like the changes
Reply With Quote
  #16  
Old 03-23-2006, 07:38 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great! Thanks for the updates.
Reply With Quote
  #17  
Old 03-24-2006, 12:34 AM
thedvs thedvs is offline
 
Join Date: May 2002
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice and nifty, many thanks
Reply With Quote
  #18  
Old 03-24-2006, 12:51 PM
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Location: Montreal
Posts: 1,037
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thedvs
very nice and nifty, many thanks
no problem
Reply With Quote
  #19  
Old 04-05-2006, 05:12 PM
Krofh's Avatar
Krofh Krofh is offline
 
Join Date: Aug 2005
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very useful... Last.FM is a cool site.
Reply With Quote
  #20  
Old 04-10-2006, 12:51 AM
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Location: Montreal
Posts: 1,037
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Krofh
Very useful... Last.FM is a cool site.
cool, glad you liked it
Reply With Quote
  #21  
Old 02-09-2007, 12:27 PM
JermaineBelgard JermaineBelgard is offline
 
Join Date: Nov 2006
Location: Bergfeld, Germany
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It seems that only admins can view this at my site. Any other user(group) is only seeing this message: "This user has not entered his last.fm username (...)", even if a user has entered the required information. I don't know how & where to change this so that all of my users can see this?

Thanks in advance for any helpful hint.

Edit: Ok, no one except me can see the top artists...
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 09:03 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04877 seconds
  • Memory Usage 2,336KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (7)bbcode_html
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete