Music Player Profile View


/ Published in: HTML
Save to your folder(s)

How to add music player to skins in IPB


Copy this code and paste it in your HTML
  1. User Control Panel > membersProfileForm
  2.  
  3. Find:
  4.  
  5. <ul>
  6. {$optional_output}
  7. </ul>
  8.  
  9. Add Below:
  10.  
  11. <if test="IPSMember::isInGroup( $this->memberData, array(4,8,9) )">
  12. <ul>
  13. <li class="field" id="dgCustom">
  14. <label for="field_11">MixPod</label>
  15. <input type="text" value="" name="field_11" class="input_text" size="40" id="field_11" style="display:block;">
  16. <span class="desc">Add a custom mixpod.com playlist to your profile (playlist number only)</span>
  17. </li>
  18. </ul>
  19. </if>
  20.  
  21.  
  22. CSS: ipb_ucp.css
  23.  
  24. Add:
  25. li.field input#field_11 {display:none; }
  26.  
  27.  
  28. Open: Profiles > profileModern
  29.  
  30. Add Below update bar
  31.  
  32. <!-- // START // -->
  33.  
  34. <if test="$member['field_11'] != """>
  35. <div id="mixpodPlayer">
  36. <object type="application/x-shockwave-flash" data="http://assets.myflashfetish.com/swf/mp3/mp-sk.swf" height="180" width="400" style="width:400px;height:180px">
  37. <param name="movie" value="http://assets.myflashfetish.com/swf/mp3/mp-sk.swf" />
  38. <param name="quality" value="high" />
  39. <param name="scale" value="noscale" />
  40. <param name="salign" value="TL" />
  41. <param name="wmode" value="transparent"/>
  42. <param name="flashvars" value="myid={$member['field_11']}&autoplay=true&rand=1&f=4&vol=100&rand=0&f=4&vol=100&mycolor=F2E9E1&mycolor2=1C140D&mycolor3=CBE86B&pat=0&grad=true"/>
  43. </object>
  44. </div>
  45. </if>
  46.  
  47. <!-- // END // -->

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.