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
  #2  
Old 03-22-2006, 05:39 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 03-22-2006, 05:54 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 bashy
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
thanks for the comment
Reply With Quote
  #4  
Old 03-22-2006, 06:03 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Merci le quebequois

Thanks
Reply With Quote
  #5  
Old 03-22-2006, 06:13 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 Allan
Merci le quebequois

Thanks
y'a pas de probl?me lol, si tu utilise, clique sur Install plz
Reply With Quote
  #6  
Old 03-22-2006, 07:10 PM
Yorixz Yorixz is offline
 
Join Date: Jun 2005
Location: Netherlands
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 03-22-2006, 07:12 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 Yorixz
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
you can have small charts too, just click on the link I gave ya in the mod
Reply With Quote
  #8  
Old 03-22-2006, 07:14 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Chief
y'a pas de probl?me lol, si tu utilise, clique sur Install plz
Je ne l'utilise pas, mais bravo pour le partage

I not use, but thanks for share
Reply With Quote
  #9  
Old 03-22-2006, 07:15 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 Allan
Je ne l'utilise pas, mais bravo pour le partage

I not use, but thanks for share
lol, i like the way you translater your phrases into english, do you need to do that?
Reply With Quote
  #10  
Old 03-23-2006, 06:41 AM
sensimilla sensimilla is offline
 
Join Date: Dec 2004
Location: Poland
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack, any way to make it colapse?

http://www.last.fm/user/sensimilla
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 07:16 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.05416 seconds
  • Memory Usage 2,323KB
  • Queries Executed 24 (?)
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
  • (5)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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