Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

Reply
 
Thread Tools
Quick Last.fm addon to member profile Details »»
Quick Last.fm addon to member profile
Version: 1.00, by Sparky_s Sparky_s is offline
Developer Last Online: Oct 2009 Show Printable Version Email this Page

Version: 3.6.0 RC3 Rating:
Released: 08-01-2006 Last Update: Never Installs: 13
Template Edits
 
No support by the author.

From doing a search here for a Last.fm/audioscrobbler hack to add a last.fm recent tracks, the two I found required Pear.

So I decided to do a quick add on and to share it.

As I'm new to this, I wont be able to offer full support, but I will hope that since it's fairly simple, none should be required.
If so, I can try myself and hope for help from other users.



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:
Code:
                </tr>
                </if>
                $customfields
                </table>
Add:
Code:
<if condition="$post['field10']"><div><a href="http://www.last.fm/user/$post[field10]/?chartstyle=basicrt10"><img src="http://imagegen.last.fm/basicrt10/recenttracks/$post[field10].gif" border="0" alt="$post[field10]'s Profile Page" /></a></div></if>
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].

Thank you all

Sparky.

Show Your Support

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

Comments
  #2  
Old 08-02-2006, 10:46 PM
Benj's Avatar
Benj Benj is offline
 
Join Date: May 2006
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

safe simple but amazing thanks alot
Reply With Quote
  #3  
Old 08-08-2006, 01:04 PM
Dermo-MIO Dermo-MIO is offline
 
Join Date: Jan 2006
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice simple hack my users should like it, nice forum as well mate
Reply With Quote
  #4  
Old 08-09-2006, 01:11 AM
Sparky_s Sparky_s is offline
 
Join Date: Nov 2005
Location: Dublin, Ireland
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cheers. Thanks for the complements
Reply With Quote
  #5  
Old 08-30-2006, 04:41 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the hack! I'll install it right away...
Reply With Quote
  #6  
Old 09-17-2006, 07:35 AM
fuldon fuldon is offline
 
Join Date: Jan 2004
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any updates?

Example:
http://awp.nin.ru/index.php?showtopi...88&#entry41539
(signature)
Reply With Quote
  #7  
Old 09-18-2006, 07:16 AM
Sparky_s Sparky_s is offline
 
Join Date: Nov 2005
Location: Dublin, Ireland
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fuldon
Nice. I like the way you have that added.
I will try out a simular system for vB.

I am currently testing it out beside a username in the postbit. However, it only looks good in the standard postbit, not postbit legacy.
http://www.htireland.com/television/...how-16461.html
Reply With Quote
  #8  
Old 09-23-2006, 01:12 AM
Skedoozy's Avatar
Skedoozy Skedoozy is offline
 
Join Date: May 2006
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed! Thanks!

I modded it so I could put a link in peoples posts where the aim, icq, and other icons are.

Find in postbit or postbit_legacy(whichever you use):
Code:
$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]

Insert this code after:
Code:
<if condition="$post['fieldX']"><a href="http://www.last.fm/user/$post[fieldX]"><img src="http://yoursite.com/images/lastfm.gif" border="0" alt="$post[fieldX]'s Profile Page" /></a></if>
Replace the right feild # for X and yoursite for the url for the image. I have attached the image I used for it and a screenshot. I placed mine after the im icons and before a link to xbox gamercard.
Reply With Quote
  #9  
Old 09-24-2006, 05:17 PM
Sparky_s Sparky_s is offline
 
Join Date: Nov 2005
Location: Dublin, Ireland
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent. I never thought of that.
I could try to have it as an option also where you can either have the tracks listed beside the username or have the icon beside the IM icons.

Excellent add.
Reply With Quote
  #10  
Old 10-01-2006, 06:51 AM
Skedoozy's Avatar
Skedoozy Skedoozy is offline
 
Join Date: May 2006
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've tested various options of adding the tracks to the postbit. The charts are usually too wide for the postbit_legacy so I had to make my own. It doesnt update that often depending on the users cache setting though. I've had it in my postbit for the last week or so just showing the last track but it seems very buggy as to whether it's showing the actual last track played or one of the last five. It's weird.
Reply With Quote
Reply

Thread Tools

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 06:35 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.08253 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_code
  • (1)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