None of my mods, wherever you find them, are abandoned.
All of them are in developement, even if i am not active on phpbb.com.

[RC] Auto Video Embed v.1.0.0 (update)

[DEV] 3.0.* Mod Base

[RC] Auto Video Embed v.1.0.0 (update)

Postby Sekuro » 02 Oct 2011, 20:47

Auto Video Embed

MOD-Title: Auto Video Embed
MOD-Version: 1.0.0
MOD-Author: 4seven

Credits: Marc Reichelt for EMFF-Player
Credits: Jeroen Wing for JW Player

Requests:
http://www.phpbb.com/community/viewtopi ... p=12129575
http://www.phpbb.com/community/viewtopi ... p=12135145
http://www.phpbb.com/community/viewtopi ... p=11879555
https://www.phpbb.de/community/viewtopi ... 0#p1166200

MOD-Description: This Mod makes it possible to embed videos from popular video-sites by simply posting a link

phpBB-Version: phpBB 3.0.x
phpBB-Languages: multilingual
phpBB-Styles: all Styles

Demo: http://4seven.bplaced.net/forum/media/viewto ... f=11&t=283

Image

Image

Current Download: v.1.0.0
Auto_Video_Embed_v.1.0.0.zip
(98.48 KiB) Downloaded 1484 times

Download: v.0.0.3
Auto_Video_Embed_v.0.0.3.zip
(97.96 KiB) Downloaded 1168 times

Download: v.0.0.2
Auto_Video_Embed_v.0.0.2.zip
(4.31 KiB) Downloaded 857 times

Features:
- insert portal-videos by just posting a link
- insert flv-videos and mp3 by just posting a link
- enable /disable video-sites
- easy install (only 3 edits)
- xhtml 1.0 strict

Current provided portals and modes:
- clipfish
- dailymotion
- facebook
- gametrailers
- googlevideo
- metacafe
- mixcloud
- myspace
- myvideo
- veoh
- vimeo
- yahoo
- youtube
- youtube_lnk // youtube with spoiler link
- youtube_new // supporting new youtu.be syntax
- youtube_new_lnk // youtu.be with spoiler link

Other provided formats:
- flv
- mp3

Syntax to Embed:
Code: Select all
    http://www.clipfish.de/video/3272443/darth-vader-tanzt
    http://www.dailymotion.com/video/xbf4y7_revenge-seoyeun-lee_creation
    http://www.myflvsite.com/video/yourchosenfile.flv
    http://de-de.facebook.com/video/video.php?v=396498528455
    http://www.gametrailers.com/video/jay-z-vs-dj-hero/62888
    http://video.google.com/videoplay?docid=-8246463980976635143
    http://www.metacafe.com/watch/4282595/new_peugeot
    http://www.mixcloud.com/alucidnation/eclectronica-christmas-special/
    http://www.mymusicsite.com/audio/yourchosenfile.mp3
    http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=4517474
    http://www.myvideo.de/watch/6735176/the_nanny_hehe_ur_geil_xDDDDDDDDDDDDDD
    http://www.veoh.com/browse/videos/category/movies_horror/watch/e9150
    http://www.vimeo.com/9325052
    http://video.yahoo.com/watch/6897444/17936899
    http://www.youtube.com/watch?v=TyLV4lxMc1g
    http://youtu.be/TyLV4lxMc1g


New in 1.0.0

Adding soundcloud support.

Gives the availability for all youtube link variants.
After updating it makes no difference anymore, if the link contains:

  • http or https
  • youtube.** or youtu.be
  • &feature=youtu.be or any &feature= variant
Also you will get the known link variant with spoiler of standard youtube embed display also on youtu.be mode.

New in 0.0.3

  • youtube_lnk option with hd default, spoiler and additional link
  • youtu.be option by request
  • some new providers, like facebook
  • flv and mp3 works with local and remote url
  • all codes work with or without www
  • some corrected providers

New in 0.0.2:
- fixing some missing xhtml 1.0 strict errors
- flv-player added (to insert flv by posting a flv-link)
for video-sites, that dont provide xhtml 1.0 strict object-syntax
demo:
http://4seven.bplaced.net/forum/media/viewto ... 1092#p1092
http://4seven.bplaced.net/forum/media/viewto ... 1093#p1093
- mp3-player added (to insert mp3 by posting a mp3-link)
demo: http://4seven.bplaced.net/forum/media/viewto ... 1094#p1094

