Jump to content


Photo
- - - - -

"Member(s)" Issue


  • Please log in to reply
No replies to this topic

#1 Frank

Frank

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 29 October 2006 - 07:45 PM

A lot of script have "Member(s)" or something like that but, with a simple PHP script you can change that to Member or Memebers:

if ($members = 1) {
echo 'There is ' . $memeber . ' member online.';
}
//No one will see this since, they would see themselves but, here it is...
elseif ($memeber = 0) {
echo 'There is no one online.';
}
else {
echo 'There are ' . $members . ' online.';
}

This is common sense but, no one really uses it so, i thought i would post it here...

and if you have bandwidth issues you could do something like:

<?PHP
if ($connected >= 25) {
echo 'Max amount of users connected.';
}
else {
?>
your site
<?PHP 
} 
?>

and these would require a user online script...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users