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
  #92  
Old 10-03-2011, 07:26 PM
socialteenz's Avatar
socialteenz socialteenz is offline
 
Join Date: May 2011
Posts: 465
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Laurvick View Post
Is there any way, I can set this up as Auto Play, but with half volume?

Here you go, don't forget to mark it as INSTALLED!!
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=50&autostart=true');
so.write('player');
</script>

</td>
			</tr>
			</tbody></center>
 </div>
Reply With Quote
  #93  
Old 10-04-2011, 12:30 PM
fxwoody's Avatar
fxwoody fxwoody is offline
 
Join Date: Jun 2010
Location: On Earth
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

socialteenz, did you had time to look for the song list to add in your hack like i asked before?

Members don't seem to find the way to go on KIWI, upload and paste into their page!! I know, lazyness....lollll

So if we, admin could upload a few songs and add them in some choice window, it would probably make this easier on them ?!?!

Tks anyway, i like my page, it rocks
Reply With Quote
  #94  
Old 10-04-2011, 02:19 PM
socialteenz's Avatar
socialteenz socialteenz is offline
 
Join Date: May 2011
Posts: 465
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fxwoody View Post
socialteenz, did you had time to look for the song list to add in your hack like i asked before?

Members don't seem to find the way to go on KIWI, upload and paste into their page!! I know, lazyness....lollll

So if we, admin could upload a few songs and add them in some choice window, it would probably make this easier on them ?!?!

Tks anyway, i like my page, it rocks
Hey, sorry for the wait!! I looked but didn't have enough time to find a solution!! My college life drives me NUT!! It's TERRIBLE. I am sorry, i am running out of ideas. I hope some one can look in to this!!

Thanks
Reply With Quote
  #95  
Old 10-06-2011, 11:01 AM
fxwoody's Avatar
fxwoody fxwoody is offline
 
Join Date: Jun 2010
Location: On Earth
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok no prob! i will try to help out if i can
Reply With Quote
  #96  
Old 10-10-2011, 01:03 PM
socialteenz's Avatar
socialteenz socialteenz is offline
 
Join Date: May 2011
Posts: 465
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fxwoody View Post
ok no prob! i will try to help out if i can
Thanks for your understanding.
Reply With Quote
  #97  
Old 10-10-2011, 06:07 PM
chrissyplum79 chrissyplum79 is offline
 
Join Date: Oct 2011
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much for the mod and help with the setup!
Reply With Quote
  #98  
Old 10-14-2011, 11:24 AM
Omniverse Omniverse is offline
 
Join Date: Mar 2011
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Firstly thank you so much for this mod. I've nominated for mod of the month about 5 minutes into the future... This is where you could upgrade:

Firstly, as usual, a coder assumes the user knows certain things. And I don't fault you for that, it's very hard to understand cluelessness from an informed/knowledgeable PoV. Being a clueless person about VB code etc myself, Ttis is what you could change in your OP:

instead of saying change field x to your field number, which could mean a lot of different things, specify how to do that Exactly. This is where I got screwed up.

Firstly, you put TWO x's, and said change field x. So that confused me. "Do I change one x or two?" The red color helped in that area but I did ponder that when finding it not work right.

Secondly, you put replace field x with a space. I was trying to read between the lines a bit. I put "Field 5", and that did not work.

