Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
Awesome Flash Music Player For Members Profile Details »»
Awesome Flash Music Player For Members Profile
Version: 1.2, by socialteenz socialteenz is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 4.x.x Rating:
Released: 05-22-2011 Last Update: 10-09-2011 Installs: 68
Template Edits
Re-useable Code Additional Files Translations  
No support by the author.

Lets get it started

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:



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.

Download Now

File Type: zip flashmusic.zip (286.9 KB, 231 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
3saltoot, fxwoody, mjfan227

Comments
  #22  
Old 07-06-2011, 07:43 AM
socialteenz's Avatar
socialteenz socialteenz is offline
 
Join Date: May 2011
Posts: 465
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem, if you are using this please mark as installed
Reply With Quote
  #23  
Old 07-06-2011, 08:30 AM
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Location: Scotland
Posts: 1,229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea. Installed.

Only thing I did was changed the template so the sideblock followed the same formatting as the other blocks.
Code:
<!---Flash Music Player--->
<div class="block">
  <div class="visitors">
    <h5 class="blocksubhead smaller">Your Title</h5>
      <div class="blockbody">
        <div class="blockrow">
          <div class="meta">
         	<li>
<center><tbody><tr>
				<if condition="$userinfo['fieldXX']"><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>
<!---Flash Music Player--->
Attached Images
File Type: jpg prosong.jpg (41.2 KB, 0 views)
Reply With Quote
Благодарность от:
socialteenz
  #24  
Old 07-06-2011, 09:05 AM
socialteenz's Avatar
socialteenz socialteenz is offline
 
Join Date: May 2011
Posts: 465
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gemma View Post
Nice idea. Installed.

Only thing I did was changed the template so the sideblock followed the same formatting as the other blocks.
[/CODE]
Thank you

I have updated my first post with your modified code.
Reply With Quote
  #25  
Old 07-10-2011, 11:44 PM
d19rnyxx d19rnyxx is offline
 
Join Date: Dec 2010
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a nice mod, I thought it would be simple to use, but for some reason it's not working, I believe I have done everything right

http://www.fivestargamerz.com/members/d19rny/
Reply With Quote
  #26  
Old 07-11-2011, 10:42 AM
socialteenz's Avatar
socialteenz socialteenz is offline
 
Join Date: May 2011
Posts: 465
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by d19rnyxx View Post
This is a nice mod, I thought it would be simple to use, but for some reason it's not working, I believe I have done everything right

http://www.fivestargamerz.com/members/d19rny/
Seems like you have not edited the memberinfo template.
Reply With Quote
  #27  
Old 07-24-2011, 01:04 PM
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Location: Scotland
Posts: 1,229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I changed the code slightly (again) so that an empty player doesn't appear if no song link is inserted
Code:
<!---Flash Music Player--->
<vb:if condition="$userinfo['fieldxx']">
<div class="block">
  <div class="visitors">
    <h5 class="blocksubhead smaller">My Proflie 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--->
Reply With Quote
Благодарность от:
socialteenz
  #28  
Old 07-24-2011, 02:37 PM
socialteenz's Avatar
socialteenz socialteenz is offline
 
Join Date: May 2011
Posts: 465
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you once again Gemma
Reply With Quote
  #29  
Old 07-24-2011, 08:51 PM
victorvu victorvu is offline
 
Join Date: Mar 2011
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi socialteenz:

Thank you for the flash player. I installed with excellent, but could not figure it out the following:

<if condition="$userinfo['fieldXX']"><td class="alt1" style="font-family: Verdana; font-size: 10pt">


... "fieldXX" .... I found it!

What do you mean by that?

I also tried to paste the code provided, as follow to ??? Do not know the location to post that code!:

Attachment 131378

Where can I post this code? I found the answer!

Greatly appreciated for this flash player. Thank you.

Victor
Reply With Quote
  #30  
Old 07-25-2011, 05:52 AM
socialteenz's Avatar
socialteenz socialteenz is offline
 
Join Date: May 2011
Posts: 465
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

K, glad that you got it fixed

If you need any help, send me a pm.

Stanley
Reply With Quote
  #31  
Old 07-26-2011, 05:07 AM
G0F0RBR0KE G0F0RBR0KE is offline
 
Join Date: Mar 2005
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there another way to add this? When I add it. The whole member page goes wacko. I don't know if it's the skin.
Reply With Quote
Reply

Thread Tools

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:01 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.09010 seconds
  • Memory Usage 2,348KB
  • Queries Executed 26 (?)
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
  • (7)bbcode_code
  • (2)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (5)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)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