PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
djyeo
Hangin' Around


Joined: Sep 22, 2003
Posts: 26

PostPosted: Wed Oct 08, 2003 5:07 am Reply with quote Back to top

Hi,
Does anyone know how to disable the total number of members in site info block, so only admin can see it.
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Wed Oct 08, 2003 8:43 am Reply with quote Back to top

You mean like in my block where it says

Overall xxxx
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
djyeo
Hangin' Around


Joined: Sep 22, 2003
Posts: 26

PostPosted: Wed Oct 08, 2003 2:44 pm Reply with quote Back to top

thats it...the total number of members...can I hide it?
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Wed Oct 08, 2003 2:47 pm Reply with quote Back to top

Sure. Find this line
Code:
$content .= "<img src=\"images/blocks/ur-guest.gif\" height=\"14\" width=\"17\"> "._BOVER.": <b>$numrows1</b><br />\n<hr>\n";
and modify it to
Code:
if (is_admin($admin)) {
    $content .= "<img src=\"images/blocks/ur-guest.gif\" height=\"14\" width=\"17\"> "._BOVER.": <b>$numrows1</b><br />\n<hr>\n";
}
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
djyeo
Hangin' Around


Joined: Sep 22, 2003
Posts: 26

PostPosted: Wed Oct 08, 2003 2:54 pm Reply with quote Back to top

where can I find that line? which file?
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Wed Oct 08, 2003 2:56 pm Reply with quote Back to top

Well it will be in whatever the file is that points to that block. It might be blocks/block-Site_Info.php or blocks/block-User_Info.php or something else even. It varies from installation to installation.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
djyeo
Hangin' Around


Joined: Sep 22, 2003
Posts: 26

PostPosted: Wed Oct 08, 2003 2:58 pm Reply with quote Back to top

thank you
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

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