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 - Awesome Flash Music Player For Members Profile (https://vborg.vbsupport.ru/showthread.php?t=264078)

socialteenz 05-22-2011 10:00 PM

Awesome Flash Music Player For Members Profile
 
1 Attachment(s)
Lets get it started :D

WHAT DOES THIS DO?

This will add a music player to your members profile.


Go into your Admin CP->>>>user profile fields->>>>Add new user profile field

Code:

Profile Field Type: Single line text box
Title: Flash Music Player
Description:This will add a music player to your members profile.

Field Required: No
Field Editable by User Yes

Then Style Manager>>>Your Style>>>Edit Templates>>>Member Info Templates>>>MEMBER INFO

Find:


Code:

{vb:raw blocks.stats_mini}


Below add:

Code:

<!---Flash Music Player--->
<vb:if condition="$userinfo['fieldxx']">
<div class="block">
  <div class="visitors">
    <h5 class="blocksubhead smaller">My Profile Song</h5>
      <div class="blockbody">
        <div class="blockrow">
          <div class="meta">
            <li>
<center><tbody><tr>
                <td class="alt1" style="font-family: Verdana; font-size: 10pt">
               


<script src="{vb:raw vboptions.bburl}/embed/swfobject.js" type="text/javascript"></script>

<div id="player"></div>

<script type="text/javascript">
var so = new SWFObject('{vb:raw vboptions.bburl}/embed/player.swf','mpl','170','20','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&amp;file={vb:raw userinfo.fieldxx}&volume=100&autostart=true');
so.write('player');
</script>

</td>
            </tr>
            </tbody></center>
 </div>
 </div>
    </div>
  </div>
</div>
<div class="underblock"></div>
</vb:if>
<!---Flash Music Player--->

Replace the field x with your field number


You can disable the Auto play option by changing this line.

Code:

so.addParam('flashvars','&amp;file={vb:raw userinfo.fieldx}&volume=100&autostart=false');
*********************
INSTALLATION INSTRUCTIONS
***********************

1 - Upload the folder embed to the forum root
2 - Edit the Member Info Template
3 - Go to Edit profile & Input your profile music in the field which you created.
You can use this song to check the player :)

Code:

http://k003.kiwi6.com/hotlink/k53i57h815/t_pain_feat_akon_u_got_me.mp3
Preview:
https://vborg.vbsupport.ru/external/2011/05/20.jpg


3.x.x version here

provided by Eminemtalk.com


Please click Mark as Installed if you are using this hack. Feel free to click on the Support Developer link and donate any amount you feel is appropriate.

socialteenz 05-23-2011 03:42 PM

Reserved **************

Special Pages 05-23-2011 05:09 PM

Haha Nice job. :D

socialteenz 05-24-2011 09:51 AM

:) Please click Mark as Installed if are using this modification :)

koraykose 05-24-2011 06:37 PM

my music player can not play song, please have a look at http://www.xn--ibu-sza.com/

socialteenz 05-25-2011 01:56 AM

Quote:

Originally Posted by koraykose (Post 2199540)
my music player can not play song, please have a look at http://www.xn--ibu-sza.com/

No support will be provided for people who dint mark as installed. Next time provide more informations, like the profile where you added mp3.

koraykose 05-25-2011 03:33 PM

I've marked as installed, Thank You For Everything.

However I don't have any opinion where to put .mp3 (in swf or fla or admincp)
the file located on ftp "/mp3/lisa.mp3" Chris Botti - Lisa

Thanks for further support!!

socialteenz 05-25-2011 04:34 PM

Quote:

Originally Posted by koraykose (Post 2199827)
I've marked as installed, Thank You For Everything.

However I don't have any opinion where to put .mp3 (in swf or fla or admincp)
the file located on ftp "/mp3/lisa.mp3" Chris Botti - Lisa

Thanks for further support!!

:) well, you have to create a new user profile field. I have explained how to create a new user profile field in my first post of this modification. Please go through it once again. Also don't forget to replace the fieldx with your custom profile field number.

Last_Zero 05-28-2011 03:52 PM

Thanks Mate

socialteenz 05-29-2011 01:58 AM

Quote:

Originally Posted by Last_Zero (Post 2200920)
Thanks Mate

:) ///


All times are GMT. The time now is 04: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.01315 seconds
  • Memory Usage 1,742KB
  • 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
  • (5)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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