Advertisement:

Author Topic: Funny Post Count  (Read 1184 times)

Offline Deaks

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 22,516
  • Gender: Male
    • trekkiesforyes on Facebook
    • pouvik on GitHub
    • @@deakinbryan on Twitter
    • YES
Funny Post Count
« on: June 13, 2020, 01:57:56 PM »
So this is one that used to be  really popular and can bring some fun into your forum, Simply say when a user hits a certain post count they will get a custom phrase.  For example the most common is when someone hits 1337 they get the word leet.  A really easy way to do this is by editing one file and that is Load.php in your sources directory.

Look for:

Code: [Select]
'posts' => $profile['posts'] > 500000 ? $txt['geek'] : comma_format($profile['posts']),
all you have to do is change it to this
Code: [Select]
'posts' => $profile['posts'] > 500000 ? $txt['geek'] : ($profile['posts'] == 1337 ? 'leet' : comma_format($profile['posts']))
Whats really fun is you can continue the trend

Code: [Select]
'posts' => $profile['posts'] > 500000 ? $txt['geek'] : ($profile['posts'] == 1337 ? 'leet' : $profile['posts'] == 69 ? 'Oh Yeah' : $profile['posts'] == 666 ? 'ALL HAIL SATAN' : $profile['posts'] == 11 ? 'Legs 11' : $profile['posts'] == 50 ? 'Bullseye' : $profile['posts'] == 3141 ? '3.14159' : $profile['posts'] == 42 ? 'Answer is' : comma_format($profile['posts'])),
Please remember BACK UP YOUR FILE BEFORE DOING THIS

However it is a good way to customise your forum a bit!

Online shadav

  • Full Member
  • ***
  • Posts: 682
  • Gender: Female
    • Ask The Muslims: A Place To Ask Honest Questions and Receive Respectful Answers
Re: Funny Post Count
« Reply #1 on: June 13, 2020, 09:45:36 PM »
 :laugh: this could be fun.... now to figure out how to work this into my forum...

Code: [Select]
'posts' => $profile['posts'] > 500000 ? $txt['geek'] : ($profile['posts'] == 1337 ? 'leet' : comma_format($profile['posts']))

looks like you forgot the , at the end

Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,491
  • Master of BBC Abuse
Re: Funny Post Count
« Reply #2 on: June 13, 2020, 10:21:06 PM »
Code: [Select]
'posts' => $profile['posts'] > 500000 ? $txt['geek'] : ($profile['posts'] == 22407 ? 'Daft bastard' : comma_format($profile['posts']))

Offline Deaks

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 22,516
  • Gender: Male
    • trekkiesforyes on Facebook
    • pouvik on GitHub
    • @@deakinbryan on Twitter
    • YES
Re: Funny Post Count
« Reply #3 on: June 14, 2020, 05:48:25 AM »
Oops so I did thanks shadav.

One I just thought of is 1701 = USS Enterprise

Offline d3vcho

  • Sempiterno
  • On Hiatus
  • SMF Hero
  • *
  • Posts: 4,482
  • Gender: Male
    • frandominguez03 on GitHub
Re: Funny Post Count
« Reply #4 on: June 14, 2020, 06:21:41 AM »
I registered in a forum about 10 years ago and they had something similar. Apart of displaying a special message when reaching a certain amount of posts, you'd even get a fancy badge. Numbers like 666, 1313 (community lore) or 1337. It was fun to see.

"Greeting Death as an old friend, they departed this life as equals."