Previous Thread
Next Thread
Print Thread
Rate Thread
#260503 10/11/2003 5:30 PM
Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
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?

Sponsored Links
BlarC #260504 10/11/2003 6:55 PM
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
You'll need to edit pals/onlinepal.php

Look for:
Code
 <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 />


and replace it with:
Code
 <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 />


Next, look for:
Code
 <br />	$whosOnline .= "$MembsOnline $AnonsOnline {$pal_Online[7]}"; <br />


and replace it with:
Code
 <br />	$whosOnline .= "$MembsOnlineText $MembsOnline $AnonsOnline {$pal_Online[7]}"; <br />


That should do ya!

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Here's an example of what its output looks like.
Attachments
96794-online.gif (0 Bytes, 22 downloads)

Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
DL, I tried to work this into JustDave's WOL hack (attached) but it's a little over my head.
Attachments
96811-wol-box.6.2.setup.txt (0 Bytes, 55 downloads)

BlarC #260507 10/14/2003 9:29 AM
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
It looks like you would...

##
## Find:
##

Code
<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 />


##
## Replace with:
##

Code
<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 />


##
## Find:
##

Code
<br />	$whosOnline = "$InvMembsOnline$VisMembsOnline$AnonsOnline have been online with in the last 10 minutes.";<br />


##
## Replace with:
##

Code
<br />	$whosOnline = "There are $Totally people online.<br />$InvMembsOnline$VisMembsOnline$AnonsOnline have been online with in the last 10 minutes.";<br />


This might work. I don't have this mod installed, so I can't test it.

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 254
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)