Auto Video embed

Mod Support

Moderators: BNa, Sekuro, 4seven

Auto Video embed

Postby Mess » 15 Jan 2013, 11:56

http://youtu.be/VObBd5v6jTY
Youtu.be links are still not working for me? Do you have it installed on this board?
Mess

Tiptop

Tiptop
 
Posts: 13
Joined: 12 Jul 2012, 18:46
 
Resolution: 1920x1080


Re: Auto Video embed

Postby test » 15 Jan 2013, 15:20

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.
User avatar
test

Tiptop

Tiptop
 
Posts: 22
Joined: 13 Sep 2008, 19:42
 
Resolution: 1600x900



Re: Auto Video embed

Postby 4seven » 15 Jan 2013, 23:31

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.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


Re: Auto Video embed

Postby cisco007 » 07 Mar 2013, 19:38

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?
cisco007

Tiptop

Tiptop
 
Posts: 6
Joined: 24 Aug 2012, 03:25
 
Resolution: 1920x1200


Re: Auto Video embed

Postby 4seven » 07 Mar 2013, 21:40

This should give you an impulse..
viewtopic.php?f=12&t=124
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


Re: Auto Video embed

Postby cisco007 » 07 Mar 2013, 22:02

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!
cisco007

Tiptop

Tiptop
 
Posts: 6
Joined: 24 Aug 2012, 03:25
 
Resolution: 1920x1200

Re: Auto Video embed

Postby cisco007 » 08 Mar 2013, 01:36

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
cisco007

Tiptop

Tiptop
 
Posts: 6
Joined: 24 Aug 2012, 03:25
 
Resolution: 1920x1200


Re: Auto Video embed

Postby 4seven » 08 Mar 2013, 02:03

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.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


Re: Auto Video embed

Postby cisco007 » 08 Mar 2013, 02:37

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: :?
cisco007

Tiptop

Tiptop
 
Posts: 6
Joined: 24 Aug 2012, 03:25
 
Resolution: 1920x1200


Re: Auto Video embed

Postby 4seven » 13 Mar 2013, 23:01

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?
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


Next

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron