[ABD] Auto Video Embed v.0.0.3

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.
Locked
User avatar
Mess
Registered User
Posts: 985
Joined: Wed Jul 01, 2009 6:37 am
Name: Kim

Re: [DEV] Auto Video Embed v.0.0.2

Post by Mess »

No, sorry. Still posting as normal.
This is my current piece of code including the new edit:

Code: Select all

if (($youtube) && (strpos($message, '/watch?v=') !== false)){
$message = preg_replace('#<a class="postlink" href="http:\/\/(.*?).youtube.(.*?)\/watch\?v=(.*?)">(.*?)<\/a>#U', '<object type="application/x-shockwave-flash" style="width:700px; height:420px" data="http://$1.youtube.$2/v/$3&hl=de&fs=1&rel=0&hd=1"><param name="movie" value="http://$1.youtube.$2/v/$3&hl=de&fs=1&rel=0&hd=1" /><param name="allowfullscreen" value="true" /></object>', $message);}
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Auto Video Embed v.0.0.2

Post by 4_seven »

change given parts testwise to

Code: Select all

data="http://$1.youtube.$2/v/$3&fmt=22"><param name="movie" value="http://$1.youtube.$2/v/$3&fmt=22" />
or

Code: Select all

data="http://$1.youtube.$2/v/$3&fmt=22"><param name="movie" value="http://$1.youtube.$2/v/$3&fmt=22" />
and clear between each single test all board-, style- and browser-caches

note: a hd video only appears if one is present (uploaded) on youtube
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Mess
Registered User
Posts: 985
Joined: Wed Jul 01, 2009 6:37 am
Name: Kim

Re: [DEV] Auto Video Embed v.0.0.2

Post by Mess »

Still no luck. Thanks for trying to help though. :)
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Auto Video Embed v.0.0.2

Post by 4_seven »

after holidays i test it out myself and tell u the solution.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Mess
Registered User
Posts: 985
Joined: Wed Jul 01, 2009 6:37 am
Name: Kim

Re: [DEV] Auto Video Embed v.0.0.2

Post by Mess »

4_seven wrote:after holidays i test it out myself and tell u the solution.
Cool thanks, enjoy you're holiday. :)
User avatar
Mess
Registered User
Posts: 985
Joined: Wed Jul 01, 2009 6:37 am
Name: Kim

Re: [DEV] Auto Video Embed v.0.0.2

Post by Mess »

I don't understand why this isn't getting more feedback. Its one of the most user friendly features for my forum. It should be a standard phpBB feature in my opinion.
Mess wrote:Is it possible to setup the Youtube part so it automatically plays in HD?
Did you have a chance to look at this yet 4_seven?
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Auto Video Embed v.0.0.2

Post by 4_seven »

i take a look ~> tomorrow
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Auto Video Embed v.0.0.2

Post by 4_seven »

this works 100% for me (tested)

youtube with auto-hd and fullscreen option

demo (here with spoiler add-on Image)
http://4seven.kilu.de/phpbb3/viewtopic.php?p=1043#p1043

open

includes/auto_video_embed_post.php
includes/auto_video_embed_view.php

find (in both files 2 times)

Code: Select all

http://$1.youtube.$2/v/$3   
replace (in both files 2 times) with

Code: Select all

http://$1.youtube.$2/v/$3&hl=en&fs=1&rel=0&hd=1   
thats it
Current Mods | Mod Base | php(BB) programming | No help via PM
Tony Stark
Registered User
Posts: 516
Joined: Thu Apr 08, 2010 8:22 pm

Re: [DEV] Auto Video Embed v.0.0.2

Post by Tony Stark »

this works absolutely brilliantly! thank you! i'd love to know however if it's possible to get it to also work in my signature. i have all my signature permissions set to yes, but when i try pasting a video url into it, even though it works fine in a post, it won't do the same in my signature.
s7eve
Registered User
Posts: 10
Joined: Mon Jan 25, 2010 11:38 am
Location: Qld, Australia.
Contact:

