phpBB Media Embed PlugIn

Strange Behavior? Bug? - phpBB Media Embed PlugIn

Strange Behavior? Bug?

by JupiterGPL » Wed Jun 21, 2017 4:15 pm

I think that this Extension is causing some strange behavior.... Possibly a bug in it?

I just learned today that on my website, when users post a YouTube URL.... WITHOUT THE MEDIA TAG... The video is embedded as if you were using the MEDIA tag.

For instance: When testing this out today, I used the following text in my post.

Code: Select all

Test..

https://www.youtube.com/watch?v=fKPgxgrdocs
I did not use the MEDIA BBCode tag or any other BBCode. Yet as you can see, the video is still being embedded. Link to post: http://www.gopherpucklive.com/forum/vie ... ad#p810008

When I DISABLE this extension, the YouTube links behave like a normal link should. So at least for my site, it appears that this extension is embedding YouTube videos regardless if the MEDIA tag is being used.

Anyone else having this problem?
User avatar
JupiterGPL
Registered User
Posts: 131
Joined: Thu Jun 08, 2006 4:52 pm
Contact:

Re: Strange Behavior? Bug?

by rxu » Wed Jun 21, 2017 4:21 pm

JupiterGPL wrote: when users post a YouTube URL.... WITHOUT THE MEDIA TAG... The video is embedded as if you were using the MEDIA tag.
1st thing is that this extension doesn't perform an actual embed but just enables the functionality provided by phpBB built-in s9e/text-formatter 3rd-party library.
2nd thing is that such behavior is intended by the library mentioned.

(https://github.com/s9e/TextFormatter for support).
rxu
Extensions Development Team
Posts: 3711
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Contact:

Re: Strange Behavior? Bug?

by JupiterGPL » Wed Jun 21, 2017 4:40 pm

I am confused... YouTube urls should not embed themselves automatically without using the MEDIA tag... RIGHT?
User avatar
JupiterGPL
Registered User
Posts: 131
Joined: Thu Jun 08, 2006 4:52 pm
Contact:

Re: Strange Behavior? Bug?

by rxu » Wed Jun 21, 2017 4:43 pm

With this extension, they should. Probably you just don't need the functionality enabled by this.
rxu
Extensions Development Team
Posts: 3711
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Contact:

Re: Strange Behavior? Bug?

by JupiterGPL » Wed Jun 21, 2017 4:48 pm

I consider this a bug... If I am not using the MEDIA tag on a YouTube video, the video should NOT be embedded. It should display as a regular url link.
User avatar
JupiterGPL
Registered User
Posts: 131
Joined: Thu Jun 08, 2006 4:52 pm
Contact:

Re: Strange Behavior? Bug?

by rxu » Wed Jun 21, 2017 4:51 pm

Again, this is NOT A BUG. This is BY DESIGN. Just remove the extension if you don't need this behavior.
rxu
Extensions Development Team
Posts: 3711
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Contact:

Re: Strange Behavior? Bug?

by JupiterGPL » Wed Jun 21, 2017 4:54 pm

So a YouTube video should embed WITH and WITHOUT using the MEDIA tag? That's just ridiculous.
User avatar
JupiterGPL
Registered User
Posts: 131
Joined: Thu Jun 08, 2006 4:52 pm
Contact:

Re: Strange Behavior? Bug?

by DavidIQ » Wed Jun 21, 2017 5:33 pm

Maybe you missed this part of the description for this extension?
An official phpBB extension that allows video and audio content from lots of 3rd-party sites to be embedded in forum posts and PMs, using a [media] BBCode, or from simply posting a supported URL in plain text.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 18282
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: Strange Behavior? Bug?

by rxu » Sat Jun 24, 2017 6:43 pm

I think we're going to come up with the special ACP setting in the next version to prevent parsing raw URLs optionally.
rxu
Extensions Development Team
Posts: 3711
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Contact:

Re: Strange Behavior? Bug?

by MattF » Sat Jun 24, 2017 7:09 pm

We see the parsing of raw URLs as a feature of this extension... in fact it's a primary feature of this extension!

Using the media bbcode is the optional feature that is available for any reason admins may want that (for example they like having an obvious BBCode button presented to their users).

What's more, if user's do not want a media link to be parsed, they should use the url bbcode for those links (that's what it's for).

phpBB has always had a habit of treating raw URLs not encapsulated within the URL bbcode. By design, this extension does the same thing and treats raw URLs.

Admins who add this extension to their forum should do so because they want to replace boring old links (which lead users away from your site) with vibrant and interactive content that keeps users on your site and engaged with your site.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5859
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman
Contact: