[BETA] s9e/mediaembed - Embed videos and third-party content without a single BBCode

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
JoshyPHP
Code Contributor
Posts: 632
Joined: Mon Jul 11, 2011 12:28 am

Re: [BETA] s9e/mediaembed - Embed videos and third-party content without a single BBCode

Post by JoshyPHP » Mon May 08, 2017 9:38 pm

No, it only embeds content from a predefined list of sites. You should look into custom BBCodes for that.
I wrote the thing that does the BBCodes in 3.2. Unless it broke yours, in which case it was somebody else with a similar name.

User avatar
Chrono
Registered User
Posts: 59
Joined: Fri Jul 12, 2002 2:52 am
Location: Chihuahua México
Name: Alfonso Camacho
Contact:

Re: [BETA] s9e/mediaembed - Embed videos and third-party content without a single BBCode

Post by Chrono » Mon May 08, 2017 10:00 pm

JoshyPHP wrote:
Mon May 08, 2017 9:38 pm
No, it only embeds content from a predefined list of sites. You should look into custom BBCodes for that.
thx for the reply :)

Cheers!
www.degeneracionx.com - Anime, Games & Nothing Else.
Anime and Games Hispanic Community (Spanish only)
Sorry for my poor english

BioLogIn
Registered User
Posts: 154
Joined: Sun Jan 06, 2008 10:51 am

Re: [BETA] s9e/mediaembed - Embed videos and third-party content without a single BBCode

Post by BioLogIn » Mon May 29, 2017 6:15 am

Hi JoshyPHP

Any chance you could improve Twitch support even further by adding videos (example: https://www.twitch.tv/videos/146669122) and / or clips (https://clips.twitch.tv/, example https://clips.twitch.tv/AcceptableCoope ... tTwitchRPG)?

Windows-Club
Registered User
Posts: 7
Joined: Wed Oct 14, 2015 6:14 am

Re: [BETA] s9e/mediaembed - Embed videos and third-party content without a single BBCode

Post by Windows-Club » Mon May 29, 2017 6:39 am

Sorry for my bad English. I have since the update 3.2 the problem the old Youtube videos are no longer displayed, but the same link in a new post is however

BioLogIn
Registered User
Posts: 154
Joined: Sun Jan 06, 2008 10:51 am

Re: [BETA] s9e/mediaembed - Embed videos and third-party content without a single BBCode

Post by BioLogIn » Mon May 29, 2017 8:32 am

@Windows-Club

You need to reparse all old posts. There is a CLI option reparser:reparse available during the update.

More info here:
https://area51.phpbb.com/docs/dev/32x/e ... t-reparser

User avatar
JoshyPHP
Code Contributor
Posts: 632
Joined: Mon Jul 11, 2011 12:28 am

Re: [BETA] s9e/mediaembed - Embed videos and third-party content without a single BBCode

Post by JoshyPHP » Mon May 29, 2017 5:53 pm

I've just published an update that supports the newer Twitch URLs. If you're on 3.2, however, they won't be supported until the dependencies are updated.

https://github.com/s9e/phpbb-ext-mediae ... 170529.zip
I wrote the thing that does the BBCodes in 3.2. Unless it broke yours, in which case it was somebody else with a similar name.

User avatar
kradsith
Registered User
Posts: 8
Joined: Thu Nov 27, 2008 3:23 pm

Re: [BETA] s9e/mediaembed - Embed videos and third-party content without a single BBCode

Post by kradsith » Tue May 30, 2017 7:01 pm

Would it be possible to have this extension post externally on a page. Like a splash page/ home page.

Since no BBcode is used, I am unsure how I would use a phpbb wrapper display the formatted thirdparty content. I can get the link to pop up. but not the images or text in the feed. Has anyone had any success with something like this?

User avatar
JoshyPHP
Code Contributor
Posts: 632
Joined: Mon Jul 11, 2011 12:28 am

Re: [BETA] s9e/mediaembed - Embed videos and third-party content without a single BBCode

Post by JoshyPHP » Tue May 30, 2017 7:14 pm

You do it the same way you would embed any other post. I assume there's some documentation about that, somewhere.

If you only want to transform URLs into embeddable HTML, you can use the library directly:

Code: Select all

use s9e\TextFormatter\Bundles\MediaPack;

echo MediaPack::render(MediaPack::parse('https://youtu.be/RByETwZAaHM'));
I wrote the thing that does the BBCodes in 3.2. Unless it broke yours, in which case it was somebody else with a similar name.

BioLogIn
Registered User
Posts: 154
Joined: Sun Jan 06, 2008 10:51 am

Re: [BETA] s9e/mediaembed - Embed videos and third-party content without a single BBCode

Post by BioLogIn » Sat Jun 03, 2017 5:06 pm

JoshyPHP wrote:
Mon May 29, 2017 5:53 pm
I've just published an update that supports the newer Twitch URLs. If you're on 3.2, however, they won't be supported until the dependencies are updated.

https://github.com/s9e/phpbb-ext-mediae ... 170529.zip
Thanks a lot! =)

