Thank you for feedback. I also ended up doing it that way.If you want it to be secure, you can also use S&R via event here. Alternatively, you could simply set the template variable NEWEST_USER to an empty string (or to false). Both methods would be bot-safe.
I dont like using
display: none
not because of its not bot safe, never had that angle but it for sure is a valid point.My angle was more the risk of conflicting with others extension hiding an entire class.
The BIG problem here is that there are no good solutions. There is only the least bad. And I believe that it is setting NEWEST_USER to false and create a new one.
However Anișor's Comma Stats extension made me think. He is working with the exact same template as I. He does a rewrite of this part of index.php:
Code:
'TOTAL_POSTS'=> $user->lang('TOTAL_POSTS_COUNT', (int) $config['num_posts']),'TOTAL_TOPICS'=> $user->lang('TOTAL_TOPICS', (int) $config['num_topics']),'TOTAL_USERS'=> $user->lang('TOTAL_USERS', (int) $config['num_users']),
Code:
'TOTAL_POSTS' => $this->language->lang('TOTAL_POSTS_COUNT', number_format($this->config['num_posts'])),'TOTAL_TOPICS' => $this->language->lang('TOTAL_TOPICS', number_format($this->config['num_topics'])),'TOTAL_USERS' => $this->language->lang('TOTAL_USERS', number_format($this->config['num_users'])),

I havent figured it out, but the I thought something like this:
Code:
'TOTAL_POSTS'=> $posts_per_days, + $posts_per_years, + $posts_per_topics, +$posts_per_users,'TOTAL_TOPICS'=> same for topics,'TOTAL_USERS'=> this part should have total files, + total users, + newest user, + board start date, board online time,
Im not done thinking about this dilemma. Maybe i will find the perfect solution in the future.
Statistics: Posted by Stoker 4.0 — Fri Feb 21, 2025 4:44 am