Advertisement:

Author Topic: Removing "Posts: I am a geek"  (Read 1068 times)

Offline spiros

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 1,977
  • Gender: Male
  • A different point of view
    • spiros.doikas on Facebook
    • doikas on LinkedIn
    • @greektranslator on Twitter
    • Greek Translation
Removing "Posts: I am a geek"
« on: July 31, 2019, 02:35:02 AM »
Removing "Posts: I am a geek"

I found this line is Load.php

Code: [Select]
'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.

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

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Project Manager
  • SMF Super Hero
  • *
  • Posts: 20,364
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • Aleksi Kilpinen
Re: Removing "Posts: I am a geek"
« Reply #1 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.
A Finnish Project Manager (Support Specialist)
Happily running multiple SMF 2.x installations.
 Fooling around with an i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Removing "Posts: I am a geek"
« Reply #2 on: July 31, 2019, 02:56:37 AM »
You need the line but more like this:

Code: [Select]
'posts' => comma_format($profile['posts']),
No good deed goes unpunished
All helpful urges should be circumvented

Offline spiros

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 1,977
  • Gender: Male
  • A different point of view
    • spiros.doikas on Facebook
    • doikas on LinkedIn
    • @greektranslator on Twitter
    • Greek Translation
Re: Removing "Posts: I am a geek"
« Reply #3 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.

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Project Manager
  • SMF Super Hero
  • *
  • Posts: 20,364
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • Aleksi Kilpinen
Re: Removing "Posts: I am a geek"
« Reply #4 on: July 31, 2019, 03:08:46 AM »
You need the line but more like this:

Code: [Select]
'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.
A Finnish Project Manager (Support Specialist)
Happily running multiple SMF 2.x installations.
 Fooling around with an i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas