MyBB Tutorials

Play music in users profile played from YouTube

Submitted by Frekuenti, , Thread ID: 106375

Thread Closed
15-11-2018, 01:34 AM
This post was last modified: 15-11-2018, 01:35 AM by Frekuenti
#1
Hello, i want to who you how you can play music on users profile

  1. Open the member_profile template and paste the following code under the <body> tag
    Code:
    <iframe width="1" height="1" src="https://www.youtube.com/embed/{$userfields['fidXXX']}?rel=0&amp;controls=0&amp;showinfo=0&amp;autoplay=1" frameborder="0" allowfullscreen></iframe>


  2. We create a new profile field, and replace its ID instead of XXX in the code above.
  3. To play music, paste only the ID of the video in the field for music:
    https://www.youtube.com/watch?v=n3wcES3YEs4I
hope i can helped you! Smile

RE: Play music in users profile played from YouTube

This post was last modified: 05-12-2018, 10:14 PM by Tracy
#2
Code:
<if $memprofile['uid'] == 1 then>
<iframe width="1" height="1" src="https://www.youtube.com/embed/UBCPd2HvRJY?autoplay=1&start=0"style="position: absolute;bottom: 1px" frameborder="0" allowfullscreen></iframe></div>
</if>

That works better for me.

--
Edit: Not sure if this still works, I just get video unavailable for YouTube videos.
[Image: SmallGlossyDeer-size_restricted.gif]


Users browsing this thread: 2 Guest(s)