• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

[Tutorial/Guide] How to add music to a page.

Status
Not open for further replies.
Joined
Jan 27, 2010
Messages
2,206
Likes
1
IG Faction
Civilian
#1
I'm going to make this short, as it ain't difficult. This is a fun way to add a theme to your gang topic, honor someone, and so on. It just spices up the forums a bit.

First, search the song you want to use at Youtube, should be easy.

As example, let's take a Slayer song.

<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/CUDWLp1yIWw&hl=nl_NL&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/CUDWLp1yIWw&hl=nl_NL&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>

Below the vid you can see a button [ < embed > ]. Click the button and a bar will open with the embed code in it.

Copy the code (ctrl + C) and paste it in Notepad or Word, or even straight into the 'post a new reply'-window.

So in the case of the Slayer video, we have this code:

Code:
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/CUDWLp1yIWw&hl=nl_NL&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/CUDWLp1yIWw&hl=nl_NL&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>
Now we have the code, let's delete all the unnecessary stuff. Everything BEFORE
Code:
<embed
can be deleted. Same thing with whatever stands behind
Code:
</embed>
So right now, you should have something like this:

Code:
<embed src="http://www.youtube.com/v/CUDWLp1yIWw&hl=nl_NL&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed>
Now, you probably want your video to autoplay, so let's add "&autoplay=1" to it. This means that the function autoplay will be set to "true".Best place to add "&autoplay=1" is between the video URL and the other "&". To clarify where to put it:

src="http://www.youtube.com/v/CUDWLp1yIWw&autoplay=1&hl=nl_NL&fs=1&"

Afterwards, your embed code will look like this:
Code:
<embed src="http://www.youtube.com/v/CUDWLp1yIWw&autoplay=1&hl=nl_NL&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed>
You probably also want your music to "loop", in other words, when the music ends, it will restart again.
To do that, add "&loop=1" behind "&autoplay=1". This will activate the loop function. To clarify where you have to put it, you can look at this:

src="http://www.youtube.com/v/CUDWLp1yIWw&autoplay=1&loop=1&hl=nl_NL&fs=1&"

The complete embed code will look like this:

Code:
<embed src="http://www.youtube.com/v/CUDWLp1yIWw&autoplay=1&loop=1&hl=nl_NL&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed>
As the last step, you want to make the video invisible, so you can only hear it and stop it. Therefore you just have to set the width to 640 and height to 25, which will result in looking like this:

Code:
<embed src="http://www.youtube.com/v/CUDWLp1yIWw&autoplay=1&loop=1&hl=nl_NL&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="25"></embed>
Now let's test it out. Whilst reading and using this guide, you probably already heard the music (if not, change your browser settings, or simply turn your sound on). The code for the music on this page is between these two arrows
-> <embed src="http://www.youtube.com/v/CUDWLp1yIWw&autoplay=1&loop=1&hl=nl_NL&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="25"></embed> <- :D

If you want your song to play over your whole gang topic or w/e, simply edit one of your posts on every page or ask someone else to edit this into his/her post if you don't have one on a specific page.

Well, I hope this was useful to you all. I might add an extra "feature" to this soon (;

5 GENERAL RULES YOU SHOULD KEEP IN MIND,
MEANT FOR RETARDS/SPAMMERS AND THE COMBINATION OF BOTH:

:!: DO NOT USE THIS IN SIGNATURES

:!: DO NOT USE THIS IN OTHER PEOPLES THREADS

:!: DO NOT MAKE THE BARS COMPLETELY INVISIBLE

:!: DO NOT USE THIS IN EVERY SINGLE FUCKING THREAD

:!: ONLY USE THIS EMBED IF IT ACTUALLY ADDS A VALUE TO THE TOPIC
 
Joined
Mar 11, 2010
Messages
1,458
Likes
0
IG Faction
Civilian
#5
Too bad that Jimmy has added a song to his SIGNATURE, so it will be heard on every goddamn topic he posts in!
(( Or he's a no-lifer, copy+pasting it in each topic. ))
 
Joined
Jan 27, 2010
Messages
2,206
Likes
1
IG Faction
Civilian
#6
NOOOOOOOOOOOOOOO

DO NOT ADD THIS TO YOUR FUCKING SIGNATURES

IT WILL FUCK UP WHEN YOU POST MULTIPLE TIMES; THE APPS WON'T START AT THE SAME TIME SO ROTTEN ECHOS WILL FUCK IT ANYWAY
 
Joined
Jan 27, 2010
Messages
2,206
Likes
1
IG Faction
Civilian
#8
Yeah, once you did it it's easy :D Just cut 2 times, add 2 pieces and change the dimension variables to 0 ^^
 

Nikita_Cherdenko

#9
does this work on any forum, or is it different for different forums, i.e. PunBB forums.
 
Status
Not open for further replies.