From b4c84f80db8793e604177d51229d562e23f90bfc Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 6 Oct 2021 23:12:21 +0200 Subject: [PATCH 1/4] Lewdposter's proposed fixes --- js/thread-stats.js | 2 +- stylesheets/style.css | 7 +++++++ templates/post_thread.html | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/js/thread-stats.js b/js/thread-stats.js index eb38e2bf..7fd2ac1f 100644 --- a/js/thread-stats.js +++ b/js/thread-stats.js @@ -14,7 +14,7 @@ $(document).ready(function(){ var thread_id = (document.location.pathname + document.location.search).split('/'); thread_id = thread_id[thread_id.length -1].split('+')[0].split('.')[0]; - $('.clear').after('
'); + $('.clear').before('
'); var el = $('#thread_stats'); el.prepend('Page ?'); diff --git a/stylesheets/style.css b/stylesheets/style.css index 059416ab..a4ab484c 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -1965,3 +1965,10 @@ span.strikethrough { span.orangeQuote { color: #FF8C00; } + +#uniqueip > span { + display: block; + float: right; + margin: 0em 1em; +} + diff --git a/templates/post_thread.html b/templates/post_thread.html index 448bbd72..9da3b291 100644 --- a/templates/post_thread.html +++ b/templates/post_thread.html @@ -100,7 +100,7 @@ {% endfor %}
{% if not index %} -
Unique IPs: {{ iparray|length }}
+
Unique IPs: {{ iparray|length }}
{% endif %} {% if hr %}
{% endif %} From af8b645b2395cf0d3ac0e6202d2fe1793f74e140 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 6 Oct 2021 23:15:46 +0200 Subject: [PATCH 2/4] Adds bar | to unique IP counter --- templates/post_thread.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/post_thread.html b/templates/post_thread.html index 9da3b291..aab48246 100644 --- a/templates/post_thread.html +++ b/templates/post_thread.html @@ -100,7 +100,7 @@ {% endfor %}
{% if not index %} -
Unique IPs: {{ iparray|length }}
+
Unique IPs: {{ iparray|length }} |
{% endif %} {% if hr %}
{% endif %} From ff0e0b8395a4935a920af6ebeab419fc73bc0735 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 6 Oct 2021 23:17:07 +0200 Subject: [PATCH 3/4] Removes space after bar | --- templates/post_thread.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/post_thread.html b/templates/post_thread.html index aab48246..9df3f2fb 100644 --- a/templates/post_thread.html +++ b/templates/post_thread.html @@ -100,7 +100,7 @@ {% endfor %}
{% if not index %} -
Unique IPs: {{ iparray|length }} |
+
Unique IPs: {{ iparray|length }} |
{% endif %} {% if hr %}
{% endif %} From 91905809574c81d257bd713c48e40c7a7d37f1f2 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 13 Oct 2021 13:50:45 +0200 Subject: [PATCH 4/4] Revert "Sum up stats that nonmakina added" This reverts commit 60755e239673848106276a4706f46e20ef550b25. --- templates/themes/categories/theme.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/templates/themes/categories/theme.php b/templates/themes/categories/theme.php index 58c7d626..86bfa023 100644 --- a/templates/themes/categories/theme.php +++ b/templates/themes/categories/theme.php @@ -144,9 +144,6 @@ $stats['daily_ips'] = count($daily); $stats['weekly_ips'] = count($weekly); $stats['pph'] = array_sum(array_column($stats['boards'], 'pph')); - $stats['hourly_ips'] = array_sum(array_column($stats['boards'], 'hourly_ips')); - $stats['daily_ips'] = array_sum(array_column($stats['boards'], 'daily_ips')); - $stats['weekly_ips'] = array_sum(array_column($stats['boards'], 'weekly_ips')); return $stats; }