Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[SW] Music Player in User Profile Details »»
[SW] Music Player in User Profile
Version: 1.00, by SoltanWorld SoltanWorld is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 4.x.x Rating:
Released: 06-02-2011 Last Update: Never Installs: 24
Template Edits
Additional Files  
No support by the author.

If you have installed this mod please : Mark as install

[SW] Music Player in User Profile

This mod allow users to put their favorite song's link in their profile to play.


installation :

1. Download Zip file and upload them.

2. Create Custom Profile Field :

Go to : Admincp / User Profile Fields / Add New User Profile Field

Then Select : Profile Field Type : Single-Line Text Box



And press continue

Then Fill like this :




*If you want to make this field to be hidden select : Private Field

After that Go to

Style Manager>Your Template>MemberInfo Templates>memberinfo_block_ministats

before :
Code:
<div class="mini_stats blockbody userprof_content userprof_content_border">
add this :

Code:
<!-- SW profile Musicplayer Start -->
<vb:if condition="$userinfo['fieldX']">    <div class="underblock"></div>
    <div class="block mainblock">
        <div id="userinfoblock" class="floatcontainer">
    <div class="blocksubhead" colspan="5">Music Player</div>
    <div  class="blockbody userprof_content userprof_content_border">
    <div class="blockrow member_blockrow">
                            <script src="forum/sw/silverlight/silverlight.js" type="text/javascript">
                            
                            </script>
                        <script src="forum/sw/silverlight/wmvplayer.js" type="text/javascript">
                        
                            </script>
<vb:if condition="$bbuserinfo['userid'] == 0">Please login or register.<vb:else />
                        <div id="mp3profilepl">
                            Profile mp3 Player by : SoltanWorld</div></vb:if>
                        <script type="text/javascript">
     var cnt = document.getElementById('mp3profilepl');
     var src = 'forum/sw/silverlight/wmvplayer.xaml';
     var cfg = {height:'20',volume:'40',width:'200',file:'{vb:raw userinfo.fieldX}',autostart:'false',usefullscreen:'false'};
     var ply = new jeroenwijering.Player(cnt,src,cfg);
    </script>
                    </div>
    </div></div></div>
    <div class="underblock"></div><br/></vb:if>
<!-- SW profile Musicplayer End -->
text which is highlighted by red color are the path to the player's files. make sure you have entered right path.

Bold Blue "X" should be replaced by field number you have created in step 1.


then save it.


Notice that :

If you have select field as private then guest can not play music, because of that i have put an if for guests. if you do not put this as private use this code :


Code:
<!-- SW profile Musicplayer Start -->
<vb:if condition="$userinfo['fieldX']">    <div class="underblock"></div>
    <div class="block mainblock">
        <div id="userinfoblock" class="floatcontainer">
    <div class="blocksubhead" colspan="5">Music Player</div>
    <div  class="blockbody userprof_content userprof_content_border">
    <div class="blockrow member_blockrow">
                            <script src="forum/sw/silverlight/silverlight.js" type="text/javascript">
                            
                            </script>
                        <script src="forum/sw/silverlight/wmvplayer.js" type="text/javascript">
                        
                            </script>

                        <div id="mp3profilepl">
                            Profile mp3 Player by : SoltanWorld</div>
                        <script type="text/javascript">
     var cnt = document.getElementById('mp3profilepl');
     var src = 'forum/sw/silverlight/wmvplayer.xaml';
     var cfg = {height:'20',volume:'40',width:'200',file:'{vb:raw userinfo.fieldX}',autostart:'false',usefullscreen:'false'};
     var ply = new jeroenwijering.Player(cnt,src,cfg);
    </script>
                    </div>
    </div></div></div>
    <div class="underblock"></div><br/></vb:if>
<!-- SW profile Musicplayer End -->





If you have installed this mod please : Mark as install



-----------------------

mp3 player in profile with auto play option :

