[ABD] Video BBCode 1.0.5

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Olegus
Registered User
Posts: 5
Joined: Sat Apr 23, 2011 12:30 pm

Re: [RC] Video BBCode 1.0.4

Post by Olegus »

1. smotri.com - thank you, it's work :D

2. vkontakte.ru - sample

http://vkontakte.ru/id4365205#/video4365205_160332554

<iframe src="http://vkontakte.ru/video_ext.php?oid=4 ... 443cd&hd=1" width="607" height="360" frameborder="0"></iframe>

3. For version Video BBCode 1.0.3 (but it is not work on 1.0.4) sane codes for russian services:
http://www.phpbbguru.net/community/topi ... ml#p298318
http://www.phpbbguru.net/community/topi ... ml#p307879
http://www.phpbbguru.net/community/topi ... ml#p321476
XavierPN
Registered User
Posts: 5
Joined: Sun Jan 09, 2011 11:59 pm

Re: [RC] Video BBCode 1.0.4

Post by XavierPN »

Good day everyone,

One of our users asked us to add SoundCloud.com as part of the VIDEO BBCODE we're using.

Would one be nice enough to tell us what I need to put in the video.php file to get soundcloud clips to work?

Soundcloud provided an independent BBCODE for its player, however we'd really like to have it as part of the VIDEO BBCODE : How to create a soundcloud bbcode

Many thanks for your feedback!
Xavier
sevenalive
Registered User
Posts: 437
Joined: Thu Feb 07, 2008 4:45 am

Re: [RC] Video BBCode 1.0.5

Post by sevenalive »

Released 1.0.5, existing users can just overwrite the video.php file.
011-7-01 - Version1.0.5
  • Added youtu.be support
    Added smotri.com
    Added videos.sapo.pt
    Added SoundCloud.com
    clipiki.ru
As far as vkontakte.ru goes, it uses a weird url format that won't work with this mod. It relies on a hash that isn't in the url and I tried to view the page source and I get redirected to a login screen instead. For this site, it's better to make a standalone bbcode for it instead.
Olegus
Registered User
Posts: 5
Joined: Sat Apr 23, 2011 12:30 pm

Re: [RC] Video BBCode 1.0.5

Post by Olegus »

vkontakte.ru

BBCode

Code: Select all

[vkvideo]<iframe src="http://vkontakte.ru/video_ext.php?oid={SIMPLETEXT1}&id={SIMPLETEXT2}&hash={SIMPLETEXT3}" width="607" height="360" frameborder="0"></iframe>[/vkvideo]
HTML

Code: Select all

<iframe src="http://vkontakte.ru/video_ext.php?oid={SIMPLETEXT1}&id={SIMPLETEXT2}&hash={SIMPLETEXT3}" width="607" height="360" frameborder="0"></iframe>

Code: Select all

[vkvideo]Code video[/vkvideo]
================================================================
video.mail.ru

BBCode

Code: Select all

[videomail]http://video.mail.ru/{SIMPLETEXT1}/{SIMPLETEXT2}/{SIMPLETEXT3}/{SIMPLETEXT4}.html[/videomail]
HTML

Code: Select all

<object width="626" height="367" type="application/x-shockwave-flash" data="http://img.mail.ru/r/video2/player_v2.swf?par=http://content.video.mail.ru/{SIMPLETEXT1}/{SIMPLETEXT2}/{SIMPLETEXT3}/${SIMPLETEXT4}" ><param name="movie" value="http://img.mail.ru/r/video2/player_v2.swf?par=http://content.video.mail.ru/{SIMPLETEXT1}/{SIMPLETEXT2}/{SIMPLETEXT3}/${SIMPLETEXT4}" /><param name="flashvars" value="imaginehost=video.mail.ru&perlhost=video.mail.ru&alias={SIMPLETEXT1}&username={SIMPLETEXT2}&albumid={SIMPLETEXT3}&id={SIMPLETEXT4}&catalogurl=http://video.mail.ru/themes/music&page=1" /><param name="devicefont" value="false"/><param name="menu" value="false"/><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /></object>

Code: Select all

[videomail]URL[/videomail]
================================================================
video.yandex.ru

BBCode

Code: Select all

[yavideo]{URL}[/yavideo]
HTML

Code: Select all

<object width="450" height="360"><param name="video" value="{URL}"/><param name="allowFullScreen" value="true"/><param name="scale" value="noscale"/><embed src="{URL}" type="application/x-shockwave-flash" width="450" height="360" allowFullScreen="true" scale="noscale"/></object>

Code: Select all

[yavideo]http://streaming.video.yandex.ru/lite/aslar/kix90tz3tz.1311/[/yavideo]
================================================================

Please insert this code to your mode!
Olegus
Registered User
Posts: 5
Joined: Sat Apr 23, 2011 12:30 pm

Re: [RC] Video BBCode 1.0.5

Post by Olegus »

For version [RC] Video BBCode 1.0.3 it's (vkontakte.ru) work!

Code: Select all

//http://vkontakte.ru/video83797237_152078534?hash=b701e54ec40d20bf
array('/vkontakte\.ru\/video([^&]*)_([^&]*)?hash=([^&]*)/i', '<iframe src="http://vkontakte.ru/video_ext.php?oid={ID_VIDEO}&id={ID_VIDEO2}&hash={ID_VIDEO3}" width="540" height="360" frameborder="0"></iframe>'),
//http://vkontakte.ru/video_ext.php?oid=83797237&id=152078534&hash=b701e54ec40d20bf&hd=1
array('/vkontakte\.ru.*oid=([^&]*)&id=([^&]*)&hash=([^&]*)/i', '<iframe src="http://vkontakte.ru/video_ext.php?oid={ID_VIDEO}&id={ID_VIDEO2}&hash={ID_VIDEO3}" width="540" height="360" frameborder="0"></iframe>'),


//http://video.mail.ru/inbox/i_am_agel/_myvideo/3.html?smslast_from_main=1
array('/video\.mail\.ru\/(.*).html/i', '<object id="no" name="no" width=546 height=367><param name="allowScriptAccess" value="always" /><param name="movie" value="http://img.mail.ru/r/video2/player_v2.swf?movieSrc={ID_VIDEO}" /><embed src=http://img.mail.ru/r/video2/player_v2.swf?movieSrc={ID_VIDEO} type="application/x-shockwave-flash" width=546 height=367 allowScriptAccess="always"></embed></object>'),


//http://video.qip.ru/video/view/?id=v1394084f668
array('/video\.qip\.ru.*id=([^&]*)/i', '<object id="no" name="no" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="330"><param name="movie" value="http://pics.video.qip.ru/scrubber_custom8.swf?file={ID_VIDEO}&bufferTime=3&autoStart=false&str_lang=rus&xmlsource=http%3A%2F%2Fpics%2Evideo%2Eqip%2Eru%2Fcskins%2Fqip%2Fskin%5Fcolor%2Exml&xmldatasource=http%3A%2F%2Fpics%2Evideo%2Eqip%2Eru%2Fcskins%2Fqip%2Fskin%5Fng%2Exml" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><embed src="http://pics.video.qip.ru/scrubber_custom8.swf?file={ID_VIDEO}&bufferTime=3&autoStart=false&str_lang=rus&xmlsource=http%3A%2F%2Fpics%2Evideo%2Eqip%2Eru%2Fcskins%2Fqip%2Fskin%5Fcolor%2Exml&xmldatasource=http%3A%2F%2Fpics%2Evideo%2Eqip%2Eru%2Fcskins%2Fqip%2Fskin%5Fng%2Exml" quality="high" allowscriptaccess="always" allowfullscreen="true" wmode="window"  width="400" height="330" type="application/x-shockwave-flash"></embed></object>'),


//http://video.google.it/videoplay?docid=-1807566009355608301
array('/video\.google.*docid=([^&]*)/i', '<embed id="VideoPlayback" style="width:400px;height:326px" allowFullScreen="true" flashvars="fs=true" src="http://video.google.com/googleplayer.swf?docid={ID_VIDEO}" type="application/x-shockwave-flash"></embed>'),


//http://video.bigmir.net/show/44676/
array('/video\.bigmir\.net\/.*?\/([^&]*)/i', '<object width="540" height="342"><param name="movie" value="http://video.bigmir.net/extplayer/{ID_VIDEO}/"></param><param name="wmode" value="transparent"></param><param name="allowFullScreen" value="true"></param><param name="flashvars" value=""></param><embed src="http://video.bigmir.net/extplayer/{ID_VIDEO}/" type="application/x-shockwave-flash" wmode="transparent" allowfullscreen="true" width="540" height="342" flashvars=""></embed></object>'),
Last edited by Olegus on Sat Jul 02, 2011 4:08 pm, edited 1 time in total.
XavierPN
Registered User
Posts: 5
Joined: Sun Jan 09, 2011 11:59 pm

Re: [RC] Video BBCode 1.0.5

Post by XavierPN »

sevenalive wrote:Released 1.0.5 ...
011-7-01 - Version1.0.5
  • ... Added SoundCloud.com ...
Oh damn! I didn't see this. Indeed it is there, I was probably using a very old version. Many thanks for this.

I however notived Gametrailers is not there anymore (it seemed to be in version 1,0,2 though), would it be possible to add it? Sorry but I couldn't find a way to get the embed code to retrieve the video.

Here is the link to a video:
http://www.gametrailers.com/video/japan ... rio/100564

