vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Profile Enhancements - MixPod Playlist MP3 Player in Profile (https://vborg.vbsupport.ru/showthread.php?t=212414)

Chadi 04-28-2009 10:00 PM

MixPod Playlist MP3 Player in Profile
 
1 Attachment(s)
MixPod Playlist MP3 Player in Profile
(please nominate for mod of the month)

http://www.pingy.us/thumbs/mixpodlogo.gif

Should work fine on 3.6x and up

This will add a new mini block in your member's profiles to integrate your member's own MixPod.com playlist mp3 player! All mp3's are taken from various online media sites such as YouTube and several other sites. It also allows you to upload your own hosted mp3 files as well!

LIVE DEMO: click here

Installation
  1. Register a free account at www.mixpod.com and create your own custom playlist
  2. Install either one of the two plug-ins attached: admincp > manage products
  3. Create a new user profile field (admincp > add new user profile field > Single-Line Text Box
    • Title: MixPod Playlist MP3 Player
    • Description: What is your MixPod.com playlist ID?
    • Private Field: Yes
    • Field Searchable on Members List: No
    • Show on Members List: No
    • Save
    • Make a note of the new field# for that new profile field
  4. Repeat step #3 for to create 4 more same user profile fields with only two field changes below. The other options (private, show on member list, etc the same)
    • Title: MixPod Background Color / Description: What background color would you like for your player?
    • Title: MixPod Color #1 / Description: What do you what the main skin color to be?
    • Title: MixPod Color #2 / Description: Currently playing song highlight color
    • Title: MixPod Color #3 / Description: What color buttons do you want?
Upgrade Instructions
  1. Install new plug-in attached and "overwrite" = yes
  2. Revert (not optional) the memberinfo_block_mixpod template
  3. Redo necessary template changes mentioned below
    • If installing custom-color version, add new user profile fields mentioned above in step #4. Skip this step if you're still using default version.
Template Edits
.............................

Step #1
(Edit template based on the version you installed, default or custom-color)


Edit template memberinfo_block_mixpod
  • Change two occurrences of "fieldX" to actual field number you noted (eg. field50)
  • Customize green highlighted color variables to match the colors of your forum
    • If you install the custom color version, you can skip this step
Default Version:

Code:

<if condition="$userinfo[fieldx]">
<div id="mixpod" class="tborder content_block">
    <h4 class="thead block_title">
        <a href="#top" class="collapse_gadget" onclick="return toggle_collapse('mixpod')"><img id="collapseimg_mixpod" src="images/buttons/collapse_generic.gif" alt="" border="0" /></a>
        <a name="albums"></a>
        <span class="block_name">My MixPod Playlist</span>
    </h4>
    <div class="block_content" id="collapseobj_mixpod" style="">   
    <div class="alt2" align="center">
    <embed src="http://assets.myflashfetish.com/swf/mp3/mixpod.swf?myid=$userinfo[fieldx]" quality="high" wmode="window" bgcolor="ffffff" flashvars="mycolor=4d528c&mycolor2=f2a0f9&mycolor3=ffffff&autoplay=false&rand=1&f=4&vol=100&pat=1&grad=true" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" border="0" style="visibility:visible;width:100%;height:300px;"></embed>
    </div>
    </div>
</div>
</if>


Custom-Color Version:

Edit template memberinfo_block_mixpod
  • Change six occurrences of "fieldX" to actual field number you noted for all 5 user profile fields you created (eg. field50)
Code:

<if condition="$userinfo[fieldX]">
    <div id="mixpod" class="tborder content_block">
        <h4 class="thead block_title">
            <a href="#top" class="collapse_gadget" onclick="return toggle_collapse('mixpod')"><img id="collapseimg_mixpod" src="images/buttons/collapse_generic.gif" alt="" border="0" /></a>
            <a name="albums"></a>
            <span class="block_name">My MixPod Playlist</span>
        </h4>
        <div class="block_content" id="collapseobj_mixpod" style="">   
        <div class="alt2" align="center">
        <embed src="http://assets.myflashfetish.com/swf/mp3/mixpod.swf?myid=$userinfo[fieldX]" quality="high" wmode="window" bgcolor=$userinfo[fieldX] flashvars="mycolor=$userinfo[fieldX]&mycolor2=$userinfo[fieldX]&mycolor3=$userinfo[fieldX]&autoplay=true&rand=1&f=4&vol=100&pat=1&grad=true" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" border="0" style="visibility:visible;width:100%;height:300px;"></embed>
        </div>
        </div>
    </div>
</if>


Step #2

Edit template MEMBERINFO and search for

Code:

$blocks[groups]
$blocks[visitors]

Put $blocks[mixpod] underneath anyone of those lines. Example:

Code:

$blocks[groups]
$blocks[mixpod]
$blocks[visitors]



Your members will now go to their control panel's Edit Details area to fill in their playlist ID. See screenshot for example.

Quote:

"Search me, O God, and know my heart: try me, and know my thoughts: And see if there be any wicked way in me, and lead me in the way everlasting." - Psalm 139:23-24
Check out my other mods:

*********** CHANGELOG
***********

May 6th 2009
  • Fixed minor usergroup permission
  • Added custom color options for members! (suitable for forums that allow member profile skinning enabled)
  • Set autoplay to true
****************************************

Please show your appreciation by voting and clicking install :up:

* Please Note: No Support Provided via PM or Email, only in This Thread for those who click Install *

Hornstar 04-29-2009 05:34 AM

It seems pretty cool. I have vbplaza installed so I often like to charge members points to enable features or to have songs etc. so it would be nice if the 2 were integrated.

Jasem 04-29-2009 01:15 PM

Great work , thank you!

Chadi 04-29-2009 10:51 PM

Glad you like it

Darthvader2007 04-30-2009 01:17 AM

Can i get this player automatic played ?
So when a person go to my user page, this player play automatic. ?
And not that the person first have to putt the play button.

x4a 04-30-2009 02:49 AM

Thank you

i love it but its wont work with me... i did evrything step by step but still wont work

x4a 04-30-2009 11:20 AM

if i login i cant see the player...but if i view like a gust i can see the player

any help !!

Chadi 04-30-2009 12:57 PM

Quote:

Originally Posted by Darthvader2007 (Post 1801556)
Can i get this player automatic played ?
So when a person go to my user page, this player play automatic. ?
And not that the person first have to putt the play button.

Change

autoplay=false


to

autoplay=true

Chadi 04-30-2009 04:02 PM

Quote:

Originally Posted by x4a (Post 1801749)
if i login i cant see the player...but if i view like a gust i can see the player

any help !!

Check your usergroup permissions. Also, you may need to edit the plugin code to add userrgoups (custom):

This line:

if (is_member_of($vbulletin->userinfo,1 ,2 , 5, 6, 7))

vibe 04-30-2009 08:06 PM

nevermind, my mistake. works great.


All times are GMT. The time now is 09:57 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.01219 seconds
  • Memory Usage 1,784KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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