Commodore 128 Alive!

General => News, views, help & info => Topic started by: Blacklord on March 17, 2007, 09:51 AM

Title: Feature addition
Post by: Blacklord on March 17, 2007, 09:51 AM
Added pip icons to indicate posters ranking (you can see them in the box to the left of each post)

Here's a snip of the code, so you can work out how many pips you get for how many posts you've made "

if($cur_post['num_posts'] > 5000) { $num_pips = 10; }
        elseif($cur_post['num_posts'] > 3000) { $num_pips = 9; }
        elseif($cur_post['num_posts'] > 2000) { $num_pips = 8; }
        elseif($cur_post['num_posts'] > 1000) { $num_pips = 7; }
        elseif($cur_post['num_posts'] > 500) { $num_pips = 6; }
        elseif($cur_post['num_posts'] > 300) { $num_pips = 5; }
        elseif($cur_post['num_posts'] > 100) { $num_pips = 4; }
        elseif($cur_post['num_posts'] > 50) { $num_pips = 3; }
        elseif($cur_post['num_posts'] > 10) { $num_pips = 2; }
        else { $num_pips = 1; }

Lance
Title: Feature addition
Post by: Golan Klinger on March 17, 2007, 03:06 PM
Pip Pip Hooray!

(Someone had to make the joke.)
Title: Feature addition
Post by: Stephane Richard on March 17, 2007, 06:48 PM
lol a star system huh?   Now I know how all the girls in my little black book must feel! roflmao
EhPortal 1.34 © 2025, WebDev