feat : visiteurs uniques, filtre jours, redirect 404→search, edit_tags (v1.6.16)
- SearchLogParser : visiteurs uniques par terme (IPs distinctes) au lieu de hits bruts (#41) - SearchLogParser : paramètre $days (7/14), cache distinct par période, filtre logFiles par date (#46) - admin/searches : boutons 7 j / 14 j, label dynamique, colonne « Visiteurs » (#41, #46) - URL inconnue / slug absent : redirect 302 /search?q=… au lieu de page 404 (#57) - edit_tags : masquer abbrev/camel si des valeurs connues existent pour le type (#48) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+10
-2
@@ -1207,7 +1207,15 @@ foreach (COLOR_PALETTE_16 as $_i => $_rgb):
|
||||
<h5 class="mb-0">Termes recherchés
|
||||
<span class="badge bg-secondary ms-1"><?= count($adminData['search_terms'] ?? []) ?></span>
|
||||
</h5>
|
||||
<span class="text-muted small">Derniers 14 jours de logs · cache 10 min</span>
|
||||
<div class="d-flex align-items-center gap-3">
|
||||
<span class="text-muted small">Derniers <?= (int)($adminData['search_days'] ?? 14) ?> jours · cache 10 min</span>
|
||||
<div class="btn-group btn-group-sm" role="group">
|
||||
<a href="/admin/searches?days=7"
|
||||
class="btn <?= ($adminData['search_days'] ?? 14) === 7 ? 'btn-primary' : 'btn-outline-secondary' ?>">7 j</a>
|
||||
<a href="/admin/searches"
|
||||
class="btn <?= ($adminData['search_days'] ?? 14) === 14 ? 'btn-primary' : 'btn-outline-secondary' ?>">14 j</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!($adminData['search_log_readable'] ?? false)): ?>
|
||||
@@ -1228,7 +1236,7 @@ foreach (COLOR_PALETTE_16 as $_i => $_rgb):
|
||||
<tr>
|
||||
<th style="width:3rem">#</th>
|
||||
<th>Terme recherché</th>
|
||||
<th style="width:6rem" class="text-end">Fois</th>
|
||||
<th style="width:6rem" class="text-end">Visiteurs</th>
|
||||
<th style="width:12rem"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -97,8 +97,10 @@ $_typeLabel = $isCatField ? 'Catégorie' : ($tagTypes[$tagType] ?? ucfirst($tag
|
||||
|
||||
<?php renderTagGroup('Déjà taggués', $_current, true); ?>
|
||||
<?php renderTagGroup('Valeurs connues dans d\'autres articles', $_known, false); ?>
|
||||
<?php if (empty($_known)): ?>
|
||||
<?php renderTagGroup('Abréviations détectées', $_abbrevs, false, true); ?>
|
||||
<?php renderTagGroup('Noms composés détectés', $_camel + $_proper, false, true); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (empty($suggestions)): ?>
|
||||
<p class="text-muted">Aucun terme détecté dans cet article.</p>
|
||||
|
||||
Reference in New Issue
Block a user