Well, I want users to be able to post youtube videos in my phpbb3 forum... can anyone say me how to do that?
Here you go just add these codes through ACP [youtube]{TEXT}watch?v={TEXT1}[/youtube] Code (markup): <object width="425" height="344"><param name="movie" value="{TEXT}v/{TEXT1}&rel=en&fs=1&color1=0x234900&color2=0xd4d4d4"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="{TEXT}v/{TEXT1}&rel=en&fs=1&color1=0x234900&color2=0xd4d4d4" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object> Code (markup): YouTube: [youtube]Link to YouTube Video[/youtube] Code (markup):
Here is an alternative way of doing this; BBCode: [youtube]{TEXT}[/youtube] Code (markup): HTML Replacement: <embed src="http://www.youtube.com/v/{TEXT}" wmode="transparent" style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" flashvars=""> Code (markup): Explanation: [youtube]Link to the YouTube video[/youtube] Code (markup):
Works fine if you followed the life hacker article. Don't embed the full youtube URL in between the bbcode, just the link ID.