Code:
<!-- SW profile Musicplayer Start -->
<vb:if condition="$userinfo['fieldX']">    <div class="underblock"></div>
    <div class="block mainblock">
        <div id="userinfoblock" class="floatcontainer">
    <div class="blocksubhead" colspan="5">Music Player</div>
    <div  class="blockbody userprof_content userprof_content_border">
    <div class="blockrow member_blockrow">
                            <script src="forum/sw/silverlight/silverlight.js" type="text/javascript">
                            
                            </script>
                        <script src="forum/sw/silverlight/wmvplayer.js" type="text/javascript">
                        
                            </script>

                        <div id="mp3profilepl">
                            Profile mp3 Player by : SoltanWorld</div>
                        <script type="text/javascript">
     var cnt = document.getElementById('mp3profilepl');
     var src = 'forum/sw/silverlight/wmvplayer.xaml';
     var cfg = {height:'20',volume:'40',width:'200',file:'{vb:raw userinfo.fieldX}',autostart:'false',usefullscreen:'false',autostart:'true'};
     var ply = new jeroenwijering.Player(cnt,src,cfg);
    </script>
                    </div>
    </div></div></div>
    <div class="underblock"></div><br/></vb:if>
<!-- SW profile Musicplayer End -->

Download Now

File Type: zip [SW]Profile Music Player.zip (304.1 KB, 309 views)

Screenshots

File Type: jpg sc1.jpg (16.2 KB, 0 views)
File Type: jpg sc2.jpg (95.0 KB, 0 views)
File Type: jpg profile.jpg (60.0 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Darkrai

Comments
  #12  
Old 06-09-2011, 10:32 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there anyway to allow playlists? The JWplayer does support playlists. Would be awesome if users could use playlists.
Reply With Quote
  #13  
Old 06-10-2011, 06:15 PM
SoltanWorld's Avatar
SoltanWorld SoltanWorld is offline
 
Join Date: Feb 2010
Location: Loas Angeles
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alfa1 View Post
Is there anyway to allow playlists? The JWplayer does support playlists. Would be awesome if users could use playlists.
I'll check it
Reply With Quote
  #14  
Old 07-20-2011, 02:20 PM
dej's Avatar
dej dej is offline
 
Join Date: Jan 2011
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any way to limit this to Certain Usergroups Only??

By adding Usergroup ID's in there somewhere?

Thanks
Reply With Quote
  #15  
Old 07-24-2011, 01:20 AM
fnrtop fnrtop is offline
 
Join Date: Mar 2007
Location: Jordan
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there anyway to allow only certain member groups to use this option?
Reply With Quote
  #16  
Old 07-31-2011, 07:27 PM
SoltanWorld's Avatar
SoltanWorld SoltanWorld is offline
 
Join Date: Feb 2010
Location: Loas Angeles
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fnrtop View Post
is there anyway to allow only certain member groups to use this option?
Quote:
Originally Posted by dej View Post
Any way to limit this to Certain Usergroups Only??

By adding Usergroup ID's in there somewhere?

Thanks
I'll check
Reply With Quote
  #17  
Old 08-19-2011, 06:38 PM
SacredChaos SacredChaos is offline
 
Join Date: Jul 2011
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I add a link to an mp3 file it doesn't play or even allow me to play it in the profile. It shows the player, but nothing happens.
Reply With Quote
  #18  
Old 08-19-2011, 11:40 PM
tidus78's Avatar
tidus78 tidus78 is offline
 
Join Date: Sep 2009
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works on my 4.1.5
Reply With Quote
  #19  
Old 08-28-2011, 07:16 PM
SoltanWorld's Avatar
SoltanWorld SoltanWorld is offline
 
Join Date: Feb 2010
Location: Loas Angeles
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SacredChaos View Post
When I add a link to an mp3 file it doesn't play or even allow me to play it in the profile. It shows the player, but nothing happens.
Would you please gimme ur forum link to take a look?
Reply With Quote
  #20  
Old 10-04-2011, 06:30 AM
hazem_aliraqi's Avatar
hazem_aliraqi hazem_aliraqi is offline
 
Join Date: Oct 2010
Location: iraq
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you
Reply With Quote
  #21  
Old 02-04-2012, 09:18 AM
Mark_Zuckerberg Mark_Zuckerberg is offline
 
Join Date: Sep 2011
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello mate i have installed this mod but songs are only working in mozilla not playing in chrome & opera any guidance i need music player in profile like this site have.

Code:
http://www.tafrehmela.com/members/pirate.html
To log in to this forum use this act

Pirate
123456789
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 12:29 AM.


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.10317 seconds
  • Memory Usage 2,350KB
  • Queries Executed 27 (?)
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
  • (5)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete