SimplePortal

SimplePortal => Site Discussion => Topic started by: willerby on April 15, 2009, 04:22:02 PM

Title: Project Manager indulgence...
Post by: willerby on April 15, 2009, 04:22:02 PM
Came across what I thought was some odd code in Who's Online block...

Code: [Select]
foreach ($stats['users_online'] as $user)
echo '
<li class="sp_list_indent">', sp_embed_image($user['name'] == 'H' ? 'tux' : 'user'), ' ', $user['hidden'] ? '<em>' . $user['link'] . '</em>' : $user['link'], '</li>';

echo '
</ul>
</div>';

At first I didn't understand what all this was about as it should just be showing the list of users online preceded by a user.png icon (which I wanted to change dependent upon member group).

As I read it, the code seemed to suggested that IF the user was 'H', show an image called 'tux' else show an image called 'user'. Surely not?

Then I noticed this (attached) in your New Release announcemnet and came across a post from your project manager 'H' and it all made sense...

 ;P
Title: Re: Project Manager indulgence...
Post by: Jade Elizabeth on April 15, 2009, 04:30:10 PM
It's called an Easter Egg. :P
Title: Re: Project Manager indulgence...
Post by: willerby on April 15, 2009, 04:56:02 PM
Hi Jade!

Please tell me why?
Title: Re: Project Manager indulgence...
Post by: Eliana Tamerin on April 15, 2009, 05:22:19 PM
http://en.wikipedia.org/wiki/Easter_egg_%28media%29#Software-based
Title: Re: Project Manager indulgence...
Post by: willerby on April 15, 2009, 05:32:43 PM
 :0  Well I've learned something new today
Title: Re: Project Manager indulgence...
Post by: [SiNaN] on April 16, 2009, 01:22:28 AM
I hope there its mentioned that they aren't directly revealed to public to keep the fun going. :P

There are a few more in SP, though. This was the easiest to find. :D
SimplePortal 2.3.8 © 2008-2024, SimplePortal