Now, the EMBED code we would like to insert:

Code: Select all

<embed src="http://media.mtvnservices.com/mgid:moses:video:gametrailers.com:100564" width="512" height="288" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" base="." flashVars=""></embed>
I couldn't find the way to only use the ID of the video in my embedded code, it always adds the "japanese-game-super-mario" as well. Please help :)

Many thanks again,
Xavier
sevenalive
Registered User
Posts: 437
Joined: Thu Feb 07, 2008 4:45 am

Re: [RC] Video BBCode 1.0.5

Post by sevenalive »

Redownload it, I added gametrailers.
Olegus wrote:For version [RC] Video BBCode 1.0.3 it's (vkontakte.ru) work!
No it didn't, the code was present, but it didn't work. I removed all invalid codes and added back what did work. It's not going to be possible to add those Russian sites sorry, just use a separate bbcode for them.
XavierPN
Registered User
Posts: 5
Joined: Sun Jan 09, 2011 11:59 pm

Re: [RC] Video BBCode 1.0.5

Post by XavierPN »

Good morning!
sevenalive wrote:Redownload it, I added gametrailers.
Thank you so much, I really love this MOD: it makes our users happy!

Xavier :D
NeilUK
Registered User
Posts: 276
Joined: Fri Oct 28, 2005 7:54 pm

Re: [RC] Video BBCode 1.0.5

Post by NeilUK »

Would it be possible to make this mod able to stream videos from the forum owners own server? Or is it already possible rather than streaming from these video sites. There is an Embed Video mod for WordPress blogs and it's ideal for what I'd like to do with my Forum. This mod is the closest I have found to it
sevenalive
Registered User
Posts: 437
Joined: Thu Feb 07, 2008 4:45 am

Re: [RC] Video BBCode 1.0.5

Post by sevenalive »

For that, you would need a video player, JW Flash Player is a good free option, but I would also check into native HTML5 options so users wouldn't need the flash plugin to view the video. Then just add your site to the php file with the embed code.

Now you would also need to consider your site bandwidth limitations, even those cheap shared accounts that claim unlimited bandwidth have unstated limits. So if your site is high traffic and people would watch lots of self hosted videos, it would drain your bandwidth and slow down your site in the process for other users.
Blazeflack
Registered User
Posts: 50
Joined: Sat May 16, 2009 2:00 pm

Re: [RC] Video BBCode 1.0.5

Post by Blazeflack »

Hi sevenalive.

It would appear that the bbcode doesn't work for all break.com links. I'm not familiar with break.com's structure but I did notice a variation between links.
http://www.break.com/index/cant-hug-eve ... ix-2081131
http://www.break.com/cue-the-cuervo/e-h ... ts-2069887
Notice the /index/ in the first link.

Trying to use the bbcode on the first link results in no video being shown. Firebug reveals this error

Code: Select all

missing ) after argument list
sevenalive
Registered User
Posts: 437
Joined: Thu Feb 07, 2008 4:45 am

Re: [RC] Video BBCode 1.0.5

Post by sevenalive »

Seems like they changed it again. I updated it and it works for all videos that are not under info.break.com, just redownload and overwrite the video.php file.
Blazeflack
Registered User
Posts: 50
Joined: Sat May 16, 2009 2:00 pm

Re: [RC] Video BBCode 1.0.5

Post by Blazeflack »

I just tried with the updated video.php file and it didn't seem to do much.
I tested with the same link that gave one of my users problems earlier
http://www.break.com/index/cant-hug-eve ... ix-2081131
and the video still doesn't show up.

Looking at Firebug I still get this error

Code: Select all

missing ) after argument list
Do you have any idea about what might have gone wrong?

Thanks
sevenalive
Registered User
Posts: 437
Joined: Thu Feb 07, 2008 4:45 am

Re: [RC] Video BBCode 1.0.5

Post by sevenalive »

if you do the direct link:

video.php?link=http://www.break.com/index/cant-hug-eve ... ix-2081131

It works, but not in the post because of the video title. It get's hung up on "can't", because it isn't escaped.

Please download this test version and test with a bunch of videos from different sites, with and without a title with a aprostrophe character. I will do the same and if it doesn't break anything, I will update the main download.
Blazeflack
Registered User
Posts: 50
Joined: Sat May 16, 2009 2:00 pm

Re: [RC] Video BBCode 1.0.5

Post by Blazeflack »

Thanks, I will report back when I've had a chance to test it.

Edit: I tried a few sites and didn't run into any issues relating to the test version.
I did however notice that collegehumor vidoes don't seem to be parsed right. The video player loads, but every video link I tried gave a "Video Not Found" error inside the flash player. This is the case with both 1.0.5 and the test version.
Locked

Return to “[3.0.x] Abandoned MODs”