Commit graph

11 commits

Author SHA1 Message Date
Maaxxs
6f2f44d960 Members: the list is sorted by rank within its sections, the rank order is configurable
Asked for: the Lumina Ascendens are divided into ranks (Veteranus, Legionär, Rekrut) and should be lined
up accordingly; the rank order should be adjustable.

- New column roles.rank_order (schema version 58, also in sql/schema.sql): 1 = highest rank, NULL = no
  rank. The upgrade fills it once with the groups that have "Veteranus", "Legionär" or "Rekrut" as a
  word of their own in the name (so not "Rekrutierung").
- Member list, sort "Rang": section first, then the member's highest rank (data-tier), then the name;
  members without a rank come after the ranked ones.
- Berechtigungsgruppen: new panel "Rangordnung" below "Reihenfolge der Tags" - move ranks by drag &
  drop or arrows, remove them with x, add groups from a select (groups with their own section are not
  offered). Saved by admin/role_rank_action.php (roles.manage, audit log). tag-order.js now handles
  both lists, including add/remove; the list rows share role_order_item().
- User administration sorts by rank after the section as well.
- Live updates of the member list include rank_order; README and patch notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 01:23:48 +02:00
Maaxxs
ee7a3a2e8e Professions: members enter their characters' professions, a new page shows who can craft what
Asked for in Discord: profession management within the legion for a good balance. Aion 2 has five
crafting professions (Blacksmithing, Armorsmithing, Handicrafting, Alchemy, Cooking) with the stages
Beginner, Expert and Master; gathering is one shared skill for six raw materials that players
specialize in with points. Professions belong to characters, so they are entered per character.

- includes/professions.php: PROFESSIONS (German name, client name, icon, products, weapon classes),
  PROFESSION_STAGES, GATHERING_MATERIALS, loading/saving, counts per member, targets and "wanted".
  German names are not confirmed by the German client yet; only keys are stored.
- New table character_professions (stage, optional level, main profession - at most one per
  character) and member_characters.gathering (schema version 57, also in sql/schema.sql).
- Profile editor: per character a professions fieldset (stage, level, main-profession tick - a
  single profession becomes the main one) and the gathering specialization; saved with the
  character (member_action.php), invalid levels are rejected.
- Profile page shows them per character; the member list shows icons on the cards (main
  profession with a gold ring), gets a "Beruf" filter and finds professions in the search.
- New page professions.php ("Berufe" in the menu, members.view): per profession how many members
  have it as main profession and at all, characters per stage, which classes' weapons it makes and
  how many members play them, everyone with stage; below the gathering specializations.
- New permission professions.manage (initially for groups with roles.manage): targets per
  profession (professions_action.php, setting profession_targets, audit log). Professions below
  their target show as "Gerade gesucht" on the page and in the profile editor.
- Hammer icon; live updates for the new page, the member list and profile pages; the data export
  includes professions per character; privacy policy (as of 26.09.), patch notes and README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 00:01:11 +02:00
Maaxxs
3fa3a7310d Group icons: groups get an icon in front of their name, like the role icons in Discord
In Berechtigungsgruppen -> Gruppe bearbeiten the new field "Symbol" takes an uploaded image or a
link to one, with a checkbox to remove it and a live preview in the tag.

- A link is downloaded once when saving (includes/role_icons.php): public http(s) addresses only,
  nothing in the local network (redirects checked one by one, the checked IP is pinned), at most
  2 MB, PNG/JPG/GIF/WEBP. Like uploads the image is re-encoded, scaled to 128 px and stored under
  assets/uploads/roles/ (with .htaccess), so visitors never load anything from other servers and
  expiring links (Discord attachments) don't break the icon.
- Shown in the group tags (member list, profile, group admin), the group filter chips and the
  rank section headings of the member list, and the group badges on the dashboard.
- Replaced or removed icons and the icon of a deleted group are deleted from disk; the new file
  is only stored once all other fields are valid and removed again if saving fails.
- New column roles.tag_icon (schema version 55, also in sql/schema.sql); README.
- file-input.js: "Entfernen" fires a change event, so previews of other scripts clear too.
- Live updates of the member list also react to changes of tag_bg2 and tag_icon.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 12:35:02 +02:00
Maaxxs
e1d39bcf2d Group tags: optional gradient background like Discord, rank view hides the tags of all groups that have a member list order
- Berechtigungsgruppen -> edit: "Verlauf zu" adds a second background colour, the tag background runs from left to right into it (the border runs along); picking it also ticks the background, which is the start colour; live preview and admin log ("Verlauf #a–#b")
- Tags use --tag-fill for the gradient; only #rrggbb values are stored (roles.tag_bg2, schema version 38)
- Member list sorted by rank: tags of every group with a roster order (the sections) are hidden, not only the own section's; other sort orders and profile pages still show all tags
- README

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 17:55:33 +02:00
Maaxxs
7f96dbf967 Member list: no tag for the section's own group while the list is split into rank sections
- Cards in a rank section (e.g. "Sedes Luminis") hide that group's tag, the other tags stay; a tag row with nothing left is hidden too
- With another sort order (name, class, ...) there are no sections, so the tag is shown again; profile pages and the group filter are unchanged
- role_tag_html() takes an extra CSS class

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 17:49:51 +02:00
Maaxxs
ea3e372131 Member list: also sort names with Unicode roman numerals (e.g. Ⅸ, Ⅻ)
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 10:09:16 +02:00
Maaxxs
7c0ffccbd2 Member list: uniform filter/sort chips, numbered names (# III | Name) sorted by their number
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 10:07:53 +02:00
Maaxxs
62bc861d13 Member list: a rank group with a single member (e.g. the leadership) is centered
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 10:04:37 +02:00
Maaxxs
6d8747c9e4 Moderation: all comments with flags, swear word filter; reactions on pictures and comments; last active in member list; map starts with categories hidden
- Moderation page with tabs: approval, all comments (critical/suspicious flags, search, filters), swear word filter (mark / hold / block, maintained by mods, detects leetspeak)
- Discord-style emoji reactions on gallery pictures and comments (without reloading)
- Member list and profile: "last active" / online dot, sortable
- Map: all marker categories hidden at start

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 22:12:10 +02:00
Maaxxs
267a7f532c Member list: redesigned filters with search field, class icon chips, group chips and sort toggle
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 20:53:17 +02:00
Maaxxs
5f8b86663f Member profiles with characters and gallery, member list search/filter/sort/view toggle, Discord join date
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 20:45:37 +02:00