Play music in users profile played from YouTube

by Frekuenti - 15-11-2018, 12:34 AM
Newbie
Posts:
16
Joined:
Jul 2017
Likes:
0
Credits:
2
Reputation:
0
1 Year of Service
#1
OP
Posted: 15-11-2018, 12:34 AM (This post was last modified: 15-11-2018, 12:35 AM by Frekuenti.)
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
💖💖💖💖
Prime
Posts:
113
Joined:
Jan 2015
Likes:
7
Credits:
0
Reputation:
1
3 Years of Service
#2
Posted: 05-12-2018, 08:52 PM (This post was last modified: 05-12-2018, 09:14 PM by Trill.)
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: jWioxbE.gif]
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)