Area51 @ 4seven.de

Mod Base and Testarea
It is currently 23 Feb 2025, 19:09

All times are UTC + 1 hour




Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Auto Video embed
PostPosted: 15 Jan 2013, 11:56 
Offline
Tiptop
Tiptop

Joined: 12 Jul 2012, 18:46
Posts: 13
http://youtu.be/VObBd5v6jTY
Youtu.be links are still not working for me? Do you have it installed on this board?


Top
 Profile  
Reply with quote  
 Post subject: Re: Auto Video embed
PostPosted: 15 Jan 2013, 15:20 
Offline
Tiptop
Tiptop
User avatar

Joined: 13 Sep 2008, 19:42
Posts: 22
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Auto Video embed
PostPosted: 15 Jan 2013, 23:31 
Offline
Tiptop
Tiptop
User avatar

Joined: 20 Jun 2012, 16:55
Posts: 318
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Auto Video embed
PostPosted: 07 Mar 2013, 19:38 
Offline
Tiptop
Tiptop

Joined: 24 Aug 2012, 03:25
Posts: 6
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:
// 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:
// 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:
alt="' . $user->lang['IMAGE'] . '" 


Code:
alt="{L_IMAGE}"  


but still nothing!
any ideas?


Top
 Profile  
Reply with quote  
 Post subject: Re: Auto Video embed
PostPosted: 07 Mar 2013, 21:40 
Offline
Tiptop
Tiptop
User avatar

Joined: 20 Jun 2012, 16:55
Posts: 318
This should give you an impulse..
viewtopic.php?f=12&t=124

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


Top
 Profile  
Reply with quote  
 Post subject: Re: Auto Video embed
PostPosted: 07 Mar 2013, 22:02 
Offline
Tiptop
Tiptop

Joined: 24 Aug 2012, 03:25
Posts: 6
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!


Top
 Profile  
Reply with quote  
 Post subject: Re: Auto Video embed
PostPosted: 08 Mar 2013, 01:36 
Offline
Tiptop
Tiptop

Joined: 24 Aug 2012, 03:25
Posts: 6
can't seem to get it working with the [IMG] tags, since one it's posted the source is this:
Code:
<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


Top
 Profile  
Reply with quote  
 Post subject: Re: Auto Video embed
PostPosted: 08 Mar 2013, 02:03 
Offline
Tiptop
Tiptop
User avatar

Joined: 20 Jun 2012, 16:55
Posts: 318
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Auto Video embed
PostPosted: 08 Mar 2013, 02:37 
Offline
Tiptop
Tiptop

Joined: 24 Aug 2012, 03:25
Posts: 6
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:
[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:
<img src="http://highslide.com/images/thumbstrip01.jpg" alt="Imagen">


:oops: :?


Top
 Profile  
Reply with quote  
 Post subject: Re: Auto Video embed
PostPosted: 13 Mar 2013, 23:01 
Offline
Tiptop
Tiptop
User avatar

Joined: 20 Jun 2012, 16:55
Posts: 318
try

Code:
// 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:
$image = true;

in the config-area of this file?

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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
[ Time : 0.011s | 26 Queries | GZIP : Off ]