|
Joined: Feb 2011
Posts: 36
newbie
|
newbie
Joined: Feb 2011
Posts: 36 |
Is there a way to hide the whos online box from members and bee seen by Admin and Mods?
I need all the help I can get.
|
|
|
|
Joined: Jun 2010
Posts: 58
journeyman
|
journeyman
Joined: Jun 2010
Posts: 58 |
yes, bookmark the who's online page (click on the title "who's online" to find it), then edit header.tpl in control panel to delete the display of the who's online link in the header. Also set who's online to hidden, in Portal Layout in control panel. most members dont know the URL of the page
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
I believe they want to have the portal box only show for admin/mod's; if they wanted that system itself admin/mod only there is a tick in the online.inc.php file (scripts folder) that sets it to that.
|
|
|
|
Joined: Feb 2011
Posts: 36
newbie
|
newbie
Joined: Feb 2011
Posts: 36 |
Gizmo, Im not finding it in the php file?
I need all the help I can get.
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
File: scripts/online.inc.php Find: function page_online_gpc () {
return array(
"input" => array(
),
"wordlets" => array("online"),
"user_fields" => "t2.USER_TIME_FORMAT, t2.USER_TOPIC_VIEW_TYPE",
"regonly" => 0,
"admin_only" => 0,
"admin_or_mod" => 0,
);
}
change to: function page_online_gpc () {
return array(
"input" => array(
),
"wordlets" => array("online"),
"user_fields" => "t2.USER_TIME_FORMAT, t2.USER_TOPIC_VIEW_TYPE",
"regonly" => 0,
"admin_only" => 0,
"admin_or_mod" => 1,
);
}
|
|
|
|
Joined: Dec 2003
Posts: 6,562 Likes: 78
|
Joined: Dec 2003
Posts: 6,562 Likes: 78 |
I knew the answer to this already. But in my mind I have always questioned the format of the operator.
=> does not appear in the php manual at least I can't find it. But >= does appear as a greater than equal to operator.
Why is it => in the ubb scripts?
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
it's not a comparison operator. it's an array / key assignment eg:
$p = array();
$p['foo'] = 'bar';
can be written the same as: $p = array (
"foo" => "bar"
);
|
|
|
|
Joined: Dec 2003
Posts: 6,562 Likes: 78
|
Joined: Dec 2003
Posts: 6,562 Likes: 78 |
Grasshopper says I see now master!
I always assumed the format was a operator. And could never find the value in the scripts.
But now that makes since. Also because I never looked a couple lines above. To see it was an array not a value statement.
Thank you for the enlightenment.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Ruben, check your PT's, I'll teach you all about arrays/multi dimensional arrays ...
|
|
|
|
Joined: Jun 2010
Posts: 58
journeyman
|
journeyman
Joined: Jun 2010
Posts: 58 |
When I do the above, regular members can still see the portal box, but cannot get access to the who's online page. Is there something in this setting that needs to be changed?
$Private = 0;
if ($user['USER_MEMBERSHIP_LEVEL'] != "Administrator") {
$Private = 1;
}
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
Grasshopper says I see now master! i see you snatched the pebbles outta my hand now.. you may walk on the rice paper, pick up the burning hot iron and wander out into the snow
|
|
|
|
Joined: Jun 2010
Posts: 58
journeyman
|
journeyman
Joined: Jun 2010
Posts: 58 |
When I do what was mentioned here, regular members can still see the portal box, but cannot get access to the who's online page, if they happen to have it bookmarked. Is there something in this setting that needs to be changed? $Private = 0;
if ($user['USER_MEMBERSHIP_LEVEL'] != "Administrator") {
$Private = 1;
}
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
The Who's Online page really has nothing to do with the island... We where recommending turning the island off and just using the page.
|
|
|
|
Joined: Jun 2010
Posts: 58
journeyman
|
journeyman
Joined: Jun 2010
Posts: 58 |
Ah ok thanks for the clarification
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
1 members (ahmed047),
892
guests, and
151
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|