Commit graph

36 commits

Author SHA1 Message Date
Robin
36550fbf66 Remove some Queries usage 2022-05-31 20:02:01 +02:00
PadowYT2
f01f8b3dbe Resolve conversation & from #2757 2022-05-27 11:54:24 +03:00
Tadhg Boyle
2c21149a1e
Use i18n for translations (#2658)
* Dependency updates

* Start i18n conversion

* Switch to ellipsis character

* Add Dutch language json

* Remove Dutch PHP language files + fix variables

* Further variable fixes

* WIP i18n Language class conversion

* Convert Cookie Consent module to new language format

* Further progress including timeago translations

* Misc

* Replace {x}

* Replace more {x} usage

* {{time}}

this took way too long

* replace last {x}

* Remove comments

So searching for {x} produces relevant results

* forgot to save

* move to onPageLoad

* Accept both string and int

* types in doc

* Remove unused (broken?) function

* Don't convert to string first

* Last arg doesn't seem to be used anywhere

* Time `{x}` replacements

* Email `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* remove comments (makes searching for "{x}" nicer)

* misc `{x}` replacements

* JS `{x}` replacements

* Cleanup language initialization

* Change language constant + add pluralForm support

* Misc language update things

* Add script to find unused terms

* Check all quote types

* Remove most english translations from non-english languages

* Also match with more args

* Missed some apparently

* Missed some (more) apparently

* Misc work

* Add script to convert *all* language files to json

* Fix language codes

* Remove a lot of unused terms

* Remove a lot more unused terms

* Convert everything to JSON, delete old files, get installer working with new system

* Fix general configuration language dropdown + email messages

* Fix page load time, fix language term `set` method

* Fix discord integration command

* Misc

* Misc

* Uncomment RTL definition

* Misc

* Convert links

* Convert links

* Convert links

* Convert links

* Misc work (bolding, fixes, etc)

* Style fix

* Fix variable

* Fix #2668

* Fix old page load timers

* Fix installer group sync injector error

* Convert integration language terms

* Fix more integration language things

* Re-add upgrade script language things

* Resolve PR comments

* Remove unnecessary date()

* Resolve some PR issues

* Fix endpoint

* Style

* Fix Semantic -> Fomantic

* Fix Semantic -> Fomantic

* Return locale short code, not language id/name

Only the short code is interesting to the API, return short code in user info endpoint just like in the website info endpoint.

Also renamed to locale because it's language + region

* Revert "warn people to not translate old language files"

This reverts commit 690b77afff.

* Fix query when there are no filters

* Update 200-pr12.php

* Update footer.php

* insert time into string using placeholder

* Fix getDisplayname case

* Clean username

* PR suggestions

* Include newly created language in converted languages (migration)

* PR suggestions

* PR suggestions

* Update init.php

* Fix default language

Co-authored-by: samerton <samerton@users.noreply.github.com>
Co-authored-by: Robin <robinslot@hotmail.nl>
Co-authored-by: Robin <robin+git@rkslot.nl>
Co-authored-by: Partydragen <adrian_kili@outlook.com>
2022-04-23 14:27:10 +01:00
Tadhg Boyle
ad17142a16
Misc cleanup (#2566) 2022-01-15 15:18:05 -08:00
Tadhg
e0133a5cd5 Get PHP-CS to pass! 2021-12-07 22:14:12 -08:00
Tadhg
65b00b9486 replace define() with const where applicable 2021-11-02 21:28:04 -07:00
Tadhg
a9c678e4d4 convert all array(...) syntax to [...] 2021-10-29 22:00:05 -07:00
samerton
1d54c55b21 Add "following topics" page
Closes #1603
2020-12-19 00:05:35 +00:00
Tadhg
5b5acecbcc style fixes 2020-12-14 20:40:55 -08: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
samerton
d8dc278571 Remove forum admin sidebar link 2018-11-08 21:02:13 +00:00
samerton
cd02999dfc Update module, template + widget systems 2018-09-10 01:14:58 +01:00
samerton
ccbbb128b9 Add parameter list to events 2018-08-29 13:48:28 +01:00
samerton
7e4c6c1a75 Add sitemap generator 2018-08-19 16:50:36 +01:00
samerton
5199e340fa Fix latest posts widget cache 2018-06-23 15:45:40 +01:00
samerton
ee317868bb Fix forum profile tab subdirectory issue 2018-06-19 18:59:52 +01:00
samerton
4c945af7be Add ability to add a navbar icon to pages 2018-05-31 13:21:11 +01:00
Sam
3d6d2b8ec4 Start on hook system, add Discord webhook 2018-03-11 22:27:50 +00:00
Sam
2c037b7acf Update "Can view other users' topics?" permission 2017-10-18 17:10:57 +01:00
Sam
e070397587 Add new core permission system 2017-10-18 16:00:22 +01:00
Sam
7e55ce2216 Update route check
Update route check in core and forum module init files
2017-10-07 00:44:46 +01:00
Sam
9178fed32b Release update files and update installer for pr3
Release update files and update installer for v2 pre release 3
2017-10-07 00:09:59 +01:00
Sam
52af997f6d Add ability to re-order navbar 2017-10-06 19:48:02 +01:00
Sam
e6d6483f3b Add user related variables 2017-09-04 15:53:57 +01:00
Sam
01ebbe1b5b Add secondary user groups 2017-08-23 20:14:33 +01:00
Sam
c57e35bd80 Add friendlier forum URLs 2017-08-23 15:25:22 +01:00
Sam
a0d0ad4c7b Add latest posts widget 2017-08-08 20:48:45 +01:00
Sam
245d93f98e Add widget system, along with Twitter and Facebook widgets 2017-08-08 19:38:42 +01:00
Sam
e49b7ef626 Update forum module, fixing installation check 2017-07-14 12:48:03 +01:00
Sam
c508a99bcb Add forum search 2017-07-02 23:10:08 +01:00
Sam
3158f87a95 Add avatar configuration, including the ability to upload a default avatar 2017-06-28 16:47:21 +01:00
samerton
292b80073f Update profile pages
Add functionality to profile pages, including profile wall and about
section
2016-12-29 23:41:16 +00:00
Sam
6821396469 Fix a couple of installer issues
Fix a couple of issues with installer, including path configuration not
being set properly, and also set admin group ID back to 2
2016-12-08 13:11:44 +00:00
Tom McClellan
af56339ddf Fixed some things
Things fixed
some installer bugs - installer.php
* db password variable was incorrect 
* default language database setting
* default theme cache variable (dont know if having it set to 1 was intended, had to set it to default to get the site to work)

Changed some variables in /admin/users.php to 3 from 4 to match the error strings in the language file, could have changed the language variables and stuff, but im lazy (and I use Tom as my username lol)
username_minimum_3
mcname_minimum_3

Also changed $group to 3 when editing user #1 to match the new settings of admins being 3 instead of 2

if the user tries to set email to something strange like 1@1 it will get an error for being to short but not show an error, I could not figure out how to get it to trigger, but I added ```'invalid_email' => 'Your email is invalid.',``` to the EnglishUK/user.php and a validate email type in core/classes/Validate.php. Did not want to break to much so I left email defaulting to min 4 instead of t
2016-12-07 21:26:05 -08:00
Sam
c478de79d9 Remove duplicate line from forum init file
Remove duplicate line from forum initialisation
2016-11-30 21:55:04 +00:00
Sam
c2e5a1cd80 Initial file upload
Initial v2 pre-release file upload, not yet ready for use
2016-11-29 22:27:19 +00:00