Re: [DEV] Auto Video Embed v.0.0.2

Post by s7eve »

I'm using this and it works great, thank you. I have also added sounclick to it and I'll add other audio formats soon.

The only issue I am having is I have Primetime installed and it doesn't auto embed in my Primetime content. If I or someone else works out how to get it to work with Primetime content I'll post it here.
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Auto Video Embed v.0.0.2

Post by 4_seven »

Tony Stark wrote:this works absolutely brilliantly! thank you! i'd love to know however if it's possible to get it to also work in my signature. i have all my signature permissions set to yes, but when i try pasting a video url into it, even though it works fine in a post, it won't do the same in my signature.
this mod is not build for signatures. if more people ask for that, i take a look for future release.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Auto Video Embed v.0.0.2

Post by 4_seven »

s7eve wrote:I'm using this and it works great, thank you. I have also added sounclick to it and I'll add other audio formats soon.

The only issue I am having is I have Primetime installed and it doesn't auto embed in my Primetime content. If I or someone else works out how to get it to work with Primetime content I'll post it here.
what is primetime? have u links or infos? this mod is designed for showing on topic-page and post-preview.
Current Mods | Mod Base | php(BB) programming | No help via PM
s7eve
Registered User
Posts: 10
Joined: Mon Jan 25, 2010 11:38 am
Location: Qld, Australia.
Contact:

Re: [DEV] Auto Video Embed v.0.0.2

Post by s7eve »

phpBB Primetime is a mod that adds an advanced portal allowing custom pages, content, wiki and more with future plans for additional modules once 1.0.1 has been approved. http://www.mylatterdays.com/index.php?

At this stage there are still a few minor bugs but it has been a great addition to my board.

The problem is that the content sections of Primetime are handled by their own module so even though they are essentially just a hidden topic that has it's own unique template the module as it is does not work with this auto embed mod. All regular forum topics work as expected. Blitze the creator of phpBB Primetime is looking into it to see if he can get it to work in Primetime because I only have a very basic grasp of code. I have been trying to understand how Primetime parses the contents of post_text but it is much more complicated than viewtopic.php I'm most likely mistaken but I think at this stage auto video embed will not work in Primetime without modification to the existing code or additional code.

I understand this mod has only been designed for the viewtopic and post preview page but I need it to work with my content pages as well, I don't expect you to make this happen or this mod to provide any more than it does. Your mod is great and I thank you for creating it, it is my goal to use the mod you have created and get it to work with Primetime, I do need help to achieve this but I expect that help will more than likely come from phpBB Primetime support. Once that has been achieved it will be benificial to anyone who wishes to run the Primetime mod and have autoembed function in the Primetime content.

By all means if anyone wants to help contribute to the Primetime mod by assisting in getting auto embed to function in Primetime or contribute in any other way it would be greatly appreciated, Blitze is looking for more people to contribute in any way that they can.
Abdurrahman61
Registered User
Posts: 7
Joined: Sun Jan 25, 2009 8:06 pm

Re: [DEV] Auto Video Embed v.0.0.2

Post by Abdurrahman61 »

we also want to see this site GReat moD!!!
twitvid.com, youtube.com, metacafe.com, dailymotion.com, facebook.com, veoh.com, gamespot.com, vidiac.com, megavideo.com, vimeo.com, funnyordie.com, rutube.ru, keepbusy.net, comedycentral.com, tu.tv, godtube.com, myvideo.de, espn.com, tm-tube.com, mpora.com, gamevideos.1up.com, liveleak.com, singsnap.com, xfire.com, wegame.com, mtvmusic.com, collegehumor.com, sevenload.com, southparkstudios.com, ustream.tv, mlssoccer.com, youku.com, tudou.com
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Auto Video Embed v.0.0.2

Post by 4_seven »

You can expand this mod to every Portal.
Current Mods | Mod Base | php(BB) programming | No help via PM
Locked

Return to “[3.0.x] Abandoned MODs”

cron