Hey!! I'm trying to embed youtube vids using this extension but it's not working! i have the mediaembed extension activated in the FoF Formatting. Any common problems here? Thanks!!
FriendsOfFlarum Formatting
gabrilator make sure to clear the forum cache. When you create a new post with a youtube link, do you see the link in the final post or an empty area? Does it show the YouTube player in the reply preview when writing the reply or not? Can you share your php flarum info
output?
Is there a way to embed video but the link does not end in the file format like: https://sample-link.com/blahblah.mp4
. Instead, the link the link is like this (real url) > https://dl.buzzheavier.com/1776657733329453056
but it is a direct link to a video
Just wanted to mention that X (previously twitter) is starting to use x.com instead of twitter.com, so this needs to be updated in the plugin as I didn't see it changed on https://s9etextformatter.readthedocs.io/Plugins/MediaEmbed/Sites/
I think there is a bug using medium links. I created an issue on Github with details:
hrvoje_hr It's actually still use Twitter's base. As you can see here ([unknown]), all the links goes to Twitter. They just changed the branding.
tolgaaaltas but it's x.com link. My Flarum forum only embeds twitter.com links
- Edited
I'm not sure I follow who has an error where, but just to clarify, the version of fof/formatting
will have no impact on this. You should however check whether you are running the latest version of the s9e/textformatter
package, which is where the code was changed to allow x.com URLs.
I remember discussing this previously, maybe earlier in this thread, where we identified the specific version in which this was added.
When running a global composer update
, TextFormatter should get updated. If you only manually update this specific extension, it might not update its dependencies unless you use the -W
flag.
Don't forget to clear the forum cache after updating TextFormatter, otherwise you might have odd behavior where something works in the final post but not in the preview.
I've been going through the textformatter code but I haven't located the file that controls the JS rendering of the inserted media. It would be nice to enable asynchronous rendering. There are discussions with a lot of tweets inserted that pose a performance challenge if the Twitter embed is not loaded asynchronously.
Autoimage and Autovideo Not work.
Hello achedd, thanks for your interest in this extension. Unfortunately it's very hard for maintainers to do anything with this feedback. May I ask you to share some more details so we can get this straigned out? Please open a new issue on FriendsOfFlarum/formatting and provide the details requested in the template – thanks.
93ben This is something that is outside the control offof/formatting
. But I wouldn't be concerned anyways, those ULR's will most likely be redirected for many years to come to ensure backwards compatibility in cases such as this.
- Edited
Hi all, is it possible to use this pluging with php 8.3? It's grubling about the version when i try to install it.
MartinJD can you share the exact command you used along with the exact output it produces? Your php flarum info
will also be useful.
I don't see anything in the extension manifest that requires a specific PHP version. It doesn't even have any dependency at all.
If this is the first time you run Composer after having upgraded PHP, you might have other existing extensions that are incompatible. Try running composer update
- Edited
clarkwinkelmann
Flarum core: 1.8.9
PHP version: 8.3.6
MySQL version: 10.11.8-MariaDB-0ubuntu0.24.04.1
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, apcu, bcmath, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, intl, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, soap, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlrpc, xmlwriter, xsl, zip, Zend OPcache
+----------------------+---------+--------+
| Flarum Extensions | | |
+----------------------+---------+--------+
| ID | Version | Commit |
+----------------------+---------+--------+
| flarum-tags | v1.8.3 | |
| flarum-suspend | v1.8.4 | |
| flarum-subscriptions | v1.8.1 | |
| flarum-sticky | v1.8.2 | |
| flarum-statistics | v1.8.1 | |
| flarum-mentions | v1.8.5 | |
| flarum-markdown | v1.8.1 | |
| flarum-lock | v1.8.2 | |
| flarum-lang-english | v1.8.0 | |
| flarum-flags | v1.8.2 | |
| flarum-emoji | v1.8.1 | |
| flarum-bbcode | v1.8.0 | |
+----------------------+---------+--------+
- Edited
And here's composer grumbling when i try to install:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laminas/laminas-diactoros 2.8.0 requires php 7.3 8.0.0 8.1.0 -> your php version (8.3.6) does not satisfy that requirement.
- flarum/core v1.1.1 requires laminas/laminas-diactoros 2.4.1 -> satisfiable by laminas/laminas-diactoros[2.8.0].
- flarum/core is locked to version v1.1.1 and an update of this package was not requested.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
MartinJD try performing the Flarum upgrade instructions again https://docs.flarum.org/update
It seems like you have the latest version installed but the Composer state is not up to date.
clarkwinkelmann Thanks, yeah i had to run a composer update and it pulled all my non core plugins in at the correct version. Thanks for the help.