fix #1 v.0.0.2 (in current package yet)
- now flv- and mp3-code work with prime-links in post-preview
- works without prime-links also

fix #2 v.0.0.2 (in current package yet)
- broken preview, if more than one video-link is added (fixed)
- broken preview, if a html-link is added after a video-link (fixed)
hint: add a html-link (without [url] tags) always after the video-link(s), not between (unfixed)

open
auto_video_embed_post.php

find all
Code: Select all
#U                                                


replace all with
Code: Select all
#is                                                

fix #3 for all, who have installed this snippet:
http://www.phpbb.com/kb/article/links-o ... w-windows/

Auto_Video_Embed_v.0.0.2_Special_Version.zip
(4.31 KiB) Downloaded 300 times

fix #4 for all, who have installed this or similar snippet with weird syntax:
http://www.phpbb.com/kb/article/links-o ... w-windows/

Auto_Video_Embed_v.0.0.2_Trichter_Version.zip
(4.19 KiB) Downloaded 450 times

Example to modify and transform a existing BBCode to Auto Video Embed
viewtopic.php?p=147#p147

Feature Requests:
- set mod off (per user setting > ucp) bcs. if user have low bandwidth: http://www.phpbb.com/community/viewtopi ... #p12320835
- optional link under video: http://www.phpbb.com/community/viewtopi ... #p12320835
Mod-Bot / Service-Team
User avatar
Sekuro

Tiptop

Tiptop
 
Posts: 241
Joined: 11 Feb 2008, 11:49
 
Resolution: 1440x900



[DEV] Auto Video Embed v.0.0.2 - Transform

Postby Sekuro » 02 Oct 2011, 20:49

Example to modify and transform a existing BBCode to Auto Video Embed



Instruction - collecting informations

The very important thing is to find the unique usable syntax of this bbcode

bbcode
Code: Select all
[TUTV]{TEXT}[/TUTV


replacement
Code: Select all
<object width="425" height="350"><param name="movie" value="http://tu.tv/tutvweb.swf?kpt={TEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://tu.tv/tutvweb.swf?kpt={TEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object


aha, here it is: {TEXT}

which also shows us the important part in html-replacement http://tu.tv/tutvweb.swf?kpt={TEXT}

nothing else matters at this time.

now we have to find out the important embed part.

there he is: http://tu.tv/tutvweb.swf?kpt=aHR0cDovL3d3dy50dS50di92aWRlb3Njb2RpL3QvZS90ZWxldHViYmllcy1wdXRvLmZsdg==&xtp=1025292

in this example the "real" browser-link is not usable (like in youtube), bcs. it contains nothing we can use to embed
Code: Select all
http://tu.tv/videos/teletubbies-puto


now we have all information we need ;-)



Instruction - name the portal-variable

first find in both files:
auto_video_embed_post.php
auto_video_embed_view.php

Code: Select all
$myvideo      = false


after add (bcs. of alphabetical-order)

Code: Select all
$tutv         = false




Instruction - the main code-transform

