vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Profile Enhancements - [SW] Music Player in User Profile (https://vborg.vbsupport.ru/showthread.php?t=264654)

SoltanWorld 06-02-2011 10:00 PM

[SW] Music Player in User Profile
 
1 Attachment(s)
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

http://soltanworld.com/gallery/data/520/medium/sc1.jpg

And press continue

Then Fill like this :


http://soltanworld.com/gallery/data/520/medium/sc2.jpg

*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 -->


SoltanWorld 06-03-2011 10:41 AM

1st Post reserved

SoltanWorld 06-04-2011 05:44 AM

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 -->


gamerzhut 06-04-2011 03:08 PM

Installed & rated *****

Thank you sir :)

SoltanWorld 06-04-2011 04:40 PM

you're wlc dear

raagaswaram 06-06-2011 06:53 AM

can we add our shoutcast server & make it autoplay with this mod by few edits?.

SoltanWorld 06-06-2011 10:00 AM

Quote:

Originally Posted by raagaswaram (Post 2204163)
can we add our shoutcast server & make it autoplay with this mod by few edits?.

you mean streaming?

autoplay option's cpde is added in this post

raagaswaram 06-06-2011 05:23 PM

ya i got a shoutcast server can we able to make it to play with it?.

hamedbia2 06-08-2011 12:02 PM

thanks

SoltanWorld 06-08-2011 12:06 PM

Quote:

Originally Posted by raagaswaram (Post 2204317)
ya i got a shoutcast server can we able to make it to play with it?.

with flash player is possible to access rmtp links. i'll check for you but i don know if it works or not.

Alfa1 06-09-2011 10:32 PM

Is there anyway to allow playlists? The JWplayer does support playlists. Would be awesome if users could use playlists.

SoltanWorld 06-10-2011 06:15 PM

Quote:

Originally Posted by Alfa1 (Post 2205609)
Is there anyway to allow playlists? The JWplayer does support playlists. Would be awesome if users could use playlists.

I'll check it

dej 07-20-2011 02:20 PM

Any way to limit this to Certain Usergroups Only??

By adding Usergroup ID's in there somewhere?

Thanks

fnrtop 07-24-2011 01:20 AM

is there anyway to allow only certain member groups to use this option?

SoltanWorld 07-31-2011 07:27 PM

Quote:

Originally Posted by fnrtop (Post 2224145)
is there anyway to allow only certain member groups to use this option?

Quote:

Originally Posted by dej (Post 2222869)
Any way to limit this to Certain Usergroups Only??

By adding Usergroup ID's in there somewhere?

Thanks

I'll check

SacredChaos 08-19-2011 06:38 PM

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.

tidus78 08-19-2011 11:40 PM

It works on my 4.1.5 :)

SoltanWorld 08-28-2011 07:16 PM

Quote:

Originally Posted by SacredChaos (Post 2235493)
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?

hazem_aliraqi 10-04-2011 06:30 AM

thank you

Mark_Zuckerberg 02-04-2012 09:18 AM

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

socialteenz 03-04-2012 09:52 AM

Quote:

Originally Posted by Mark_Zuckerberg (Post 2296037)
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

That site uses my music player..

https://vborg.vbsupport.ru/showthread.php?t=264078

twolegit 03-06-2012 02:19 AM

lol highjacked thread.....low blow :)

SoltanWorld 03-11-2012 10:36 PM

Quote:

Originally Posted by socialteenz (Post 2305999)

Quote:

Originally Posted by Mark_Zuckerberg (Post 2296037)
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.



To log in to this forum use this act

Pirate
123456789

My Player works with silverlight, this one which socialteenz said uses flash player.
Thanks dear socialteenz for reply ;)
Quote:

Originally Posted by twolegit (Post 2306645)
lol highjacked thread.....low blow :)

So :rolleyes: ?

OnlyRealMadrid 04-02-2012 03:35 PM


sorry
xml file Where ??

SoltanWorld 05-20-2012 06:29 AM

There is no XML file.

You should do like the manual above. There's no need to import XML.

Darkrai 07-14-2012 08:29 AM

Hi, can you please tell me which kind of links I should put in the field for the player to work? Can you please give me a sample link? Thanks in advanced.

SoltanWorld 07-17-2012 05:01 AM

It's an example link :

http://www.yourdomain.com/yourmp3song.mp3

YankForum 10-18-2012 09:31 PM

installed on 3.8 tnx its exactly what my users asked for


All times are GMT. The time now is 05:52 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.02722 seconds
  • Memory Usage 1,820KB
  • 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
  • (7)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete