Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: spiros - heinäkuu 31, 2019, 02:35:02 AP

Otsikko: Removing "Posts: I am a geek"
Kirjoitti: spiros - heinäkuu 31, 2019, 02:35:02 AP
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']),
Otsikko: Re: Removing "Posts: I am a geek"
Kirjoitti: Aleksi "Lex" Kilpinen - heinäkuu 31, 2019, 02:54:13 AP
Edit the number to something overly large like 999999, or remove the complete line not just the condition.
Otsikko: Re: Removing "Posts: I am a geek"
Kirjoitti: Arantor - heinäkuu 31, 2019, 02:56:37 AP
You need the line but more like this:


'posts' => comma_format($profile['posts']),
Otsikko: Re: Removing "Posts: I am a geek"
Kirjoitti: spiros - heinäkuu 31, 2019, 03:00:31 AP
Thanks Arantor, that did the trick. Removing the whole line is not an option as it removes post count.
Otsikko: Re: Removing "Posts: I am a geek"
Kirjoitti: Aleksi "Lex" Kilpinen - heinäkuu 31, 2019, 03:08:46 AP
Lainaus käyttäjältä: Arantor - heinäkuu 31, 2019, 02:56:37 AP
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.