Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
DraGoN
New Member
New Member



Joined: Oct 25, 2005
Posts: 14

PostPosted: Sat Nov 05, 2005 6:06 pm Reply with quote

Sorry if this has already been asked but after an hour of searching I didn’t find an answer.

I recently started using Ravens user info block and would like to make the hidden user count public. I have tried unsuccessfully to make the changes; apparently I just don’t know what I am doing so I am hoping Raven or someone else can point me in the right direction. I do not want to show the hidden user names just the number of hidden users online at the moment.

Thanks for any help.
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Nov 05, 2005 6:55 pm Reply with quote

If you want to also keep the count in the total, modify this line

if (is_admin($admin)) $who_online_num = $who_online_num + $hiddenTotal;

to

// if (is_admin($admin)) $who_online_num = $who_online_num + $hiddenTotal;

Then, modify this code

if (is_admin($admin)) {
$content .= "<img src=\"images/blocks/ur-hiddenmember.gif\" height=\"14\" width=\"17\" alt=\"\" /> "._HIDDEN.": <b>$hiddenTotal</b><br />\n";
}


to this

// if (is_admin($admin)) {
$content .= "<img src=\"images/blocks/ur-hiddenmember.gif\" height=\"14\" width=\"17\" alt=\"\" /> "._HIDDEN.": <b>$hiddenTotal</b><br />\n";
// }


I haven't tested this but I believe it ill work. I may add that as an option in the next, soon to be released, version.
 
View user's profile Send private message
DraGoN







PostPosted: Sat Nov 05, 2005 7:41 pm Reply with quote

Raven wrote:
If you want to also keep the count in the total, modify this line

if (is_admin($admin)) $who_online_num = $who_online_num + $hiddenTotal;

to

// if (is_admin($admin)) $who_online_num = $who_online_num + $hiddenTotal;


Thanks Raven it worked but I also had to modify this line to keep the total online count correct:

$who_online_num = $guest_online_num + $member_online_num;

To this:

$who_online_num = $guest_online_num + $member_online_num + $hiddenTotal;
 
Raven







PostPosted: Sat Nov 05, 2005 9:18 pm Reply with quote

Instead, change your modification back and try

if (is_admin($admin)) $who_online_num = $who_online_num + $hiddenTotal;

to

/* if (is_admin($admin))*/ $who_online_num = $who_online_num + $hiddenTotal;
 
DraGoN







PostPosted: Sat Nov 05, 2005 11:56 pm Reply with quote

That works nicely also.

Thanks for the help.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©