- Edited
I just installed, seems I can only get it to work on youtube if I use the [media] tags but its working!
I just installed, seems I can only get it to work on youtube if I use the [media] tags but its working!
Also is there a way to have imgu links just display the image instead of having the imgur bar show up on top and bottom like this:
It would be sweet if we could just drop the imgur link in the post and have it show the picture only. Maybe if you click on it than it will bring you to the imgur site?
JoshyPHP Hello Joshy, I tried to apply your solution but I get this error:
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.Problem 1
- Installation request for s9e/flarum-ext-mediaembed 0.3.2 -> satisfiable by s9e/flarum-ext-mediaembed[0.3.2].
- s9e/flarum-ext-mediaembed 0.3.2 requires flarum/core 0.1.0-beta.3 -> satisfiable by flarum/core[0.1.x-dev, v0.1.0-beta.3, v0.1.0-beta.4, v0.1.0-beta.5, v0.1.0-beta.6, v0.1.0-beta.7, v0.1.0-beta.7.1] but these conflict with your requirements or minimum-stability.Installation failed, reverting ./composer.json to its original content.
-bash-4.2$ composer require s9e/flarum-ext-mediaembed:0.1.0
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.Problem 1
- The requested package s9e/flarum-ext-mediaembed 0.1.0 exists as s9e/flarum-ext-mediaembed[0.3.0, 0.3.1, 0.3.2, 1.0.0, dev-master] but these are rejected by your constraint.Installation failed, reverting ./composer.json to its original content.
-bash-4.2$ C
-bash-4.2$ composer require s9e/flarum-ext-mediaembed:0.1.0
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.Problem 1
- The requested package s9e/flarum-ext-mediaembed 0.1.0 exists as s9e/flarum-ext-mediaembed[0.3.0, 0.3.1, 0.3.2, 1.0.0, dev-master] but these are rejected by your constraint.Installation failed, reverting ./composer.json to its original content.
I use Flarum 0.1.0-beta.7
I really would like your help with this ?...Thank you very much in advance.
I don't know. Did you run composer require s9e/flarum-ext-mediaembed:*
?
I tried with this: composer require s9e/flarum-ext-mediaembed:0.1.0 (The version that I have of Flarum), but I tried too with the command that you say: composer require s9e/flarum-ext-mediaembed:*, and the error that I get is this:
-bash-4.2$ composer require s9e/flarum-ext-mediaembed:*
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- s9e/flarum-ext-mediaembed 1.0.0 requires flarum/core ^0.1.0-beta.8 -> satisfiable by flarum/core[0.1.x-dev] but these conflict with your requirements or minimum-stability.
- s9e/flarum-ext-mediaembed 0.3.2 requires flarum/core ^0.1.0-beta.3 -> satisfiable by flarum/core[0.1.x-dev, v0.1.0-beta.3, v0.1.0-beta.4, v0.1.0-beta.5, v0.1.0-beta.6, v0.1.0-beta.7, v0.1.0-beta.7.1] but these conflict with your requirements or minimum-stability.
- s9e/flarum-ext-mediaembed 0.3.1 requires flarum/core ^0.1.0-beta.3 -> satisfiable by flarum/core[0.1.x-dev, v0.1.0-beta.3, v0.1.0-beta.4, v0.1.0-beta.5, v0.1.0-beta.6, v0.1.0-beta.7, v0.1.0-beta.7.1] but these conflict with your requirements or minimum-stability.
- s9e/flarum-ext-mediaembed 0.3.0 requires flarum/core ^0.1.0-beta.3 -> satisfiable by flarum/core[0.1.x-dev, v0.1.0-beta.3, v0.1.0-beta.4, v0.1.0-beta.5, v0.1.0-beta.6, v0.1.0-beta.7, v0.1.0-beta.7.1] but these conflict with your requirements or minimum-stability.
- Installation request for s9e/flarum-ext-mediaembed * -> satisfiable by s9e/flarum-ext-mediaembed[0.3.0, 0.3.1, 0.3.2, 1.0.0].
Installation failed, reverting ./composer.json to its original content.
I'm doing something wrong?
Antonio are you running the command in the Flarum root folder?
jordanjay29 I feel so embarrassed, you're right, I didn't check if were the correct IP and I was connecting me via ssh to another of my sites where is not installed Flarum.
Now the extension is correctly installed. Thank you very much for your support ?
I want to use only the bbcode [media]
because i want direct links as they are and not embed them directly. Is possible deactivate the embeding of the direct links?
No, if you post a URL in plain text you let the software decide how to present it. If you specifically want to create a link, you can use markup, e.g. [url]https://www.youtube.com/watch?v=FlsCjmMhFmw[/url]
Installing the extension now should not affect posts that were submitted before it was installed. For new posts you'd need to create an extension that disables the MediaEmbed plugin at parsing time with $event->parser->disablePlugin('MediaEmbed')
.
Ok I found the solution!
Type: composer require s9e/flarum-ext-mediaembed:0.3.2
To the putty.
There's no user configuration for it, you'd need to program in PHP. If you want to post a link and not have it transformed, use explicit markup, e.g. [url]http://example.org[/url]
Hey, I try to found the code but cannot.
Please can you give a "class" name to the iframe?
This is good for us because we can customize it with borders and etc.
class=”mediaembed” or something..
Kryonoglou You can already select the relevant elements using the data-s9e-mediaembed
attribute, e.g.
[data-s9e-mediaembed]
{
border: solid 1px red;
}
ckubs If you want to write PHP for it, your best option is to fork the extension and just enable the sites you really want. https://s9etextformatter.readthedocs.io/Plugins/MediaEmbed/Synopsis/#example
Has anyone made it to work with Etherpad and/or Ethercalc? I guess the Iframe custom code should work, but maybe someone can share their code if they have done it already?