| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| YouTube Profile Music | |
|---|---|
| Tweet Topic Started: Nov 15 2015, 12:23 AM (1,164 Views) | |
| DaPizzaMan | Nov 15 2015, 12:23 AM Post #1 |
![]()
#TeamSupport
![]()
|
Code Name: YouTube Profile Music What the code does: Replaces a user-specific code with a YouTube video/profile song. How to use the code: There are a few options a user has when entering the song(s).
How to install the code: First, you will need to create a custom profile field with "Profile Music" in the name (it can be called anything as long as those two words are in the name) and 1 line text as the type of field. Then, add the following code to Admin CP >> Board Template >> Below the Board Change false at the end of the first line to true if you want autoplay to be enabled by default; otherwise, leave it as it is. Extra notes: Currently, a user can turn off autoplay by going to Preferences >> Board Settings >> Autoplay Profile Music and unchecking the checkbox. That will disable autoplay from all profiles for that user. Their choice takes precedence over the global default set by the autoplayByDefault variable. I'm sure the explanation of how this code works is a bit confusing, so feel free to ask if you don't understand. I apologize about that. I couldn't find a good way to explain it. If you have any problems or questions, please post in this topic. Edited by DaPizzaMan, Aug 30 2016, 09:28 PM.
|
![]() |
|
| zbug | Nov 15 2015, 02:11 AM Post #2 |
![]()
Galaxy Friend
![]() ![]() ![]() ![]() ![]()
|
Sweet! Thanks
|
![]() |
|
| .Esper | Nov 15 2015, 02:32 AM Post #3 |
![]()
x
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Thank you very much DPM, this is very nice and the all the options are helpful. We are already using it.
Edited by .Esper, Nov 15 2015, 02:32 AM.
|
![]() |
|
| DaPizzaMan | Nov 15 2015, 10:32 AM Post #4 |
![]()
#TeamSupport
![]()
|
I'm glad everyone likes it. I am thinking about adding next video and previous video buttons beside the play/pause button. I'll probably work on that today or tomorrow. |
![]() |
|
| DaPizzaMan | Nov 16 2015, 11:48 PM Post #5 |
![]()
#TeamSupport
![]()
|
Added the buttons for previous and next video. Also updated the variable at the top of the code. So, please update the variable. It'll fix an issue with the code. |
![]() |
|
| Mortius | Nov 18 2015, 09:04 AM Post #6 |
|
Member
![]() ![]() ![]()
|
nevermind, i'm a dumba** and figured out what i was doing wrong. Thanks for the code
Edited by Mortius, Nov 18 2015, 11:46 AM.
|
![]() |
|
| DaPizzaMan | Jun 1 2016, 09:08 PM Post #7 |
![]()
#TeamSupport
![]()
|
I've added something to the code so that when you go to add the music to your profile through your preferences, you can open up a spoiler that shows examples of how to add the music (for example, you can choose a single video, multiple individual videos, a playlist, or a playlist from a set index). However, for this update you'll need to copy and paste the new code from the first post to your board again (don't worry, the profile songs will not be lost!). |
![]() |
|
| The Matt Reptar | Jun 3 2016, 08:55 PM Post #8 |
|
Member
![]() ![]() ![]()
|
I'm having an issue where unless it's set to autoplay, it doesn't work. If autoplay is disabled, and you click play, nothing happens. Also, is there anyway to have the whole video show instead of a little bar? Or is that a limitation of the profile field being set to one line? |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · ZetaBoards Codes & Modifications · Next Topic » |
| Track Topic · E-mail Topic |
4:35 AM Jul 11
|









![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)

4:35 AM Jul 11