Page 13 of 19

Re: [DEV] Auto Video Embed v.0.0.2

Posted: Fri Jun 25, 2010 10:40 am
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);}

Re: [DEV] Auto Video Embed v.0.0.2

Posted: Fri Jun 25, 2010 1:00 pm
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

Re: [DEV] Auto Video Embed v.0.0.2

Posted: Sat Jun 26, 2010 10:32 am
by Mess
Still no luck. Thanks for trying to help though. :)

Re: [DEV] Auto Video Embed v.0.0.2

Posted: Sat Jun 26, 2010 7:26 pm
by 4_seven
after holidays i test it out myself and tell u the solution.

Re: [DEV] Auto Video Embed v.0.0.2

Posted: Sun Jun 27, 2010 11:04 am
by Mess
4_seven wrote:after holidays i test it out myself and tell u the solution.
Cool thanks, enjoy you're holiday. :)

Re: [DEV] Auto Video Embed v.0.0.2

Posted: Tue Nov 02, 2010 7:57 am
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?

Re: [DEV] Auto Video Embed v.0.0.2

Posted: Tue Nov 02, 2010 12:28 pm
by 4_seven
i take a look ~> tomorrow

Re: [DEV] Auto Video Embed v.0.0.2

Posted: Tue Nov 02, 2010 12:41 pm
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

Re: [DEV] Auto Video Embed v.0.0.2

Posted: Tue Nov 16, 2010 5:52 am
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.

Re: [DEV] Auto Video Embed v.0.0.2

Posted: Tue Nov 16, 2010 6:23 am
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.

Re: [DEV] Auto Video Embed v.0.0.2

Posted: Tue Nov 16, 2010 3:10 pm
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.

Re: [DEV] Auto Video Embed v.0.0.2

Posted: Tue Nov 16, 2010 3:12 pm
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.

Re: [DEV] Auto Video Embed v.0.0.2

Posted: Tue Nov 16, 2010 11:05 pm
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.

Re: [DEV] Auto Video Embed v.0.0.2

Posted: Sun Dec 12, 2010 5:05 pm
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

Re: [DEV] Auto Video Embed v.0.0.2

Posted: Sun Dec 12, 2010 5:20 pm
by 4_seven
You can expand this mod to every Portal.