Commit graph

19 commits

Author SHA1 Message Date
tadhgboyle
ab2fed32a1
Improve online staff/users widget caching (#3691)
* Improve online staff/users widget caching

* lint

* format sql, order by group id

* same for staff widget
2025-07-05 15:36:58 -07:00
tadhgboyle
5e25c960dc
Update Online Users widget config to use Settings system rather than Cache (#3671) 2025-05-21 21:08:19 -07:00
tadhgboyle
07d1e05229
Create and implement Cache#fetch (#3662)
* Create and implement `Cache#fetch`

* convert more

* fix

* wip

* wip

* Apply fixes from StyleCI (#3663)

Co-authored-by: StyleCI Bot <bot@styleci.io>

* wip, more conversions

* clear widget cache on setting update

* fix

* convert

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2025-05-20 18:37:24 -07:00
tadhgboyle
145c8bc1c2
Remove internal deprecations (#3630)
* Remove internal deprecations

* add convert profile posts task + remove dead lang_charset references

* guard og_image usages

* fix

* add note about mailhog

* revert group sync manager for time being

* review amendments

* fox
2025-05-04 14:08:21 -07:00
PadowYT2
f01f8b3dbe Resolve conversation & from #2757 2022-05-27 11:54:24 +03:00
Tadhg
e0133a5cd5 Get PHP-CS to pass! 2021-12-07 22:14:12 -08:00
Tadhg
a9c678e4d4 convert all array(...) syntax to [...] 2021-10-29 22:00:05 -07:00
Tadhg Boyle
c25802bad1
Add new dynamic Group Sync injectors system + separate Discord into own module (#2423)
Co-authored-by: Robin <robinslot@hotmail.nl>
2021-10-05 15:13:04 -07:00
Tadhg Boyle
207351ae8e
Validation Revamp (#2208) 2021-04-06 19:21:49 -07:00
Tadhg
5b5acecbcc style fixes 2020-12-14 20:40:55 -08:00
Tadhg
1cd72bf70a Add profile post ID in alert + simplify Token::check() 2020-09-10 23:04:15 -07:00
Tadhg Boyle
0560fd907b
Discord Integration! Sync your roles between your NamelessMC site and your Discord Guild. (#1764)
* Initial commit, big additions. Linking/verifying discord id is complete

* Update admin.php

* Better validation errors + language updating

* Apply role change on user edit page - still some things to flush out though

* flush out some edge cases

* Add role in discord upon account validation & more

* Add api endpoint (need to test) & a lot of TODOs

* fix announcements a bit on Default template

* define bot url for easier move to self-hosting

* Add discord->website (adding) sync & lots of the TODOs

* Add discord role removal api endpoint

* Add logging od discord role add/remove & fix log table

* Add api_url to discord request for extra security & add todo's for error handling

* More API error handling for discord bot

* Add boilerplate error handling if bot throws error

* Add error messages for all discord linking

* If they have a role on the site, give it to them when they verify their id

* Resolve Sam's review

* Add info msgs so people know where to get discord IDs

* Add all language translations and update NMC version strings
2020-07-25 21:00:41 -07:00
Tadhg
da7b41815a Don't break after the first error 2020-07-02 09:24:25 -07:00
Tadhg
5dce12df60 Use translations for Discord Widget error messages 2020-07-01 22:41:30 -07:00
Tadhg
44b4b98374 Check if Discord Server ID is valid length + numeric 2020-07-01 00:13:51 -07:00
MarkiThePews
d907dc9ad6
Add "Show nickname instead of username".
Add "Show nickname instead of username" option for Online Users widget.
2019-01-26 18:22:51 +07:00
samerton
456148f54b Add panel widgets page 2018-10-12 17:20:28 +01:00
samerton
2bd7b882b8 Update Discord widget settings 2018-06-22 18:53:16 +01:00
samerton
60b9ea0ece Add online staff + online members widgets 2018-05-29 16:36:25 +01:00