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

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
Locked
User avatar
JoshyPHP
Code Contributor
Posts: 1122
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 »

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 BBCodes in 3.2+.
User avatar
Chrono
Registered User
Posts: 71
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 »

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: 172
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 »

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: 8
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 »

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: 172
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 »

@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: 1122
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 »

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 BBCodes in 3.2+.
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 »

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: 1122
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 »

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 BBCodes in 3.2+.
BioLogIn
Registered User
Posts: 172
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 »

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: 32
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 »

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: 1122
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 »

Only third party sites listed on the first page of this topic, yes.
I wrote the thing that does BBCodes in 3.2+.
elawrenc
Registered User
Posts: 130
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 »

Any chance you can get a code in there for flowplayer.org ?
User avatar
JoshyPHP
Code Contributor
Posts: 1122
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 »

It's not currently planned, no.
I wrote the thing that does BBCodes in 3.2+.
rxu
Extensions Development Team
Posts: 3203
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 »

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: 1122
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 »

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 BBCodes in 3.2+.
Locked

Return to “Abandoned Extensions”