News:

Wondering if this will always be free?  See why free is better.

Main Menu

Funny Post Count

Started by Deaks, June 13, 2020, 01:57:56 PM

Previous topic - Next topic

Deaks

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:

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

all you have to do is change it to this
'posts' => $profile['posts'] > 500000 ? $txt['geek'] : ($profile['posts'] == 1337 ? 'leet' : comma_format($profile['posts']))

Whats really fun is you can continue the trend

'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!
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

shadav

 :laugh: this could be fun.... now to figure out how to work this into my forum...

Quote from: Deaks on June 13, 2020, 01:57:56 PM
'posts' => $profile['posts'] > 500000 ? $txt['geek'] : ($profile['posts'] == 1337 ? 'leet' : comma_format($profile['posts']))

looks like you forgot the , at the end

Antechinus

'posts' => $profile['posts'] > 500000 ? $txt['geek'] : ($profile['posts'] == 22407 ? 'Daft bastard' : comma_format($profile['posts']))

Deaks

Oops so I did thanks shadav.

One I just thought of is 1701 = USS Enterprise
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

d3vcho

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"

Advertisement: