vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Profile Enhancements - Awesome Flash Music Player For Members Profile (https://vborg.vbsupport.ru/showthread.php?t=264083)

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:

$template_hook[profile_right_first]
Below add:

Code:


<center><tbody><tr>
                <if condition="$userinfo['fieldx']"><td class="alt1" style="font-family: Verdana; font-size: 10pt">
                <b>My Music Player</b>

<!-- FLASH MUSIC PLAYER -->
<script src="$vboptions[bburl]/embed/swfobject.js" type="text/javascript"></script>

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

<script type="text/javascript">
var so = new SWFObject('$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.fieldx}&volume=100&autostart=true');
so.write('player');
</script>

<!-- FLASH MUSIC PLAYER -->
</td>
            </tr>
            </tbody></center>

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

Preview:https://vborg.vbsupport.ru/external/2011/05/14.png

provided by Extreme Sporters
4.x.x version here

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:54 PM

Reserved*****

FreshFroot 05-24-2011 03:31 AM

Looks really neat will have to try it out :D

socialteenz 05-24-2011 09:53 AM

Quote:

Originally Posted by FreshFroot (Post 2199348)
Looks really neat will have to try it out :D

Glad you like it :) Post your results, also click mark as installed if you are using this mod :)

lsti 06-11-2011 02:45 PM

Thank you. Great job :)


All times are GMT. The time now is 10:31 AM.

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.01416 seconds
  • Memory Usage 1,724KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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