gerand
Registered User
Posts: 20
Joined: Sun Jul 31, 2016 4:24 pm

Re: [BETA] s9e/mediaembed - Embed videos and third-party content without a single BBCode

Post by gerand » Sun Jun 11, 2017 11:15 pm

Hello, I inserted a url from mydomain.com/video.mp4 and it did not work! Does the extension only support videos from sites? Can not I insert my own video url? Does it work? What should I do?

Thank you!

User avatar
JoshyPHP
Code Contributor
Posts: 632
Joined: Mon Jul 11, 2011 12:28 am

Re: [BETA] s9e/mediaembed - Embed videos and third-party content without a single BBCode

Post by JoshyPHP » Mon Jun 12, 2017 4:10 am

Only third party sites listed on the first page of this topic, yes.
I wrote the thing that does the BBCodes in 3.2. Unless it broke yours, in which case it was somebody else with a similar name.

elawrenc
Registered User
Posts: 107
Joined: Thu Jul 21, 2011 2:41 pm

Re: [BETA] s9e/mediaembed - Embed videos and third-party content without a single BBCode

Post by elawrenc » Tue Jun 20, 2017 9:14 pm

Any chance you can get a code in there for flowplayer.org ?

User avatar
JoshyPHP
Code Contributor
Posts: 632
Joined: Mon Jul 11, 2011 12:28 am

Re: [BETA] s9e/mediaembed - Embed videos and third-party content without a single BBCode

Post by JoshyPHP » Tue Jun 20, 2017 9:17 pm

It's not currently planned, no.
I wrote the thing that does the BBCodes in 3.2. Unless it broke yours, in which case it was somebody else with a similar name.

rxu
Extensions Development Team
Posts: 2695
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: [BETA] s9e/mediaembed - Embed videos and third-party content without a single BBCode

Post by rxu » Wed Jun 21, 2017 5:47 pm

Inspired by this discussion https://www.phpbb.com/customise/db/exte ... pic/178971
Is there a possibility to configure the textformatter so that it won't parse media links without wrapping them by [media] tags?

User avatar
JoshyPHP
Code Contributor
Posts: 632
Joined: Mon Jul 11, 2011 12:28 am

Re: [BETA] s9e/mediaembed - Embed videos and third-party content without a single BBCode

Post by JoshyPHP » Wed Jun 21, 2017 6:12 pm

There's a setting used internally but it has to be set when the plugin's loaded. You'd have to use an extension that loads/configures the MediaEmbed plugin before this extension with something like that:

Code: Select all

$configurator->plugins->load('MediaEmbed', ['captureURLs' => false]);
Alternatively, I think it would be possible to disable the MediaEmbed plugin at parsing time. You'll still have access to the [media] BBCode but it won't try to capture URLs from the text.
I wrote the thing that does the BBCodes in 3.2. Unless it broke yours, in which case it was somebody else with a similar name.

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: dsaf, hewmac06, zorni and 24 guests