phpBB MODS
Bishopston.net phpBB MODS forum
  latestpostsLatest Posts   latesttopicsLatest Topics   unreadtopicsUnread Topics   Register   Profile   Memberlist   Usergroups   Search   Log in to check your private messages   FAQ      Log in  
Calendar 
Calendar eventCalendar
Thu 02 September 2010
Fri 03 September 2010
Sat 04 September 2010
Sun 05 September 2010
Mon 06 September 2010
Tue 07 September 2010
Wed 08 September 2010
Page 1 of 1
Post new topic   Reply to topic       phpBB MODS Forum Index -> phpBB2 MODS-> Inserting a youtube video All times are GMT + 1 Hour
View previous topic :: View next topic  
Author Message
jamieOffline
Site Admin
Joined: 10 March 2005
Total posts: 27
Gender: Unknown
Karma: 1
Karma yesterday, day before: 1, 1

Last Listened on Thu Sep 02, 2010 6:09 pm : Various Artitsts - CD3 Whole CD Mix
Post: #1 (ID: 11736)   PostPosted: Fri Jul 18, 2008 3:08 am    Karma this post: (+0 -0)  
Post subject:  Inserting a youtube video
 Posted from: United Kingdom Reply with quote

[media]hAX6yi60OPY[/media]

Note also, a 3-frame gif image is displayed until the user opens the actual video. Apart from looking good, this means that the instance of the flash-player isn't loaded until the video is played.. On pages with LOTS of videos posted, this makes a big difference, as otherwise, even if the video hasn't been started, each video causes an instance of flash-player to start, which uses loads of memory and slows things down.
Similarly, when the video is stopped, the flash-player instance is unloaded and replaced again by the gif image.

I've also added an option in the profile menu that allows you to set the type of "preview" image that is shown. (on a youtube video, click the 'options' link down the bottom left)

This is mainly for those eeejits still using DACS, as the preview image tends to be around 240K, whilst the single-frame image is about 30K

If you're really fascist, you can set the image to none - in which case you'll get the generic 'click to open' message.

In addition, when posting a youtube video, you can now change the default image type by adding the keywords 'single' or 'none' after the youtube ID. However, this only works when you use the 'media' format for posting videos, such as:

[media]jCnAjel02lM[/media]
[media=jCnAjel02lM]my title[/media]
[media]jCnAjel02lM single[/media]
[media=jCnAjel02lM single]my title[/media]
[media]jCnAjel02lM none[/media]
[media=jCnAjel02lM none]my title[/media]

Also, just pasting a youtube URL directly will cause it to automatically be converted into the above format, such as:

[media]http://www.youtube.com/watch?v=6mTvrWnEWK8[/media]
[media]http://www.youtube.com/watch?v=6mTvrWnEWK8&related=1[/media]
[media=http://www.youtube.com/watch?v=6mTvrWnEWK8&related=1]Look at this[/media]
[media=http://www.youtube.com/watch?v=X72MwJBSRdg]test 1[/media]
[media=http://www.youtube.com/v/X72MwJBSRdg]test 2[/media]
[media=http://www.youtube.com/watch_fullscreen?» fs=1&vq=None&sourceid=yw&video_id=X72MwJBSRdg&l=332&sk=7T9S]test 3[/media]
[media=http://www.youtube.com/swf/l.swf?video_id=X72MwJBSRdg&rel=1&eurl=&iurl=http%3A//» i.ytimg.]test 4[/media]
[media]http://www.youtube.com/watch?v=X72MwJBSRdg[/media]
[media]http://www.youtube.com/v/X72MwJBSRdg[/media]
[media]http://www.youtube.com/watch_fullscreen?» fs=1&vq=None&sourceid=yw&v=X72MwJBSRdg&l=332&sk=7T9S[/media]
[media]http://www.youtube.com/watch_fullscreen?» fs=1&vq=None&sourceid=yw&video_id=X72MwJBSRdg&l=332&sk=7T9S[/media]
[media]http://www.youtube.com/swf/l.swf?video_id=X72MwJBSRdg&rel=1&eurl=&iurl=http%3A//» i.ytimg.[/media]

etc.

Finally, simply pasting a URL of the above format will work, as it will be converted automatically.


YouTube Video ID: hAX6yi60OPY
Youtube video : Click here to load video  ( View on the YouTube site )OptionsClose



Last edited by jamie on Sat Feb 07, 2009 4:23 pm; edited 4 times in total
Back to top
View user's profile                         Bookmark and Share
danOffline
Joined: 02 August 2006
Total posts: 2
Gender: Unknown
Karma: 0
Karma yesterday, day before: 0, 0
Post: #2 (ID: 11737)   PostPosted: Fri Jul 18, 2008 2:55 pm    Karma this post: (+0 -0)  
Post subject:  
 Posted from: United States Reply with quote

YouTube Video ID: 9JhuOicPFZY
Youtube video : Click here to load video  ( View on the YouTube site )OptionsClose



Edit: ok, so it does find the video id from a full URL - there's my next idea gone!
Back to top
View user's profile                         Bookmark and Share
jamieOffline
Site Admin
Joined: 10 March 2005
Total posts: 27
Gender: Unknown
Karma: 1
Karma yesterday, day before: 1, 1

Last Listened on Thu Sep 02, 2010 6:09 pm : Various Artitsts - CD3 Whole CD Mix
Post: #3 (ID: 11824)   PostPosted: Sat Feb 07, 2009 1:35 pm    Karma this post: (+0 -0)  
Post subject:  
 Posted from: United Kingdom Reply with quote

widescreen test:

YouTube Video ID: 1rJ206ApObI
Youtube video : Click here to load video  ( View on the YouTube site )OptionsClose

Back to top
View user's profile                         Bookmark and Share
jamieOffline
Site Admin
Joined: 10 March 2005
Total posts: 27
Gender: Unknown
Karma: 1
Karma yesterday, day before: 1, 1

Last Listened on Thu Sep 02, 2010 6:09 pm : Various Artitsts - CD3 Whole CD Mix
Post: #4 (ID: 11849)   PostPosted: Sun Jun 28, 2009 8:19 pm    Karma this post: (+0 -0)  
Post subject:  
 Posted from: United Kingdom Reply with quote

YouTube Video ID: 9lp0IWv8QZY
Youtube video : Click here to load video  ( View on the YouTube site )OptionsClose




YouTube Video ID: i4Gqmfa7qog
Youtube video : Click here to load video  ( View on the YouTube site )OptionsClose

Back to top
View user's profile                         Bookmark and Share
Display posts from previous:   
Post new topic   Reply to topic       phpBB MODS Forum Index -> phpBB2 MODS-> Inserting a youtube video All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Powered by phpBB 2 © 2001 - 2005 phpBB Group
* System Network Status *
* Catflap phpBB Changes *
Served by catflap.bishopston.net
Powered By FreeBSD

Page generation @ 03:53:03 - time: 0.5152s (PHP: 91% - SQL: 9%) - SQL queries: 40