Now live !
Videos on how to extend Flarum
- Edited
Join me live in 15 minutes ! (I almost forgot to post)
End of stream!
Because of some issues on this forum, you might have missed my posts above (not all notifications went out and the discussion didn't rise to the top of the discussion list). If you missed it at least you can check the replay
Next week's stream will be on Halloween night. I want to make something Halloween themed so ideas welcome! Preferably an interesting extension that doesn't have too complex feature(s).
clarkwinkelmann currently using CTF to Catch the Bats and Catch the Ghosts respectively
Give us a good spook, @clarkwinkelmann!
Join me live in 3 hours for a Halloween special. We will create a pumpkin carving extension!
Streaming tomorrow evening, 20:30 CET, 19:30 UTC. It might be an hour earlier than before for you if your clock didn't move back (daylight saving madness).
I still have not decided on the topic, so ideas welcome. We might look into improving the fake data generator, but I think that would be a bit boring. Maybe we can do something timezone-related to celebrate DST.
Sorry for skipping last week. First I forgot to schedule the stream on YouTube, then I forgot about it completely on the night as well. So I guess... no one was expecting one anyway ?
Live in about 30min! I might be a few minutes late.
We will be creating an emoji-based status extension.
I will skip tonight's stream. In part because I have other things to finish... and also because I have not come up with an idea yet.
Let me know if you have ideas for the next weeks! I'm hesitant to re-take extensions I have already worked on, as it means adding more complex features, and I want to avoid being stuck as much as possible during a stream.
I will try to do 4 other streams until the end of the year, with probably at least one christmas-themed. Then I'll check the analytics and feedback to decide if I continue with that format.
- Edited
clarkwinkelmann Let me know if you have ideas for the next weeks!
There's a feature I miss: being able to see who deleted a message in a discussion without going in the database. I don't know if it's too easy to build as an extension, but I wouldn't be able to do that, so...
matteocontrini Let me know if you have ideas for the next weeks!
Would be great if you build an addon to push a discussion to the top if a tag in the discussion was updated.
matteocontrini the information actually exists in the database, so it shouldn't be too hard to show it.
panteLx I wonder where this idea comes from
Thanks for the comments, I'll see if I can integrate that. It's almost too short, I'd have to combine multiple things in the stream.
- Edited
If you are searching an idea I could suggest you a Firebase extension in order to push messages on any events like private messages via cloud messages I tried a proof of concept but I haven't found the problem why my messages aren't received yet and I no more answers on stackoverflow so...
What is your opinion about such an extension ?
brian85 that's highly connected with a third party. The Flarum side of that must be very simple. But I know nothing about Firebase, so wouldn't try to debug something built with it. For "simple" things like that, there's clerly more work on testing and debugging than coding.
If I wanted to get familiar with a new service/library like Firebase, I'd probably first build a much simpler app, maybe with some vanilla PHP (or something like Laravel if a framework will ease the process), and if it works, try to re-do it as a Flarum extension.
clarkwinkelmann Let me know if you have ideas for the next weeks!
A clear cache button for admins somewhere in the front-end profile drop-down would really rock if that is possible. This is there for almost all cache plugins in Wordpress. There won't be any need to go the command line all the time for that. Thanks.
nitaaikumar you can clear the cache from the admin dashboard top right corner.
clarkwinkelmann Дайте мне знать, если у вас есть идеи на ближайшие недели
Give rewards to users for certain actions on the forum. Example: write the first discussion
Alkir I would love to work on something like that one day, but it requires a whole ecosystem. First we need to define what rewards can be. Then we need to implement these rewards (badges, emails, levels, groups, physical goods, ...?). Then we need to implement ways to unlock them. If everything is in a single extension, it would be incredibly massive and I wouldn't make it open-source (unless it's sponsored). If everything is separate extensions, we need to come together and define how these will interact with each others, including maybe a (core) extension to handle the base logic on which extension developers can build upon.
clarkwinkelmann Let me know if you have ideas for the next weeks!
I have an extension in mind that can be used together with custom CSS in multiple ways. The extension just adds classes to the <body> element like the existing no-touch
for a variety of states like the login status, the chosen language, the selected tags for discussions, indicators for pages, user lists etc.
In your video you wouldn't need to provide classes for everything, instead your approach could be used by others to build upon your work.
clarkwinkelmann Let me know if you have ideas for the next weeks!
I'm working on two extensions, one requires the other. I have my project set up with a workbench folder like you have in your video's. There are no resources available on the compat API yet and I can't seem to get it right. Maybe you could touch on it?
nxta good idea, I'll see how I can introduce that.
The "compat" API actually is only a feature meant to be used by Flarum core extension to export to the flarum namespace.
What extensions can do is export objects from their index.js
. Here's an example I worked on in the past:
User directory exports the UserDirectoryPage
object https://github.com/FriendsOfFlarum/user-directory/blob/master/js/src/forum/index.js#L9
Mailing checks the user directory extension is enabled and gets the exported object from the extension object https://github.com/kilowhat/flarum-ext-mailing/blob/master/js/src/forum/addMailingLinks.js#L40