YouTube Playlist BBCode v1.6

Started by karlbenson, October 10, 2007, 07:22:34 PM

Previous topic - Next topic

karlbenson


YOUTUBE PLAYLIST BBCODE 1.6
By Karl Benson

Link to Mod | Donate

I've discontinued this modification as I have merged it with my YouTube mod.

http://custom.simplemachines.org/mods/index.php?mod=936
You'll also find a conversion script to convert [ytplaylist] bbcode to [youtube]

asdas2

can we have a screen shot ...... PLease
www.chillparadise.com

for all desi people .... get everything u ever wanted.... log in to view hidden stuff.

karlbenson


asdas2

OHHHHHHHHHHHHHHHHHHHHHHHH okay ....... well thanz for the moddd .... i'll try it when i come back .....
www.chillparadise.com

for all desi people .... get everything u ever wanted.... log in to view hidden stuff.

karlbenson

and this mod is also compatible with my normal youtube mod (so you can have both installed at the same time)

karlbenson

I've got a newer version coming in the next few minutes which I've redone based on my youtube mod.

In my testing, there is no whitespace.  Any inside the url tags will be ignored.

karlbenson

Ok, I've have now uploaded v1.1 [mod]

1.1 - 16th October 2007
o Added support for embed player url
o Improved security of mod by denying script access (allowScriptAccess="never")
o Removes excess whitespace/carriage returns
o Fixed bug where youtube playlist bbcode was disabled it produced an invalid partial url
o Added support for when YouTube playlist & url bbcode tags are disabled to showing 'friendly alternative'
o Disables Youtube playlist for 'printer friendly' pages, showing a 'friendly alternative' instead.
o Fixed bug related to not escaping dots (.) in preg_match

karlbenson

I've uploaded v1.2

1.2 - 29th October 2007
o Consolidated 2.0 beta 1 and 1.1.x versions into single mod
o Added support for more YouTube localised versions
- Australia, Hong Kong, Mexico, New Zealand

karlbenson

1.3 - 29th November 2007
o Added support for de.youtube.com
o Fixed default sizes (they changed them)

Hoochie Coochie Man

Thank you..
and these are the Turkish Language

Modifications.turkish.php
$txt['ytplaylist'] = 'YouTube Playlist';
$txt['ytplaylist_invalid'] = '#Geçersiz YouTube Playlist Linki#';


Take good care..
İnadına SMF 1.1.X

karlbenson

1.4 - 4th December 2007
o Increased efficiency of regex/preg_match
o Added support for Turkish/Turkish-utf8 (Thanks Hoochie Coochie Man)
1.5 - 7th December 2007
o Added support for YouTube Canada

falguni1

wot to do

it says

hi

#Invalid YouTube Playlist Link#

#Invalid YouTube Playlist Link#

I used the following code

----------------------------------------------------------------------------------------------- .

hi

[ytplaylist]http://www.youtube.com/watch?v=a8uedKXMEZM[/ytplaylist]

[ytplaylist]<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/a8uedKXMEZM&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/a8uedKXMEZM&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>[/ytplaylist].

karlbenson

Falguni1, thats not a valid youtube playlist link.

Thats a normal youtube link.

Playlist links are different. (and you will note they use a P, rather than a V

falguni1

where to get them

and who will tell my members which link to use.

better you make normal links work with this mod.

because I cant tell each user how to use the mod.

karlbenson

No, I've done separate mods on purpose because playlists are completely different.

And board owners might not want both types on their forum.

An example playlist link is www.youtube.com/view_play_list?p=595A40209CB17411

falguni1

I am using many of your mods

like automatic embed videos and lightbox.

but do something to tell members which url to use.

karlbenson

well my automatic embed video clips mod does both.

To me its obvious.

But there isnt really much I can do. Tell members, where?

falguni1

Quote from: karlbenson on December 23, 2007, 12:33:18 PM
well my automatic embed video clips mod does both.


you mean to say automatic embed video clips works like youtube playlist mod.

karlbenson

It supports both types.

YouTube (normal links)
YouTube (playlist links)

falguni1

wot I mean to say is that a person uses both the mods

automatic video embed and youtube playlist

wen a user puts 5 links the videos are placed behind other

and wen a user uses youtube playlist bbc code button the videos are placed in one screen with other four videos at right bar.

so there is already difference.

karlbenson

I'm not 100% sure what you are asking, can you show me?

The Auto Embed Video Clips uses the same code from the YouTube playlist mod.

falguni1

#21
let us take a person for example
let him install both the mods

automatic video and playlist

now automatic video has no bbc button and playlist has bbc button

now a member of the site makes a post and puts five video links without bbc button so the videos are placed after each.

now again the member puts five links usind the playlist bbc button so the videos are placed like this



so there is no need to use the playlist video only

make the playlist video mod to be used with normal links too.

so wen the links are used the video is shown

and wen links are put in bbc code then the playlist type is shown.

falguni1

this is very confusing wot I want is that

wen I put 5-6 video links without bbc button normal videos should be seen
and wen I put 5-6 videos with bbc button a playlist format should be seen automatically.

karlbenson

The mod does not convert normal links into a playlist.
YouTube produce the playlist links.
You can only use ONE playlist link with each youtube playlist bbcode.

I definately not plan on supporting both youtube/youtube playlist bbcode for both.  I plan to keep them very separate.
(one reason some people don't want playlist videos is because the ajax features with the rotating clips is very memory intensive)

If your using the Auto Embed video clips there isnt really a need to continue to use the youtube mods.

falguni1

oh
means youtube makes playlist links, I was not knowing. I thought any videos can be shown as a playlist with playlist mod.

now I understand.

karlbenson

1.6 - 12th January 2008
o New improved readme
o Added Support for YouTube Russia & Taiwan
o Some other minor tweaks

karlbenson

I have reuploaded this mod and screenshots for it.

I am in the process of doing it for ALL my other mods aswell.  Please bear with me.

karlbenson

I've discontinued this modification as I have merged it with my YouTube mod.

http://custom.simplemachines.org/mods/index.php?mod=936
You'll also find a conversion script to convert [ytplaylist] bbcode to [youtube]

Advertisement: