HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


YouTube Autoplay

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#69372 (In Topic #14688)
Avatar

Well-settled

Code not working

I've edited the youtube template but the code is not working.

Code

<div class="xhtml_validator_off">
    <iframe title="YouTube video player" class="youtube-player" type="text/html" width="480" height="390" src="http://www.youtube.com/embed/{URL*}&autoplay=1" frameborder="0" allowFullScreen="allowFullScreen"></iframe>
</div>
<br />

Any ideas?
Back to the top
 
Posted
Rating:
#69374
Avatar

Community saint

Replace "&" with "?" in the URL. The first parameter in a URL must always start with ?, while all subsequent parameters start with &.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#69375
Avatar

Well-settled

Nice. A search of most embed codes led to &.

But the first always leads with the ?.

Interesting. It works. Thank you temp.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: