Asked for: "füge ein, dass man sich für premaids auch bewerben kann" - every premade with a free place takes
applications unless its lead switches them off, and the bot sends DMs (a new application to the lead, a decline
to the applicant). Later: "man soll sich auch auf reserveplätze bewerben können".
- includes/premade_applications.php: the applications live on the website (premade_applications: premade ID and
name, lead at that time, applicant, class, wished place group/reserve, message, status open/accepted/declined/
withdrawn/closed, reason, who decided when; premade_options.applications_open). Rules: one open application
per premade, at most 3 open in total, 7 days pause after a decline by the same premade, none while invited,
when full or switched off. premade_applications_sync() matches them with the bot: applications of dissolved
premades are closed, whoever is in the premade by now counts as accepted, name and lead stay current,
decisions expire after 30 days.
- premades.php: "Bewerben" under every other premade with a free place. The popup asks for the place (group or
reserve, taken places greyed out; the group is preselected unless it is full), the class (main preselected)
and an optional message. "Meine Bewerbungen" lists the own ones with the answer for 14 days, withdrawing
works there and on the card. Leads and the leadership (premades.manage) see open applications on the card,
also outside the edit mode, with a "Reserve" tag and a confirmation that names the place; their number shows
at the menu item "Premades" (premades without a lead count for the leadership). The edit mode switches
applications off and on.
- premade_action.php: apply (checks the rules and the chosen place again), withdraw, application_accept (the
bot puts the applicant on the wished place, on the other one if it was taken meanwhile; an open invitation
becomes the membership on its place), application_decline (optional reason), applications_toggle. An
invitation to someone with an open application carries its class, also when accepted in Discord.
Dissolving a premade closes its applications, a new lead takes over the open ones.
- includes/raids_api.php: add_premade_member() passes the wished place and returns the place the bot gave;
premade_free_slots().
- Bot (already deployed, with a backup): POST /api/premades/{id}/applications sends the DMs (to the lead with
place, class, message and a link to the card; to the applicant with the reason), POST /members with source
"application" tells the applicant where they ended up and, when the leadership accepted, the lead;
add_premade_member() takes the wished place. If the bot cannot send a DM, the application is stored anyway.
- Live updates of the page and the menu number, schema version 62 (tables also in sql/schema.sql).
- Privacy: privacy policy (what is stored, who sees it, for how long), data export section premade_bewerbungen,
account deletion, data reset area "Premade-Bewerbungen".
- Patch notes and README.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
Until now the tags of a member were sorted by rank group first and then by the internal name, so
"Legionär" came before PvE while "Veteranus" came last. Verwaltung -> Berechtigungsgruppen now has
"Reihenfolge der Tags": move groups by drag & drop (mouse: whole row, finger: grip) or with the
arrows, then save.
- New column roles.tag_order (schema version 56, also in sql/schema.sql), saved by
admin/role_order_action.php (roles.manage) with before/after in the audit log.
- ROLE_TAG_ORDER_SQL and role_tags_sorted() in includes/permissions.php sort the tags in the member
list and its group filter, on the profile page, in the dashboard and in the user admin. Groups
without a position (before the first save, or created later) follow in the old order.
- The rank of a member (sections of the member list) still depends only on roster_order.
- Live updates of the member list react to a new order; README and patch notes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
The lead of a premade (or the leadership with premades.manage) picks one of the landscapes or
uploads an own image in edit mode under "Banner" and moves the crop with a slider (live preview).
- Shown on top of the premade card (name on the banner), above the roster under "Meine
Premade" on the dashboard, and behind the heading of the raid group that carries the
premade's name (invited premade groups are named after it).
- New table premade_banners (per premade ID of the bot, with the name for the raid groups, the
choice and the crop; schema 54, also in sql/schema.sql). Own images are member_gallery rows
with is_background = 1 and the new column premade_id, so they go through the same
moderation (badge "Premade-Banner"), data export and account deletion as gallery pictures.
The own profile background and the profile reset ignore banner rows.
- premade_action.php: banner_save, banner_upload, banner_delete_upload; renaming updates the
name, dissolving removes banner and upload. premade_banners_sync() on premades.php cleans up
banners of premades that no longer exist. Leadership changes to other premades are logged.
- Live updates of the premades page include banner changes; privacy policy, patch notes and
README mention the banners.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In the user form (admin/user_form.php) a new section "Einzelne Berechtigungen" lists all
permissions, with the group-assign rights (roles.assign.<ID>) shown by group name as in the role
form. It opens by itself when the user already has some. A shield marks what the user already
gets through one of the ticked groups; the tooltip says who granted a permission and when.
- New table user_permissions (user, permission, granted_by, created_at; schema 52, also in
sql/schema.sql). user_has_permission() now resolves through user_permission_keys() (groups UNION
direct permissions, falls back to groups only while the table is missing), and
discord_ids_with_permission() and the raids.manage recipients in bot_api.php include direct
permissions too.
- New core permission users.permissions: only with it can someone grant or revoke direct
permissions, and only ones they have themselves (current_user_permission_ids()); others are
greyed out and ignored on the server even if submitted. Your own direct permissions can only be
changed by someone else (except developers). Without the right the section is a read-only list.
On update, groups with roles.manage get users.permissions.
- Saving applies only the changes, so the remaining entries keep who granted them and when.
Grants and revokes go into the audit log ("Einzelrechte erteilt/entzogen/jetzt").
- User list: "+N Einzelrechte" badge next to the groups (title lists them), searchable; the live
fingerprint of the page includes user_permissions.
- Data export gets a section "einzelrechte", account deletion removes them, and the privacy
policy mentions both. Patch notes, README and the roles page intro updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Reports: the menu item shows how many reports are still open (not archived), for everyone with
reports.view. The reports live in the bot, so the count sits in settings.reports_nav_cache and is
fetched at most every 2 minutes with a short timeout (reports_nav_open()); the reports page
refreshes it right away, also after archiving. reports_api_request() takes a timeout.
- Moderation: the menu count now matches the "Freigabe" tab - waiting items plus reported items that
are still visible (moderation_open_counts(), internal calendar entries only for
calendar.leadership), with a title like "2 warten auf Freigabe, 1 gemeldet".
- Warehouse and Lumishop cards get an info bubble on mouse hover or keyboard focus (not on touch):
large image, category, stock, Lumishop price and the last movement in the warehouse; price,
availability, amount in open requests and whether the own Lumipunkte suffice in the shop. Weapons
and armour with the same name in the gear catalogue also show grade, level and base stats.
Content is rendered as a <template> per card (includes/item_tooltip.php), shown and placed by
assets/js/item-tooltip.js; the old native title on warehouse cards is gone.
- Patch notes and README updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Every open page in the member area asks live.php every 20 s while it is visible
(assets/js/live.js). The counts at the menu items and the own Lumipunkte are replaced in
place; header.php and live.php compute them with the same functions (nav_badges(),
nav_points() in includes/live_updates.php, links marked with data-badge).
- Dashboard, gallery, picture page, profile, member list, calendar, shop, shop orders,
Lumipunkte, warehouse, premades, bug reports, moderation, user management and wiki get a
fingerprint of the data they show (count, highest id, checksum of the shown columns - no
"last active"). When it changes, the page reloads - but only while nobody is typing, has a
form started, a dialog, lightbox or menu open or clicked in the last 8 s; otherwise a notice
"Es gibt Neues auf dieser Seite" with a reload button, and it reloads once things are quiet.
At most 3 automatic reloads per minute.
- Tools and forms (map, gear planner, edit pages) never reload on their own; the raid page keeps
its own live updates. The dashboard notices new raids and signups through the raid cache
(now also stores a fingerprint of dates, slots and signups); premades ask the bot with a 3 s
timeout (new timeout parameter for premades_api_request/fetch_premades).
- README and patch notes updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>