IanM 0.3.1 Update settings modal, integrate with new admin UI Requires Flarum beta 15+ Updating composer require fof/formatting:"*" php flarum cache:clear
ScottBeeson Why isn't there padding between columns? | Task | Status | Notes | | :- | :- | :- | | Install tables plugin for forums | done | | | set up repo | done | | | Figure out how to put spaces between columns in these tables | frustrated | seriously why |
luceos ScottBeeson you mean lines or dividers? You can easily give some markup to those tables by adding some styling in the admin area? Or am I missing something?
ScottBeeson I'm talking about padding in the rendered table. See the screenshot? No space (padding) between tables|frustrated|seriously
Pollux ScottBeeson Elements of a table are wrapped in an TD element. If you want some padding, you can do that forum wide via a styling rule like that: .CommentPost td { padding: 4px 8px; } This will apply 2 * 8 px between elements horizontally and 2 *4 px vertically.
kris88 Can we embed a pdf to display in a post? I have been reading several posts about this and it confused me out and several of them are about 4 years old and hence asking. Say we have a .pdf file either as attachment or just a URL, how do we show it up as an embedded item within the post so viewers can ready through / view the file without downloading it?
clarkwinkelmann kris88 you have 3 options: Make a custom extension, for example with a custom bbcode Add a template for TextFormatter's MediaEmbed feature. You will need an iframe-based solution to render the PDF, either self-hosted or remote Modify an extension like fof/upload to add previews for uploaded files There is no ready to use solution at this time.
kris88 clarkwinkelmann thanks... I know that we can use an iframe with google docs pdf viewer in a HTML page. Would you be able to point me to how to create a template for TextFormatter's MediaEmbed feature?
iPurpl3x I found an issue that is not directly related to the code of this extension but with s9e/TextFormatter itself. I opened this issue to describe it. I tried to fix it in a local clone but I was not successful. @JoshyPHP could you maybe take a look at this ? This looks pretty ugly on our production instance...
Amarok iPurpl3x have exactly the same problem on all forums I use in the CSS code I deactivate 2 little padding / margin and seems to resolve this problem
iPurpl3x Amarok and seems to resolve this problem How can you resolve this ? Using the DevTools ok, but you cannot write code to change the CSS of what is inside of the iframe ... The browser won't let you as the does not respect CORS.
clarkwinkelmann [deleted] you can learn how to create custom MediaEmbed sites here https://s9etextformatter.readthedocs.io/Plugins/MediaEmbed/Add_custom/ You then need to use the Extend\Formatter extender in Flarum to register a callback with access to the $configurator object. There is no extension allowing arbitrary HTML injection at this time.
clarkwinkelmann maruco see clarkwinkelmann I don't think we have a full example. Maybe there's one higher in the discussion.
Ffuser1 When users upload videos that the pixels is wider than mobile screen. The video is stretched that one needs to pan the screen. Is there a way I can make reduce the video to the resolution of the screen.
Ffuser1 [deleted] please help with the custom CSS that can do that. Or at least on how to access the element with LESS
Ffuser1 Ffuser1 got a fix from https://discuss.flarum.org/d/21696-css-tweaks-fixes-hacks-many-for-ios Thanks @[deleted]
maruco how to add new video host site to this plugin so that url will auto convert to video FriendsOfFlarum