Setting Youtube BB Code to full screen in YAF

02Mar11

Was wondering about the lack of the full screen mode on YAFs wonderful BBCode which embedds a youtube video.

Simple goto Admin — BB Code and Edit the Youtube BBCode record.

The Regex should be changed to:

<!– BEGIN youtube –><object width=”425″ height=”350″><param name=”movie” value=”http://${prefix}youtube.com/v/${id}”></param><param name=”allowFullScreen” value=”true”></param><embed src=”http://${prefix}youtube.com/v/${id}&fs=1” type=”application/x-shockwave-flash” width=”425″ height=”350″  allowfullscreen=”true”></embed></object><!– END youtube –>

The important bits are the param allowFullScreen, adding allowfullscreen to the embed tag, and also fs=1 to the querystring on the embed src value.

Advertisement


No Responses Yet to “Setting Youtube BB Code to full screen in YAF”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.