vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Profile Enhancements - LoudFusion Profile Music Player (https://vborg.vbsupport.ru/showthread.php?t=203792)

TheInsaneManiac 01-31-2009 10:00 PM

LoudFusion Profile Music Player
 
1 Attachment(s)
I have a huge bored with tons of members, so I try to keep plugins to a minimal. Most of the players I have seen are not only products, but aren't thought out very well. I use loudfusion.com since it's the only music player that will actually work on myspace. After using it for awhile, I've fallen in love with it. There are even multiple players to choose from. Right now I have it set up to use the simple player, but if the community needs help adding other players then I shall assist.

Template Edits: 1
Profile Fields: 2

Step 1
Admin -> User Profile Fields -> Add New User Profile Field

Single-Line Text Box
Title: Music
Description: Put your loudfusion.com ID here.<br>Example: http://www.loudfusion.com/profile.php?id=<b><u>402625</u></b>
Max length of allowed user input: 12
Private Field: Yes
Field Searchable on Members List: No
Show on Members List: No


Step 2
Admin -> User Profile Fields -> Add New User Profile Field

Single-Line Text Box
Title: Music Playlist
Description: You can use playlists from loudfusion by getting the folder ID from the code.<br>Example: USERID=402625&FOLDERID=<b><u>47450</u></b>
Max length of allowed user input: 12
Private Field: Yes
Field Searchable on Members List: No
Show on Members List: No


Step 3
In MEMBERINFO find:
Code:

$blocks[stats_mini]
Below add:
Code:

<!-- Music -->
<if condition="$userinfo[fieldM]">
<div id="$id" class="tborder content_block">
    <h4 class="thead block_title">
        <a href="#top" class="collapse_gadget" onclick="return toggle_collapse('$id')"><img id="collapseimg_$id" src="$stylevar[imgdir_button]/collapse_generic{$vbcollapse['collapseimg_'.$id]}.gif" alt="" border="0" /></a>
        <a name="$id"></a>
        <span class="block_name">Music</span>
    </h4>
    <div class="block_content" id="collapseobj_$id" style="{$vbcollapse['collapseobj_'.$id]}"><div class="alt1 smallfont block_row block_footer">
<p align="center">
<embed src="http://www.loudfusion.com/widgets/music/5" name="Music" quality="high" wmode="transparent" flashvars="USERID=$userinfo[fieldM]<if condition="$userinfo[fieldMP]">&FOLDERID=$userinfo[fieldMP]</if>" width="235" height="150" type="application/x-shockwave-flash"></embed>
</p>
</div></div>
</div>
</if>
<!-- / Music -->


Step 4
In the above code find the 2 instances of $userinfo[fieldM] and replace the M with the field ID of your Music Profile Field and find the 2 instances of $userinfo[fieldMP] and replace the M with the field ID of your Music Playlist Profile Field

SwollenCranium 02-01-2009 04:57 PM

Got a link to a working player in a profile ?

Edit:

Never mind .. Installed, flawless.

Thanks.

TheInsaneManiac 02-01-2009 09:46 PM

There really isn't a need for the following code as the music player doesn't eat any bandwidth, however I am sure it will be asked.

If you wish to only show the player to registered members then you can use the following code:
Code:

<!-- Music -->
<if condition="is_member_of($vbulletin->userinfo, 2, 3, 6, 7)">
<if condition="$userinfo[fieldM]">
<div id="$id" class="tborder content_block">
    <h4 class="thead block_title">
        <a href="#top" class="collapse_gadget" onclick="return toggle_collapse('$id')"><img id="collapseimg_$id" src="$stylevar[imgdir_button]/collapse_generic{$vbcollapse['collapseimg_'.$id]}.gif" alt="" border="0" /></a>
        <a name="$id"></a>
        <span class="block_name">Music</span>
    </h4>
    <div class="block_content" id="collapseobj_$id" style="{$vbcollapse['collapseobj_'.$id]}"><div class="alt1 smallfont block_row block_footer">
<p align="center">
<embed src="http://www.loudfusion.com/widgets/music/5" name="Music" quality="high" wmode="transparent" flashvars="USERID=$userinfo[fieldM]<if condition="$userinfo[fieldMP]">&FOLDERID=$userinfo[fieldMP]</if>" width="235" height="150" type="application/x-shockwave-flash"></embed>
</p>
</div></div>
</div>
</if>
</if>
<!-- / Music -->

You can change what groups are allowed to view the player by changing 2, 3, 6, 7 to the groups you want to allow. Just remember to set the fields up.

Note: If you have other groups besides Admins, Mods, and Members, be sure to add those groups.

Jon Tolzien 02-02-2009 02:53 AM

Does this interfere with copyright laws... Can you stream live music that is not your own or don't have permission to do so? Just curious what the ramifications are.

TheInsaneManiac 02-02-2009 06:20 PM

As far as I know it shouldn't. The embedded code is allowed on myspace considering there were issues with playlist.com.

You can read more about the block here.

As far as loudfusion's music goes, they don't allow you to link to your own content instead they use it from external websites. Where you can search them here.

As I stated though I'm not sure, I would imagine any trouble would be directed to loudfusion themselves, however you can take a look at their terms of service.

TandyServices 02-10-2009 12:24 PM

So where do I find that Folder ID? Feel like a noob but really cant find it..

CRP 02-11-2009 01:27 AM

Is there a way to make turn autoplay on or off?

Works great.

DarkGizmo 02-11-2009 03:30 AM

Does this allow users to make their own playlists for their profiles? That would be cool. :)

BlackJacket 02-13-2009 02:10 PM

Installed and works great. Thanks!

BlackJacket 02-13-2009 02:10 PM

Quote:

Originally Posted by NegativeSmoke (Post 1740435)
Does this allow users to make their own playlists for their profiles? That would be cool. :)

Yes. :)


All times are GMT. The time now is 02:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01406 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete