Advertisement:

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

Offline spiros

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 1,734
  • 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
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,628
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
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 Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


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: 71,665
    • StoryBB/StoryBB on GitHub
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']),
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline spiros

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 1,734
  • 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
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,628
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
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 Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


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