Soundclick Music Player Add-on

MobileHacks

New Member
With this mod, your users can place their music player from soundclick within their profiles.

Install Instructions:

>>>Step 1. Go To AdminCP, Create 1 profile field:

Single-Line Text Box
Title: Soundclick Music
Description: Insert your soundclick Band ID number here. You can find it by logging into
your soundclick profile and checking the ending of the URL.
Private field: Yes.
Field Searchable on Members List: No
Show on Members List: No

>>>>Step 2. import product
PLEASE NOTE!!!! BEFORE IMPORTING PRODUCT, edit the XML FILE
Find:
PHP:
<phpcode><![CDATA[if (is_member_of($vbulletin->userinfo,1 ,2 , 5, 6, 7))
Change 1,2,5,6,7 to the usergroups you want to be able to view the music player.

>>>>Step 3. go to Style Manager-> edit templates-> Member Info Templates-> MEMBERINFO, find:

PHP:
<div id="sidebar_container">
    <!-- sidebar -->
directly under that put:
PHP:
$blocks[Soundclick_music_player]
>>>>Step 4. go to Style Manager-> edit templates-> Member Info Templates-> memberinfo_block_scmusicplayer, find:

PHP:
[fieldx]
([fieldx] shows up 2 times)

>>>>change "x" to appropriate field number<<<<

>>>>Step 5. Go to Style Manager-> edit templates-> Member Info Templates-> memberinfo_css, find:

PHP:
#content_container
Directly below put:
PHP:
<if condition="$userinfo[fieldx]">
 {
    width:865px;
    float:$stylevar[align=left];
    margin-$stylevar[align=right]:-256px;
}
</if>
Find:
PHP:
#sidebar_container
Directly Below Put:
PHP:
<if condition="$userinfo[fieldx]">
{
    width:306px;
    float:$stylevar[align=right];
}
</if>
If you have any custom templates that effect your css, make sure adjust them accordingly.

>>>>>change "[fieldx]" to appropriate field number<<<<
 
Top