PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
DraGoN
New Member
New Member


Joined: Oct 25, 2005
Posts: 14

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

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: 16987
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
DraGoN
New Member
New Member


Joined: Oct 25, 2005
Posts: 14

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

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;
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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;
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
DraGoN
New Member
New Member


Joined: Oct 25, 2005
Posts: 14

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

That works nicely also.

Thanks for the help.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum