[RC] Auto Video Embed v.1.0.0

Modifications maintained and supported by 4seven
Forum rules
This forum is moderated by 4seven!
User avatar
4seven
BBCoder III
BBCoder III
Posts: 124
Joined: 11 Mar 2010, 19:43

[RC] Auto Video Embed v.1.0.0

Post by 4seven »

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://www.4seven.de/forum/media/viewto ... f=11&t=283

Image

Image

Download: v.1.0.0 http://www.4seven.de/forum/6test/viewtopic.php?f=3&t=59

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
- soundcloud
- 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://soundcloud.com/forss/speech-craft-no-sleep-til-dawn-remix-by-forss 
    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
  • [url=http://www.4seven.de/forum/media/viewtopic.php?t=283&p=1043#p1043]youtube_lnk[/url] 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://www.4seven.de/forum/media/viewto ... 1092#p1092
http://www.4seven.de/forum/media/viewto ... 1093#p1093
- mp3-player added (to insert mp3 by posting a mp3-link)
demo: http://www.4seven.de/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: http://www.4seven.de/forum/6test/viewtopic.php?f=3&t=59
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: http://www.4seven.de/forum/6test/viewtopic.php?f=3&t=59
Example to modify and transform a existing BBCode to Auto Video Embed
http://www.4seven.de/forum/6test/viewto ... 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
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Pete
BBCoder II
BBCoder II
Posts: 25
Joined: 24 Mar 2010, 21:39

[DEV] Auto Video Embed v.0.0.3

Post by Pete »

Hello, the links under Feature Requests a "todo" for future release, or am I clicking on wrong links? :)
User avatar
4seven
BBCoder III
BBCoder III
Posts: 124
Joined: 11 Mar 2010, 19:43

[DEV] Auto Video Embed v.0.0.3

Post by 4seven »

Its a ToDo List.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Martin_K
BBCoder III
BBCoder III
Posts: 121
Joined: 02 Sep 2011, 11:13
BBCodes: 10
Favourite BBCode: textarea
Favourite MOD: Newsletter Add on
Location: London, UK
Contact:

[DEV] Auto Video Embed v.0.0.3

Post by Martin_K »

Great Mod, thanks, running on my forum fine for the main video sites (mainly youtube). Is there any way to extract the video title and place that up there in the link for youtube?

Also if I want to change the behaviour back to v.0.0.2 how to do this (just show the video on the page, no link, no button)?
User avatar
4seven
BBCoder III
BBCoder III
Posts: 124
Joined: 11 Mar 2010, 19:43

[DEV] Auto Video Embed v.0.0.3

Post by 4seven »

Martin_K wrote:Great Mod, thanks, running on my forum fine for the main video sites (mainly youtube). Is there any way to extract the video title and place that up there in the link for youtube?
Must see if this is possible without making much site-load.
Martin_K wrote:Also if I want to change the behaviour back to v.0.0.2 how to do this (just show the video on the page, no link, no button)?
This mode is switchable in v.0.0.3. Read this topic to activate this setting:
http://www.4seven.de/forum/6test/viewto ... ?f=2&t=231
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Martin_K
BBCoder III
BBCoder III
Posts: 121
Joined: 02 Sep 2011, 11:13
BBCodes: 10
Favourite BBCode: textarea
Favourite MOD: Newsletter Add on
Location: London, UK
Contact:

[DEV] Auto Video Embed v.0.0.3

Post by Martin_K »

Thanks 4seven. I worked out the mode switching, and so can manage without the video title.
User avatar
4seven
BBCoder III
BBCoder III
Posts: 124
Joined: 11 Mar 2010, 19:43

[RC] Auto Video Embed v.0.0.3

Post by 4seven »

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.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven
BBCoder III
BBCoder III
Posts: 124
Joined: 11 Mar 2010, 19:43

[RC] Auto Video Embed v.1.0.0

Post by 4seven »

[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 in both files for provider support.
Current Mods | Mod Base | php(BB) programming | No help via PM
iamthestreets
BBCoder II
BBCoder II
Posts: 10
Joined: 27 Apr 2012, 01:42
BBCodes: 0

[RC] Auto Video Embed v.1.0.0

Post by iamthestreets »

Can you use this feature with other bbcodes such as images, etc?
User avatar
4seven
BBCoder III
BBCoder III
Posts: 124
Joined: 11 Mar 2010, 19:43

[RC] Auto Video Embed v.1.0.0

Post by 4seven »

Current Mods | Mod Base | php(BB) programming | No help via PM
Locked