diff --git a/assets/css/style.css b/assets/css/style.css
index a037781..d28b5f4 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -593,10 +593,14 @@ input[type="datetime-local"]::-webkit-calendar-picker-indicator {
cursor: pointer;
text-align: center;
width: fit-content;
- transition: background 0.15s ease;
+ transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.button:hover, button:hover { background: var(--gold-hover); color: #1a1a1a; text-decoration: none; }
+/* Rand beim Drueberfahren (als Innenschatten, damit nichts verrutscht): goldene Buttons mit
+ schwarzer Schrift bekommen einen schwarzen Rand, dunkle (.button-secondary) einen goldenen.
+ Die Buttons unter den Lumipunkten im Dashboard (.dashboard-cta) haben ihren eigenen Effekt. */
+.button:hover, button:hover { box-shadow: inset 0 0 0 2px #111; }
/* [hidden] soll auch bei Buttons wirken (display von .button wuerde es sonst ueberstimmen) */
.button[hidden] { display: none !important; }
@@ -604,10 +608,17 @@ input[type="datetime-local"]::-webkit-calendar-picker-indicator {
.button-danger:hover { background: #c9302c; color: #fff; }
.button-secondary { background: var(--bg-panel-alt); color: var(--text); border: 1px solid var(--border); }
-.button-secondary:hover { background: #383838; border-color: rgba(201, 162, 39, 0.55); color: var(--text); }
+.button-secondary:hover { background: #383838; border-color: var(--gold); color: var(--text); box-shadow: inset 0 0 0 1px var(--gold); }
.button-success { background: var(--success); color: #fff; }
.button-success:hover { background: #3d8b40; color: #fff; }
+.button-danger:hover, .button-success:hover, .discord-connect-button:hover,
+.button:disabled:hover, button:disabled:hover,
+/* Knoepfe, die gar nicht gold sind (Symbole, Filter, Seitenzahlen, Menue ...) */
+.icon-button:hover, .modal-close:hover, .text-button:hover, .members-chip:hover, .members-segment button:hover,
+.page-link:hover, .shop-category:hover, .class-picker-option:hover, .user-filter-trigger:hover, .user-filter-option:hover,
+.file-drop-clear:hover, .group-picker-option:hover, .sidebar-toggle:hover, .wiki-preview-toggle:hover,
+.lightbox button:hover, .item-picker button:hover { box-shadow: none; }
.button:disabled, button:disabled {
opacity: 0.5;
@@ -5974,6 +5985,26 @@ a.calendar-agenda-entry:hover { text-decoration: none; filter: brightness(1.2);
}
.background-option input:focus-visible + .background-thumb { outline: 2px solid var(--gold); outline-offset: 2px; }
.background-name { font-size: 0.8rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+.background-thumb { position: relative; }
+.background-pending {
+ position: absolute;
+ left: 0.35rem;
+ bottom: 0.35rem;
+ padding: 0.1rem 0.45rem;
+ border-radius: 999px;
+ background: rgba(0, 0, 0, 0.75);
+ border: 1px solid var(--gold);
+ color: var(--gold);
+ font-size: 0.7rem;
+ font-weight: 600;
+}
+.background-own .background-name { color: var(--gold); }
+/* Eigenes Bild nur fuer den Hintergrund hochladen */
+.background-upload { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
+.background-upload h3 { margin: 0 0 0.6rem; font-size: 1rem; }
+.background-upload-form { display: flex; flex-direction: column; gap: 0.6rem; }
+.background-upload-form button { align-self: flex-start; }
+.background-upload .inline-form { margin-top: 0.75rem; }
.background-option.is-selected .background-name { color: var(--gold); font-weight: 600; }
.background-default .background-thumb img { filter: grayscale(0.6) brightness(0.8); }
/* Kommentarfeld: Avatar neben dem Feld (Formulare sind sonst global untereinander) */
diff --git a/dashboard.php b/dashboard.php
index e2c2dba..d998d94 100644
--- a/dashboard.php
+++ b/dashboard.php
@@ -421,15 +421,15 @@ if (empty($user['tour_completed_at'])):
['target' => '[data-tour="overview"]', 'title' => 'Dein Überblick', 'text' => 'Ganz oben siehst du deine Rollen in der Legion und ob dein Discord-Account verbunden ist. Die Rollen kommen automatisch von unserem Discord-Server.'],
['target' => $link('/profile.php'), 'title' => 'Mein Profil', 'text' => 'Im Profil änderst du Anzeigename und Profilbild und verwaltest deine Discord-Verknüpfung. Dort kannst du diese Einführung auch jederzeit neu starten.'],
];
+ if (user_has_permission('members.view')) {
+ $tourSteps[] = ['target' => $link('/members.php'), 'title' => 'Mitglieder', 'text' => 'Hier findest du alle Mitglieder der Legion, sortiert nach ihren Rängen.'];
+ }
if ($myPoints !== null) {
$tourSteps[] = ['target' => '[data-tour="points"]', 'title' => 'Lumipunkte', 'text' => 'Für deinen Einsatz in der Legion, z.B. bei Raids, bekommst du Lumipunkte. Hier siehst du deinen Stand und deinen Platz in der Rangliste.'];
}
if ($canViewShop) {
$tourSteps[] = ['target' => $link('/shop.php'), 'title' => 'Lumishop', 'text' => 'Im Lumishop tauschst du deine Lumipunkte gegen Gegenstände ein. Die Leitung bewilligt deinen Antrag und übergibt dir den Gegenstand im Spiel.'];
}
- if (user_has_permission('members.view')) {
- $tourSteps[] = ['target' => $link('/members.php'), 'title' => 'Mitglieder', 'text' => 'Hier findest du alle Mitglieder der Legion, sortiert nach ihren Rängen.'];
- }
if ($canViewRaids) {
$tourSteps[] = ['target' => '[data-tour="raids"]', 'title' => 'Nächste Raids', 'text' => 'Die nächsten Raids mit Termin, freien Plätzen und deinem Anmeldestatus. Unter „Raids“ im Menü meldest du dich mit deiner Klasse an.'];
}
diff --git a/gallery_comment_action.php b/gallery_comment_action.php
index 08f9b52..73e6e7e 100644
--- a/gallery_comment_action.php
+++ b/gallery_comment_action.php
@@ -21,7 +21,7 @@ if ($action === 'add') {
$pictureId = (int) ($_POST['picture_id'] ?? 0);
$back = '/member_picture.php?id=' . $pictureId . '#kommentare';
$stmt = $pdo->prepare(
- 'SELECT g.id, g.user_id, g.status AS picture_status, u.status, u.gallery_comments_enabled FROM member_gallery g JOIN users u ON u.id = g.user_id WHERE g.id = ?'
+ 'SELECT g.id, g.user_id, g.status AS picture_status, u.status, u.gallery_comments_enabled FROM member_gallery g JOIN users u ON u.id = g.user_id WHERE g.id = ? AND g.is_background = 0'
);
$stmt->execute([$pictureId]);
$picture = $stmt->fetch();
diff --git a/includes/data_reset.php b/includes/data_reset.php
index 9f24662..1139d2a 100644
--- a/includes/data_reset.php
+++ b/includes/data_reset.php
@@ -97,10 +97,14 @@ const DATA_RESET_AREAS = [
],
'profiles' => [
'label' => 'Profiltexte & Hintergründe',
- 'description' => 'Beschreibungstexte und gewählte Hintergründe aller Profilseiten. Konten und Profilbilder bleiben.',
+ 'description' => 'Beschreibungstexte, gewählte Hintergründe und eigene Hintergrundbilder aller Profilseiten. Konten, Profilbilder und Galerien bleiben.',
'count' => "SELECT COUNT(*) FROM users WHERE (profile_bio IS NOT NULL AND profile_bio <> '') OR profile_background IS NOT NULL",
'unit' => ['Profil', 'Profile'],
- 'delete' => ['UPDATE users SET profile_bio = NULL, profile_background = NULL'],
+ 'delete' => [
+ "DELETE FROM content_reports WHERE content_type = 'picture' AND content_id IN (SELECT id FROM member_gallery WHERE is_background = 1)",
+ 'DELETE FROM member_gallery WHERE is_background = 1',
+ 'UPDATE users SET profile_bio = NULL, profile_background = NULL',
+ ],
'reset_ids' => [],
],
'gear_sets' => [
@@ -187,6 +191,9 @@ function data_reset_run(array $keys): array
if (in_array('gallery', $keys, true)) {
$files = array_merge($files, $pdo->query('SELECT filename FROM member_gallery')->fetchAll(PDO::FETCH_COLUMN));
}
+ if (in_array('profiles', $keys, true) && !in_array('gallery', $keys, true)) {
+ $files = array_merge($files, $pdo->query('SELECT filename FROM member_gallery WHERE is_background = 1')->fetchAll(PDO::FETCH_COLUMN));
+ }
if (in_array('characters', $keys, true)) {
foreach ($pdo->query('SELECT portrait_filename, image_filename FROM member_characters')->fetchAll() as $row) {
$files[] = $row['portrait_filename'];
diff --git a/includes/header.php b/includes/header.php
index 03878dc..997f6d8 100644
--- a/includes/header.php
+++ b/includes/header.php
@@ -189,6 +189,11 @@ $otherFlashes = array_values(array_filter($allFlashes, fn (array $f): bool => ($
+
+
+
-
-
-