Great!
Already in use. Loving it!
Afrux Forum Widgets Core
How does Top Posters calculate the posts per user?
I tried to do some querying but couldn't quite get the numbers from the widget.
Also when does it refresh? With every post? If that could have been read somewhere I am sorry. I didn't see it.
SychO The values are cached and refreshed every 10 minutes at the moment.
Alright thanks.
SychO last 30 days
Okay that means the title "Top Posters this Month" is misleading, it is more like rolling 30days then.
Would be great to have this changed or maybe some settings for it.
All in all it looks great. I got good responses on it only.
This is incredible. Thanks, @SychO, for bringing widgets to Flarum! I think I see a little bit about this above, but I'm curious how the widgets look on mobile. Are they all at the top before the forum content, or all at the bottom? If I ever use widgets I'd either try to get them into the main mobile menu, or a new widgets menu. Or, I'd hide them all together on mobile. The main thing that holds me back from trying this or the other similar extensions that add things to the top, is that I don't want to have to scroll past stats and stuff to get to the forum content on mobile. But, that's my own personal feeling. It still looks like a game changing extension.
010101 well for sure on mobile needs some tweak but they look basically good
- Edited
010101 you can always test mobile/responsive mode by finding the option in your browser this is as close to a mobile device (other than Android emulation) as you're going to get without the physical device itself.
This next image will give you a sense of the Admin UI and where the locations of the widgets would be on the forum via mobile/smaller viewport:
You should also keep in mind that the widgets you see out there in the wild Extensions tag now depend on this package as a core requirement. Though, this does not apply to the olden ways prior to this fantastic widget framework best way to find out if it's a widget for this framework would be to look out for it in the extension OP here, Packagist in the "requires" section, or from the
composer.json
file in the extension's public repo.
Hope this helps!
or you can try by yourself (i've installed lot of widget)
https://flarum.it/
Ralkage you can always test mobile/responsive mode by finding the option in your browser
Thanks! I didn’t want to install it until I knew for sure you can put widgets on the bottom. I appreciate the extra screenshots very much. I’m sometimes shocked by the amazing extensions this community creates. Wow!
[deleted]
- Edited
@SychO I'm getting the below message in the console whenever I try to place or save a widget
mount-redraw.js:15 TypeError: Cannot read properties of undefined (reading 'icon')
at e.n.widget (WidgetEditor.tsx:201)
at e.n.layoutWidget (WidgetEditor.tsx:220)
at WidgetEditor.tsx:65
at Array.map (<anonymous>)
at e.n.editor (WidgetEditor.tsx:65)
at e.n.content (WidgetEditor.tsx:35)
at e.n.sections (ExtensionPage.js:96)
at e.n.view (ExtensionPage.js:52)
at Function.s (render.js:30)
at render.js:482
Any thoughts ?
Thanks
EDIT - seems it caused by the news widget. I'll post there also.
[deleted]
SychO No. Just the Afrux ones.
[deleted] EDIT - seems it caused by the news widget.
How so ? does it not appear when moving other widgets ? where are you moving the widget from and to when the error occurs ?
I've logged the issue afrux/forum-widgets-core5 but the above details will help a lot!
[deleted]
SychO It appears, but the second you move it into one of the widget zones, you get that error in the console and are unable to save.
Hi, I enabled these widgets on my forum and they produced a denial of service of the MySQL instance, with 100% CPU usage until I managed to disable the extensions. The forum was inaccessible during that time.
Is there a chance that some kind of caching mechanism could be implemented? Thanks!
matteocontrini I don't see how that's possible, these widgets are very light weight, the news one doesn't need any caching, as for the forum stats and top posters, they both cache the data for 10 minutes before refreshing, if there is an issue it would be the online users one, which doesn't cache data because then it wouldn't be accurate.
How many online users would you say there were at the time?
SychO ah, I see. I had "online users" enabled indeed. I usually have between 50 and 100 online users, or at least that's what Google Analytics tells me.