Total Users Online - 10/12/2003 12:30 AM
I am using the WOL box hack (not sure who it's by) and I was thinking that it would be neat to have it display a total of both members and guests all in one number. Is there something for this?
<br /> if ($TotalMembs) { <br /> if ($TotalMembs == 1) { <br /> $MembsOnline = str_replace("<<TOTALMEMBS>>","<strong>$TotalMembs</strong>",$pal_Online[1]); <br /> } <br /> else { <br /> $MembsOnline = str_replace("<<TOTALMEMBS>>","<strong>$TotalMembs</strong>",$pal_Online[2]); <br /> } <br />
<br /> $Totally = $TotalMembs + $TotalAnons; <br /> <br /> if ($Totally) { <br /> if ($Totally == 1) { <br /> $MembsOnline = str_replace("<<TOTALMEMBS>>","<strong>$TotalMembs</strong>",$pal_Online[1]); <br /> $MembsOnlineText = "There is <strong>$Totally</strong> person online.<br /><br />"; <br /> } <br /> else { <br /> $MembsOnline = str_replace("<<TOTALMEMBS>>","<strong>$TotalMembs</strong>",$pal_Online[2]); <br /> $MembsOnlineText = "There are <strong>$Totally</strong> total people online.<br /><br />"; <br /> } <br />
<br /> $whosOnline .= "$MembsOnline $AnonsOnline {$pal_Online[7]}"; <br />
<br /> $whosOnline .= "$MembsOnlineText $MembsOnline $AnonsOnline {$pal_Online[7]}"; <br />
<br /> if ($VisMembersOnline) {<br /> if ($TotalVis == 1) {<br /> $VisMembsOnline = "<strong>$TotalVis</strong> visible member $vismemberList";<br /> }<br /> else {<br /> $VisMembsOnline = "<strong>$TotalVis</strong> visible members $vismemberList";<br /> }<br />
<br />$Totally = $TotalVis + $TotalInv + $TotalAnons;<br /><br /> if ($VisMembersOnline) {<br /> if ($TotalVis == 1) {<br /> $VisMembsOnline = "<strong>$TotalVis</strong> visible member $vismemberList";<br /> }<br /> else {<br /> $VisMembsOnline = "<strong>$TotalVis</strong> visible members $vismemberList";<br /> }<br />
<br /> $whosOnline = "$InvMembsOnline$VisMembsOnline$AnonsOnline have been online with in the last 10 minutes.";<br />
<br /> $whosOnline = "There are $Totally people online.<br />$InvMembsOnline$VisMembsOnline$AnonsOnline have been online with in the last 10 minutes.";<br />