Also, if you want to make this mod more user friendly to install, please include a small description of what a field is and how to get the field number. you get the field number by going to your field editor and it shows you the field number for all of them. This is how I figured out the right code, which was NOT Field 5 or Field5x or simply 5 (you did say replace field x with your field number, so naturally i replaced both field and the x's with my field number) ,....

it was field5 (5 was just the field i added it in to users installing this mod so yours may be like 3 or 7 etc).

So just trying to help your mod reach more people, if you integrate these into your hack description, it will help out the ease of installing for people like me who use only logic and no experience with a vb forum(which btw i LOVE).

Next, I need to do this: Center the "My Profile Song" to be centered above the song. Not a big deal, but it's aesthetically pleasing to me and is a small upgrade. I could assume it's just a simple center code of html, but Im a pretty big noob at coding etc and something that simple could screw everything up in VB code in my clueless logic, so I figure I will ask how (plz), and also suggest you implement this into your OP coding.

Another suggestion to implement into your coding, is this modification I made(and i really do recommend it because most users have no clue what to do to the profile option, so this would help ease of use):

Change the description to: "To add a more personalization to your profile, you may add a song. To do this, enter the full URL of the song in this field. We do not host the song for you, so you will have to upload it somewhere yourself." Or you can word it however you like, but that is what I put it on my forum. Many users will not know what to do with that blank text space. So this is a bar none upgrade to your instructions. I hope you do not take this as you being flawed !! Pretty much everything can be upgraded And I whole heartedly am thankful for this mod.

Peace
-Omni
Reply With Quote
  #99  
Old 10-14-2011, 12:15 PM
socialteenz's Avatar
socialteenz socialteenz is offline
 
Join Date: May 2011
Posts: 465
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Omniverse View Post
Firstly thank you so much for this mod. I've nominated for mod of the month about 5 minutes into the future... This is where you could upgrade:

Firstly, as usual, a coder assumes the user knows certain things. And I don't fault you for that, it's very hard to understand cluelessness from an informed/knowledgeable PoV. Being a clueless person about VB code etc myself, Ttis is what you could change in your OP:

instead of saying change field x to your field number, which could mean a lot of different things, specify how to do that Exactly. This is where I got screwed up.

Firstly, you put TWO x's, and said change field x. So that confused me. "Do I change one x or two?" The red color helped in that area but I did ponder that when finding it not work right.

Secondly, you put replace field x with a space. I was trying to read between the lines a bit. I put "Field 5", and that did not work.

Also, if you want to make this mod more user friendly to install, please include a small description of what a field is and how to get the field number. you get the field number by going to your field editor and it shows you the field number for all of them. This is how I figured out the right code, which was NOT Field 5 or Field5x or simply 5 (you did say replace field x with your field number, so naturally i replaced both field and the x's with my field number) ,....

it was field5 (5 was just the field i added it in to users installing this mod so yours may be like 3 or 7 etc).

So just trying to help your mod reach more people, if you integrate these into your hack description, it will help out the ease of installing for people like me who use only logic and no experience with a vb forum(which btw i LOVE).

Next, I need to do this: Center the "My Profile Song" to be centered above the song. Not a big deal, but it's aesthetically pleasing to me and is a small upgrade. I could assume it's just a simple center code of html, but Im a pretty big noob at coding etc and something that simple could screw everything up in VB code in my clueless logic, so I figure I will ask how (plz), and also suggest you implement this into your OP coding.

Another suggestion to implement into your coding, is this modification I made(and i really do recommend it because most users have no clue what to do to the profile option, so this would help ease of use):

Change the description to: "To add a more personalization to your profile, you may add a song. To do this, enter the full URL of the song in this field. We do not host the song for you, so you will have to upload it somewhere yourself." Or you can word it however you like, but that is what I put it on my forum. Many users will not know what to do with that blank text space. So this is a bar none upgrade to your instructions. I hope you do not take this as you being flawed !! Pretty much everything can be upgraded And I whole heartedly am thankful for this mod.

Peace
-Omni
Thank you
By default it should be centered!
I tried my best to make it sample, if you still have problems pm me, I will install this on your site!!
Reply With Quote
  #100  
Old 10-14-2011, 07:26 PM
Omniverse Omniverse is offline
 
Join Date: Mar 2011
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the offer, but I don't feel comfortable giving someone access to my forum's admin panel without knowing them a good bit or a scenario you probably wouldn't believe so I'll censor myself :P. I will just leave it how it is.

Here is a display of my profile if you want to look at how it's working. I will change profiles to not be viewable by guests in a few days(or somewhere around there). Perhaps you can suggest something? My intuition tells me you would not do something to my site, and it would be fine. Regardless, I have to be careful given the company that lurks around me and the importance(to me anyway) of what I have on my site.....

http://www.omniverse101.com/forum/me...hp?1-Omniverse
Reply With Quote
  #101  
Old 10-14-2011, 07:40 PM
socialteenz's Avatar
socialteenz socialteenz is offline
 
Join Date: May 2011
Posts: 465
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Omniverse View Post
Thanks for the offer, but I don't feel comfortable giving someone access to my forum's admin panel without knowing them a good bit or a scenario you probably wouldn't believe so I'll censor myself :P. I will just leave it how it is.

Here is a display of my profile if you want to look at how it's working. I will change profiles to not be viewable by guests in a few days(or somewhere around there). Perhaps you can suggest something? My intuition tells me you would not do something to my site, and it would be fine. Regardless, I have to be careful given the company that lurks around me and the importance(to me anyway) of what I have on my site.....

http://www.omniverse101.com/forum/me...hp?1-Omniverse
It's centered already!! Yeah, no problem, i have installed this modification on 6 sites already
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 04:25 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.05693 seconds
  • Memory Usage 2,347KB
  • 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
  • (6)bbcode_code
  • (5)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
  • (3)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
  • (1)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