« Likes
Auto-embedding

Nao

  • Dadman with a boy
  • Posts: 16,079
Auto-embedding
« on May 6th, 2011, 07:31 PM »
Feature: Auto-embedding
Developer: Nao
Target: users
Status: 99% (completed. By its nature, the site list will need updates to keep up with the web's evolution.)
Comment:

Based on Aeva Lite, this is the only auto-embedding tool you'll ever need. (Feel free to disagree, but then again you're free to be stupid :niark:)
There's not much to be said... It's just there, it's enabled by default, it works great with 200+ sites, but most people will know it as "the thing that magically embeds my YouTube videos and Google Maps when I post their URLs." Oh, and yes, it also supports the recent youtu.be URLs.

Re: Auto-embedding
« Reply #16, on December 21st, 2013, 02:24 AM »
Quote from MrCat on December 18th, 2013, 10:40 PM
Hi.
I'm not sure exactly where to post this but here goes:

What I'd like to suggest is, when somebody attaches a photo to a post, that it automatically adds to a gallery album (maybe one selected in admin as 'attached' to the board).

Maybe this has already been thought of?
It's already here and running in Wedge. I can't remember using attachment in any of my posts here. I only attach my photos from media. To make achieve this, admin will have to disable the attachment function of the forum so files can only be attached for media.
eg. This post's image - http://wedge.org/pub/off/8109/just-hanging-out/ was automatically inserted form a created media file (while I was creating the post) - wedge.org/do/media/?sa=item;in=177
 

Re: Auto-embedding
« Reply #17, on December 21st, 2013, 07:06 PM »
Thanks for the input guys.

@Nao
The bug in AeMe I mentioned in my other question, is when a user edits a photo description that contains line breaks, they all show up as <br> in the editing box and have to be deleted and re-entered. That's in version 1.4
Re: Auto-embedding
« Reply #18, on February 16th, 2014, 11:17 PM »
Quote from MrCat on December 21st, 2013, 07:06 PM
The bug in AeMe I mentioned in my other question, is when a user edits a photo description that contains line breaks, they all show up as <br> in the editing box and have to be deleted and re-entered. That's in version 1.4
Hmmmm... well this is curious: I installed SMF with Aeva on localhost and that problem doesn't exist. It happens in my live forum all the time.
I figured it was strange that Nao would have overlooked such an obvious fault.
This suggests there is a server setting on my commercial host that is causing it. What could this be?

Re: Auto-embedding
« Reply #19, on February 16th, 2014, 11:42 PM »
I don't know.
I'm not even sure this bug still exists in Wedge, if anything.

You know, it's just a matter of calling, or not calling, a particular string transformation function, such as westr::safe, westr::htmlspecialchars, or something like nl2br...
Just need to reproduce, etc. I remember it happening before to me.

Maybe it's inconsistent for you because you're using a different browser..? Well, just a shot in the dark.

Re: Auto-embedding
« Reply #20, on February 17th, 2014, 01:25 AM »Last edited on February 17th, 2014, 05:01 AM
I just installed Wedge on the same server as my forum and Wedge does the same thing as AeMe in SMF:
Photo 1 - press edit = photo 2
Not sure what the difference is between my server and theirs, but I thought you may want to know about this :)

Same browser (Chrome) in all cases.

 Comment1.jpg - 51.94 kB, 809x214, viewed 161 times.

 Comment2.jpg - 81.58 kB, 809x415, viewed 166 times.


Re: Auto-embedding
« Reply #21, on February 17th, 2014, 01:34 PM »
Didn't you say it was in item descriptions..? This one's a comment...

Re: Auto-embedding
« Reply #22, on February 17th, 2014, 07:24 PM »
Quote from Nao on February 17th, 2014, 01:34 PM
Didn't you say it was in item descriptions..? This one's a comment...
Hey you're right - didn't I notice that. It happens in both descriptions and comments. Maybe there is a php config setting that is affecting htmlspecialchars, or whatever is used in the editing box.
Re: Auto-embedding
« Reply #23, on February 18th, 2014, 12:56 AM »
I don't expect you to spend time on this Nao as I know you're busy! I'm basically thinking out loud here. Sorry if I'm off topic also.
Now is not the time for bug finding in Wedge, but since this also exists in SMF with Aeva I figured I need to explore this a bit further...

I'm trying to find a pattern...? Anyone?

In Aeva this problem happens (to me anyway) in:
Descriptions and comments on commercial server.
Descriptions but NOT comments on local server.

In Wedge this happens in:
Comments but NOT descriptions on commercial server.
Comments but NOT descriptions on local server.

Three different browsers same behaviour.

I've tried examining the settings in phpinfo but don't really know what to look for.