FriendsOfFlarum Formatting
How can i add Vero.co support on this extension?
tolgaaaltas You cannot add it to this extension. This extension only enables already existing plugins. However, you can add vero.co support (I'm guessing for MediaEmbed ?) as is described @ https://s9etextformatter.readthedocs.io/Plugins/MediaEmbed/Add_custom/.
However, if you need help with that, as it'll require coding, please create a different discussion.
datitisev Thank you for reply, i will look at that guide.
- Edited
Idk what's wrong but i can't automatically turns image links into images with this extension.
PHP version: 7.2.19-0ubuntu0.18.04.2
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, Reflection, SPL, sodium, session, standard, mysqlnd, PDO, xml, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, i
conv, intl, json, exif, mysqli, pdo_mysql, Phar, posix, pspell, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Zend OPcache
+----------------------------------+-----------------+--------+
| Flarum Extensions | | |
+----------------------------------+-----------------+--------+
| ID | Version | Commit |
+----------------------------------+-----------------+--------+
| flarum-bbcode | v0.1.0-beta.8 | |
| flarum-emoji | v0.1.0-beta.8 | |
| flarum-flags | v0.1.0-beta.9 | |
| flarum-lock | v0.1.0-beta.9 | |
| flarum-markdown | v0.1.0-beta.9 | |
| flarum-subscriptions | v0.1.0-beta.9 | |
| flarum-suspend | v0.1.0-beta.9 | |
| flarum-tags | v0.1.0-beta.9 | |
| flagrow-upload | 0.7.1 | |
| fof-links | 0.2.1 | |
| fof-pages | 0.2.7 | |
| fof-formatting | 0.1.2 | |
| flarum-pusher | v0.1.0-beta.9 | |
| kvothe-keyboard-shortcuts | v0.1.0 | |
| fof-user-bio | 0.1.2 | |
| flarum-lang-english | v0.1.0-beta.9 | |
| fof-transliterator | 0.1.1 | |
| flarum-statistics | v0.1.0-beta.9 | |
| reflar-webhooks | 0.1.7 | |
| migratetoflarum-canonical | 0.1.0 | |
| isaced-email-verification-switch | 0.1.3 | |
| reflar-nightmode | 0.2.0 | |
| v17development-seo | 1.0.2 | |
| flagrow-sitemap | 0.2.0 | |
| reflar-doorman | 0.1.4 | |
| fof-polls | 0.1.1 | |
| flarum-likes | v0.1.0-beta.9 | |
| flarum-mentions | v0.1.0-beta.9 | |
| amaurycarrade-syndication | v0.2.0 | |
| tolgaaaltas-turkish | 0.1.10.7 | |
| flagrow-html-errors | 0.2.0 | |
| fof-merge-discussions | 0.3.1 | |
| fof-split | 0.4.3 | |
| fof-ignore-users | 0.1.4 | |
| fof-drafts | 0.1.3 | |
| fof-socialprofile | 0.1.1 | |
| madraka-lang-turkish | v0.1.0-beta.8.1 | |
| jordanjay29-summaries | 0.3.1 | |
| noriods-auto-more | 0.3.0 | |
| fof-secure-https | v0.1.0 | |
| squeevee-fancybox | 0.2-beta | |
+----------------------------------+-----------------+--------+Next Symfony\Component\Translation\Exception\InvalidResourceException: Error parsing YAML, invalid file "/home/zincirsiz/web/zincirsiz.net/public_html/vendor/reflar/doorman/resources/locale/tr.yml" in /home/zincirsiz/web/zincirsiz.net/public_html/vendor/symfony/translation/Loader/YamlFileLoader.php:50
Stack trace:
#0 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/symfony/translation/Loader/FileLoader.php(36): Symfony\Component\Translation\Loader\YamlFileLoader->loadResource('/home/zincirsiz...')
#1 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Locale/PrefixedYamlFileLoader.php(23): Symfony\Component\Translation\Loader\FileLoader->load('/home/zincirsiz...', 'tr', 'messages')
#2 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/symfony/translation/Translator.php(381): Flarum\Locale\PrefixedYamlFileLoader->load(Array, 'tr', 'messages')
#3 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/symfony/translation/Translator.php(277): Symfony\Component\Translation\Translator->doLoadCatalogue('tr')
#4 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/symfony/translation/Translator.php(314): Symfony\Component\Translation\Translator->initializeCatalogue('tr')
#5 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/symfony/translation/Translator.php(299): Symfony\Component\Translation\Translator->dumpCatalogue('tr', Object(Symfony\Component\Config\ConfigCache))
#6 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/symfony/config/ConfigCacheFactory.php(46): Symfony\Component\Translation\Translator->Symfony\Component\Translation{closure}(Object(Symfony\Component\Config\ConfigCache))
#7 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/symfony/translation/Translator.php(300): Symfony\Component\Config\ConfigCacheFactory->cache('/home/zincirsiz...', Object(Closure))
#8 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/symfony/translation/Translator.php(265): Symfony\Component\Translation\Translator->initializeCacheCatalogue('tr')
#9 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/symfony/translation/Translator.php(241): Symfony\Component\Translation\Translator->loadCatalogue('tr')
#10 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Locale/Translator.php(35): Symfony\Component\Translation\Translator->getCatalogue('tr')
#11 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/symfony/translation/Translator.php(198): Flarum\Locale\Translator->getCatalogue('tr')
#12 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Api/Serializer/GroupSerializer.php(66): Symfony\Component\Translation\Translator->trans('core.group.admi...')
#13 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Api/Serializer/GroupSerializer.php(53): Flarum\Api\Serializer\GroupSerializer->translateGroupName('Admin')
#14 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Api/Serializer/AbstractSerializer.php(86): Flarum\Api\Serializer\GroupSerializer->getDefaultAttributes(Object(Flarum\Group\Group))
#15 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/tobscure/json-api/src/Resource.php(169): Flarum\Api\Serializer\AbstractSerializer->getAttributes(Object(Flarum\Group\Group), NULL)
#16 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/tobscure/json-api/src/Resource.php(75): Tobscure\JsonApi\Resource->getAttributes()
#17 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/tobscure/json-api/src/Document.php(187): Tobscure\JsonApi\Resource->toArray()
#18 [internal function]: Tobscure\JsonApi\Document->Tobscure\JsonApi{closure}(Object(Tobscure\JsonApi\Resource))
#19 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/tobscure/json-api/src/Document.php(188): array_map(Object(Closure), Array)
#20 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/tobscure/json-api/src/Document.php(224): Tobscure\JsonApi\Document->toArray()
#21 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Api/JsonApiResponse.php(29): Tobscure\JsonApi\Document->jsonSerialize()
#22 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(113): Flarum\Api\JsonApiResponse->__construct(Object(Tobscure\JsonApi\Document))
#23 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Api/Client.php(71): Flarum\Api\Controller\AbstractSerializeController->handle(Object(Zend\Diactoros\ServerRequest))
#24 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Frontend/Frontend.php(76): Flarum\Api\Client->send(Object(Flarum\Api\Controller\ShowForumController), Object(Flarum\User\User))
#25 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Frontend/Frontend.php(53): Flarum\Frontend\Frontend->getForumDocument(Object(Zend\Diactoros\ServerRequest))
#26 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Frontend/Controller.php(34): Flarum\Frontend\Frontend->document(Object(Zend\Diactoros\ServerRequest))
#27 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Http/RouteHandlerFactory.php(40): Flarum\Frontend\Controller->handle(Object(Zend\Diactoros\ServerRequest))
#28 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(67): Flarum\Http\RouteHandlerFactory->Flarum\Http{closure}(Object(Zend\Diactoros\ServerRequest), Array)
#29 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\Http\Middleware\DispatchRoute->process(Object(Zend\Diactoros\ServerRequest), Object(Closure))
#30 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flagrow/html-errors/src/Middlewares/HandleErrors.php(18): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#31 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-stratigility/src/Next.php(60): Flagrow\HtmlErrors\Middlewares\HandleErrors->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#32 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/fof/secure-https/src/Middlewares/ContentSecurityPolicyMiddleware.php(21): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#33 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-stratigility/src/Next.php(60): FoF\SecureHttps\Middlewares\ContentSecurityPolicyMiddleware->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#34 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/migratetoflarum/canonical/src/Middlewares/CanonicalRedirectMiddleware.php(46): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#35 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-stratigility/src/Next.php(60): MigrateToFlarum\Canonical\Middlewares\CanonicalRedirectMiddleware->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#36 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Http/Middleware/ShareErrorsFromSession.php(58): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#37 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\Http\Middleware\ShareErrorsFromSession->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#38 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#39 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\Http\Middleware\SetLocale->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#40 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(25): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#41 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\Http\Middleware\CheckCsrfToken->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#42 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(34): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#43 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\Http\Middleware\AuthenticateWithSession->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#44 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#45 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\Http\Middleware\RememberFromCookie->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#46 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Http/Middleware/StartSession.php(62): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#47 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\Http\Middleware\StartSession->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#48 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Http/Middleware/CollectGarbage.php(48): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#49 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\Http\Middleware\CollectGarbage->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#50 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(29): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#51 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\Http\Middleware\ParseJsonBody->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#52 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Http/Middleware/HandleErrorsWithWhoops.php(43): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#53 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\Http\Middleware\HandleErrorsWithWhoops->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#54 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(83): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#55 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/middlewares/request-handler/src/RequestHandler.php(84): Zend\Stratigility\MiddlewarePipe->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#56 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-stratigility/src/Next.php(60): Middlewares\RequestHandler->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#57 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#58 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-stratigility/src/Next.php(60): Middlewares\BasePathRouter->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#59 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-stratigility/src/Middleware/OriginalMessages.php(41): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#60 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-stratigility/src/Next.php(60): Zend\Stratigility\Middleware\OriginalMessages->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#61 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/middlewares/base-path/src/BasePath.php(53): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#62 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-stratigility/src/Next.php(60): Middlewares\BasePath->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#63 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(83): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#64 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(72): Zend\Stratigility\MiddlewarePipe->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\EmptyPipelineHandler))
#65 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/zendframework/zend-httphandlerrunner/src/RequestHandlerRunner.php(95): Zend\Stratigility\MiddlewarePipe->handle(Object(Zend\Diactoros\ServerRequest))
#66 /home/zincirsiz/web/zincirsiz.net/public_html/vendor/flarum/core/src/Http/Server.php(46): Zend\HttpHandlerRunner\RequestHandlerRunner->run()
#67 /home/zincirsiz/web/zincirsiz.net/public_html/public/index.php(22): Flarum\Http\Server->listen()
#68 {main}
P.S. Other features works well.
tolgaaaltas A few things:
- Autoimage only works with a few specific file extensions
- This extension simply enables existing formatter plugins, it does not create them
- Sometimes changes only apply after saving posts, and other times they don't apply at all
even after clearing the cache multiple times
- That exception is not related to formatting, but rather reflar/doorman.
Hello everyone, I am running BETA 9 on PHP 7.3 and I am struggling to get embedded auto reproduction running.
I would like the following to be working:
- autoimage (for external urls being posted)
- embedded autovideo
- embedded autoaudio
After installing FoF/formatting, the extension appears in bazaar, however, there is no further option for configuration.
I am unable to find the toggle options posted in this thread!
Where am I supposed to find those options?
There is no tab within the admin dashboard that allows further configuration...
Best regards
- Edited
datitisev
Thank you for your response.
I found the gear icon in the admin dashboard that would open the configuration, after clearing the cache it finally worked.
The 3 dots I found in Bazaar on FoF Formatting would only offer disabling/uninstalling it.
I am still working on enabling direct audio urls (e.g.: http://www.largesound.com/ashborytour/sound/brobob.mp3) , but I guess that would require some major extension/plugin
Hi guys,
Little question regarding the mediaembed function.
My forum is full french and Facebook are integrated in english (button, date, translation, etc...)
Is there any way to simply adapt the language ? according the forum language may be ?
Thanks for your answers.
ComUneInfo You'd most likely have to modify the MediaEmbed plugin... we don't code them, just enable them. You can probably edit the embeds, not sure how you'd make every site your locale though.
- Edited
It seems that the plugin call an external link to generate the frame content:
https://s9e.github.io/iframe/2/facebook.min.html#{@type}{@id} (Git) then this page call the us version of Facebook components: //connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5
I found it in CachedDefinitionCollection.php:
'facebook'=>[
'attributes'=>[],
'example'=>[
'https://www.facebook.com/FacebookDevelopers/posts/10151471074398553',
'https://www.facebook.com/video/video.php?v=10150451523596807',
'https://www.facebook.com/photo.php?fbid=10152476416772631',
'https://www.facebook.com/ign/videos/10153762113196633/',
'https://www.facebook.com/southamptonfc/videos/vb.220396037973624/1357764664236750/'
],
'extract'=>[
'@/(?!(?:apps|developers|graph)\\.)[-\\w.]*facebook\\.com/(?:[/\\w]+/permalink|(?!pages/|groups/).*?)(?:/|fbid=|\\?v=)(?\'id\'\\d+)(?=$|[/?&#])@',
'@facebook\\.com/(?\'user\'\\w+)/(?\'type\'post|video)s?/@',
'@facebook\\.com/video/(?\'type\'post|video)\\.php@'
],
'homepage'=>'https://www.facebook.com/',
'host'=>['facebook.com'],
'iframe'=>[
'data-s9e-livepreview-ignore-attrs'=>'style',
'onload'=>'var c=new MessageChannel;c.port1.onmessage=function(e){{style.height=e.data+\'px\'}};contentWindow.postMessage(\'s9e:init\',\'https://s9e.github.io\',[c.port2])',
'src'=>'https://s9e.github.io/iframe/2/facebook.min.html#{@type}{@id}'
],
'name'=>'Facebook',
'scrape'=>[],
'tags'=>['social']
],
The fact is that this page is common for all those who use the plugin, may be i can try to create my own iframe page and change link in CachedDefinitionCollection.php
The only evolution i can see is to deploy frame pages on the package instead of a public website, it will be more customizable but maybe it's like that for a specific reason i don't know.
It works.
I duplicate and hosted my own page with the URL locale modified for fr_FR.
But it's not clean to modify plugin directly.
At next update, shazam !
I'm not developper, so i have questions:
- How to make it adaptive ? A new option on the plugin ?
- Value in db is stored in short format (fr), facebook must be called in full locale format (fr_FR), how to deal with that ?
- Moving public pages as local pages with a generic way to define locale values on call ? Good solution ? Performance ?
All this is just a reflexion not a request
Did someone had the same need ?
ComUneInfo You are the first person to have requested this, I doubt you are the only one that needs this though. Issue with this is that to make it extensible, the extension would extremely increase in complexity, so it is probably best that a different extension is made to extend MediaEmbed.
datitisev I agree.
Do you think i can simply try an approach trough extend.php to override this specific value ?
ComUneInfo Not sure, sorry :/. I don't know TextFormatter well enough for that.
ComUneInfo The code you have to modify is in a separate web page so whatever you do you'd have to host your own copy of the page to do it.
ComUneInfo The only evolution i can see is to deploy frame pages on the package instead of a public website, it will be more customizable but maybe it's like that for a specific reason i don't know.
As the author/maintainer of the library/pages involved I can give you the real reasons:
- It's infinitely easier both for me and for the library's consumers to have those pages hosted somewhere public rather than bundled with the library as some sort of HTML assets.
- Hosting the iframes on a different domain than the page that displays them makes them act as a sandbox. The third party JavaScript that gets embedded on the
s9e.github.io
domain cannot interact with your page.
Anyway, I've just updated the Facebook iframe on GitHub to add some support for locales. If your browser announces that it prefers pages in French then the Facebook interface should appear in French. It should be noted that it may not work for all languages because there's a difference between the browser's configuration and the kind of value Facebook expects but it should work for most. Otherwise, it should default to en_US. For now I consider this feature experimental but if nobody reports any issues then it'll become permanent.
JoshyPHP Thanks, i was sure there is reason for, your explaination is pretty clear.
I also have to thanks you again for this update.
I spend few minutes after reading your post to get back the s9e extension back to normal and test it (so excited).
On my side and as expected it works for French language, hoping other languages to be tested with this result.
This little update is a great thing to get flarum ans your plugin usable in most of languages and be more popular.
Great job, thanks again for this !
- Edited
Hello, could anybody help me extending flarum's mediaembed to google maps ? => https://discuss.flarum.org/d/21232-embedding-a-google-map