tolgaaaltas but it's x.com link. My Flarum forum only embeds twitter.com links
FriendsOfFlarum Formatting
- 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.
Auto formatting image urls isn't working for me... Any ideas for troubleshooting?
I am using the richtext extension? But even switching it off doesn't affect the problem
Metus24 can you share an example of such an URL, and your php flarum info
output?
Some ideas: try clearing the cache after disabling rich text. Start an entirely new discussion to test afterwards.
How can we implement BlueSky embeding?
- Edited
It would be great to support BlueSky!
How can I disable twitter/x embeds, but keep everything else? An extensions or writing code is fine.
I found this in vendor/s9e/text-formatter/src/Configurator/Bundles/Forum.php
:
$sites = ['bandcamp', 'dailymotion', 'facebook', 'indiegogo', 'instagram', 'kickstarter', 'liveleak', 'soundcloud', 'twitch', 'twitter', 'vimeo', 'vine', 'wshh', 'youtube'];
foreach ($sites as $siteId) {
$configurator->MediaEmbed->add($siteId);
I probably shouldn't edit that file, I guess. I edited it anyway and tweets still render, so I don't know. What's the right way to configure this?
NateS use this extension instead if you only want to enable some sites in s9e MediaEmbed https://discuss.flarum.org/d/31404-selective-mediaembed
Make sure to disable MediaEmbed in FoF Formatting if you use both extensions.