1. enter the given portal-variable ($tutv)
2. find a distinctive link part (except http://) which stands alone and have no interruption between (here we take tu.tv/tutvweb.swf?kpt=)
3. mask all /, & and ? with \ in '#search_part#' of preg_replace and transform {TEXT} with (.*?)
4. take the html-replacement to the , 'replace_part' in preg_replace and notice like (.*?) interact with its dual $1 ($2 if it interact with a second (.*?) etc.)

auto_video_embed_post.php
if (($tutv) && (strpos($preview_message, 'tu.tv/tutvweb.swf?kpt=') !== false)){
$preview_message = preg_replace('#<a class="postlink" href="http:\/\/tu.tv\/tutvweb.swf\?kpt=(.*?)">(.*?)<\/a>#is', '<object width="425" height="350"><param name="movie" value="http://tu.tv/tutvweb.swf?kpt=$1"></param><param name="wmode" value="transparent"></param><embed src="http://tu.tv/tutvweb.swf?kpt=$1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>', $preview_message);}


auto_video_embed_view.php
if (($tutv) && (strpos($message, 'tu.tv/tutvweb.swf?kpt=') !== false)){
$message = preg_replace('#<a class="postlink" href="http:\/\/tu.tv\/tutvweb.swf\?kpt=(.*?)">(.*?)<\/a>#U', '<object width="425" height="350"><param name="movie" value="http://tu.tv/tutvweb.swf?kpt=$1"></param><param name="wmode" value="transparent"></param><embed src="http://tu.tv/tutvweb.swf?kpt=$1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>', $message);}


the framework is (in brief exceptions) still the same

- follow the syntax in this example
- the '#search_part#' is still the same, except other link or embed-part.
- the part , 'replace_part' is the normal html-replacement (the difference is the transform from {TEXT} to $1 (if a (.*?) have the first position in '#search_part#')).
- take a look at the other codes in original-files (may youtube) where the url-link is directly usable to transform and learn a bit from those integrated "examples".
Mod-Bot / Service-Team
User avatar
Sekuro

Tiptop

Tiptop
 
Posts: 241
Joined: 11 Feb 2008, 11:49
 
Resolution: 1440x900



Re: [DEV] Auto Video Embed v.0.0.2

Postby Sekuro » 04 Jan 2012, 03:38

0.0.3 preview

  • youtube_lnk option with hd default, spoiler and additional link
  • youtu.be option by request
  • some new providers, like facebook
  • flv and mp3 works with local and remote url
  • all codes work with or without www
  • some corrected providers
Mod-Bot / Service-Team
User avatar
Sekuro

Tiptop

Tiptop
 
Posts: 241
Joined: 11 Feb 2008, 11:49
 
Resolution: 1440x900



Re: [DEV] Auto Video Embed v.0.0.3

Postby Sekuro » 11 Feb 2012, 00:16

v.0.0.3 released

Update Instruction (v.0.0.2 > v.0.0.3)

- Download 0.0.3 package
- Upload root/images/embed.gif > images/embed.gif
- Config and Upload

  • includes/auto_video_embed_view.php
  • includes/auto_video_embed_post.php
again
Mod-Bot / Service-Team
User avatar
Sekuro

Tiptop

Tiptop
 
Posts: 241
Joined: 11 Feb 2008, 11:49
 
Resolution: 1440x900



Re: [DEV] Auto Video Embed v.0.0.3 (update)

Postby Sekuro » 12 Feb 2012, 00:54

fix#1 for v.0.0.3

  • add new clipfish.de code (provider syntax changed + xhtml 1.0 strict)
  • elaborate js spoile call id on youtube_lnk mode to prevent double id on quoting

package is updated.

----------------------

to update download current package, config* and upload

  • includes/auto_video_embed_post.php
  • includes/auto_video_embed_view.php
again

*dont forget to set all provider to false, which are not needed
Mod-Bot / Service-Team
User avatar
Sekuro

Tiptop

Tiptop
 
Posts: 241
Joined: 11 Feb 2008, 11:49
 
Resolution: 1440x900



Re: [RC] Auto Video Embed v.0.0.3 (update)

Postby Sekuro » 17 Dec 2012, 00:57

v.1.0.0 update coming soon..

A little update, which gives the availability for all youtube link variants.
After updating two files it makes no difference anymore, if the link contains:

  • http or https
  • youtube.** or youtu.be
  • &feature=youtu.be or any &feature= variant
Also you will get the known link variant with spoiler of standard youtube embed display also on youtu.be mode.

Edit: Adding soundcloud support

Demo is updated.
Mod-Bot / Service-Team
User avatar
Sekuro

Tiptop

Tiptop
 
Posts: 241
Joined: 11 Feb 2008, 11:49
 
Resolution: 1440x900



Re: [RC] Auto Video Embed v.1.0.0 (update)

Postby Sekuro » 17 Dec 2012, 22:07

[RC] v.1.0.0. released.

See first post for further details.

    Update Instruction:

    Just load up new versions of:

    auto_video_embed_post.php
    auto_video_embed_view.php

Check up // ---------------- CONFIG --------------- Area for provider support.
Mod-Bot / Service-Team
User avatar
Sekuro

Tiptop

Tiptop
 
Posts: 241
Joined: 11 Feb 2008, 11:49
 
Resolution: 1440x900



Return to phpbb 3.0.* St@ff

Who is online

Users browsing this forum: No registered users and 1 guest

cron