Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: spiros on July 31, 2019, 02:35:02 AM

Title: Removing "Posts: I am a geek"
Post by: spiros on July 31, 2019, 02:35:02 AM
Removing "Posts: I am a geek"

I found this line is Load.php

'posts' => $profile['posts'] > 10000 ? $txt['geek'] : comma_format($profile['posts']),

How can the conditional be removed altogether?

I tried this but the site did not load at all.

'posts' => $profile['posts'] : comma_format($profile['posts']),
Title: Re: Removing "Posts: I am a geek"
Post by: Aleksi "Lex" Kilpinen on July 31, 2019, 02:54:13 AM
Edit the number to something overly large like 999999, or remove the complete line not just the condition.
Title: Re: Removing "Posts: I am a geek"
Post by: Arantor on July 31, 2019, 02:56:37 AM
You need the line but more like this:


'posts' => comma_format($profile['posts']),
Title: Re: Removing "Posts: I am a geek"
Post by: spiros on July 31, 2019, 03:00:31 AM
Thanks Arantor, that did the trick. Removing the whole line is not an option as it removes post count.
Title: Re: Removing "Posts: I am a geek"
Post by: Aleksi "Lex" Kilpinen on July 31, 2019, 03:08:46 AM
Quote from: Arantor on July 31, 2019, 02:56:37 AM
You need the line but more like this:


'posts' => comma_format($profile['posts']),

Thanks, I've played around with that line myself but apparently didn't really remember correctly how it's done.
Should've looked better before answering.