| Author |
Message |
djyeo Hangin' Around

Joined: Sep 22, 2003 Posts: 26
|
Posted:
Wed Oct 08, 2003 5:07 am |
|
Hi,
Does anyone know how to disable the total number of members in site info block, so only admin can see it. |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Wed Oct 08, 2003 8:43 am |
|
You mean like in my block where it says
Overall xxxx |
|
|
|
 |
djyeo Hangin' Around

Joined: Sep 22, 2003 Posts: 26
|
Posted:
Wed Oct 08, 2003 2:44 pm |
|
thats it...the total number of members...can I hide it? |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Wed Oct 08, 2003 2:47 pm |
|
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";
} |
|
|
|
|
 |
djyeo Hangin' Around

Joined: Sep 22, 2003 Posts: 26
|
Posted:
Wed Oct 08, 2003 2:54 pm |
|
where can I find that line? which file? |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Wed Oct 08, 2003 2:56 pm |
|
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. |
|
|
|
 |
djyeo Hangin' Around

Joined: Sep 22, 2003 Posts: 26
|
Posted:
Wed Oct 08, 2003 2:58 pm |
|
|
|
 |
|
|
|
|