Page 1 of 2

Auto Video embed

PostPosted: 15 Jan 2013, 11:56
by Mess
http://youtu.be/VObBd5v6jTY
Youtu.be links are still not working for me? Do you have it installed on this board?

Re: Auto Video embed

PostPosted: 15 Jan 2013, 15:20
by test
For me it works perfect. Also it works on testboard:
http://4seven.bplaced.net/forum/media/viewto ... 1808#p1808
Seems there is currently the youtu.be lnk mode active.

Re: Auto Video embed

PostPosted: 15 Jan 2013, 23:31
by 4seven
Mess wrote:http://youtu.be/VObBd5v6jTY
Youtu.be links are still not working for me? Do you have it installed on this board?

As the other user say. example http://youtu.be/VObBd5v6jTY works here
http://4seven.bplaced.net/forum/media/viewto ... 1814#p1814
check your install again with a fresh package of the mod and also check your settings in settings area of main files.

Re: Auto Video embed

PostPosted: 07 Mar 2013, 19:38
by cisco007
hey 4seven, i don't know if i should open up a new topic or not, but the question is this.
i have this mod, well i had the old .3 version and i updated everything works fine, but i added some more variables for example, since most resize img mods have way too many things to configure and they also touch the sig img which i don't like, i added my own variables to images with and without the IMG bbcode, and in the preview they work, but once i go to the post it doesn't work.
i added the same code to the auto_video_embed_view.php file and it doesn't work!
do you think you give me a hand?

example when using preview and [IMG] code it works

this is the code i used in the auto_video_embed_post.php:
Code: Select all
// Image  http://ranger.gamebanana.com/img/ss/srends/thm_17287.jpg
if (($image) && (strpos($preview_message, '//') !== false)){
$preview_message = preg_replace('#<img src="(.*?).(gif|jpe?g|png|bmp)" alt="' . $user->lang['IMAGE'] . '" \/>#is', '<a href="$1.$2" title="can you see this?" class="highslide" onclick="return hs.expand(this)"><img src="$1.$2" alt="{L_IMAGE}" style="width:25%; height:25%;" /></a>', $preview_message);}

which works fine in preview, but when i add the same code to the other file like so:
Code: Select all
// Image  http://ranger.gamebanana.com/img/ss/srends/thm_17287.jpg
if (($image) && (strpos($message, '//') !== false)){
$message = preg_replace('#<img src="(.*?).(gif|jpe?g|png|bmp)" alt="' . $user->lang['IMAGE'] . '" \/>#is', '<a href="$1.$2" title="can you see this?" class="highslide" onclick="return hs.expand(this)"><img src="$1.$2" alt="{L_IMAGE}" style="width:25%; height:25%;" /></a>', $message);}


even tried changing:
Code: Select all
alt="' . $user->lang['IMAGE'] . '" 


Code: Select all
alt="{L_IMAGE}"  


but still nothing!
any ideas?

Re: Auto Video embed

PostPosted: 07 Mar 2013, 21:40
by 4seven
This should give you an impulse..
viewtopic.php?f=12&t=124

Re: Auto Video embed

PostPosted: 07 Mar 2013, 22:02
by cisco007
that is just a for a posted image link without the [IMG] bbcode, i'll see if i can try to adapt it for such!
i'll keep you posted!

Re: Auto Video embed

PostPosted: 08 Mar 2013, 01:36
by cisco007
can't seem to get it working with the [IMG] tags, since one it's posted the source is this:
Code: Select all
<img src="http://highslide.com/images/thumbstrip01.jpg" alt="Imagen"

can't seem to figure out how to add that to the posting or to the auto_video_embed_view.php file!

test here:

http://www.phpbbmexico.com/viewtopic.ph ... p=649#p649

Re: Auto Video embed

PostPosted: 08 Mar 2013, 02:03
by 4seven
user->lang should work. Why the alt="" tag is important?
How is the exact html source-code syntax/output? Normally its rel. easy to adapt.

Re: Auto Video embed

PostPosted: 08 Mar 2013, 02:37
by cisco007
the alt is not important, i just figure i'd use it since i am testing it all out to see what works!
as far as the source well once I use the [IMG] tag like this:
Code: Select all
[img]http://highslide.com/images/thumbstrip01.jpg[/img]


looking at the source page using firefox web developer this is the output of the image using the [IMG] tag:
Code: Select all
<img src="http://highslide.com/images/thumbstrip01.jpg" alt="Imagen">


:oops: :?

Re: Auto Video embed

PostPosted: 13 Mar 2013, 23:01
by 4seven
try

Code: Select all
// Image  http://ranger.gamebanana.com/img/ss/srends/thm_17287.jpg
if (($image) && (strpos($message, '//') !== false)){
$message = preg_replace('#<img src="(.*?).(gif|jpe?g|png|bmp)"(.*?)\/>#is', '<a href="$1.$2" title="can you see this?" class="highslide" onclick="return hs.expand(this)"><img src="$1.$2"$3style="width:25%; height:25%;" /></a>', $message);}

for auto_video_embed_view.php.

Have you defined

Code: Select all
$image = true;

in the config-area of this file?