Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How can i make visible for only moderators and admins?
jone68
New
Best Answer
-
1 . adding an option
whosonline.php+ <tr> + <th><?php + echo $this->Form->Checkbox('WhosOnline.Moderators', + "Hide for all the logged users but moderators"); + ?></th> + </tr>
2 . Box
\forum\plugins\WhosOnline\class.whosonlinemodule.php+ $ShowToModerators = (C('WhosOnline.Moderators') ? 1 : 0); + if ($ShowToModerators) $AdminMode=' adm.'; + if ( !$ShowToModerators || ( $ShowToModerators && + $Session->CheckPermission('Garden.Moderation.Manage'))) + { ob_start(); ?>
3 . Profile
default.php+$ConfigurationModel->SetField(array('WhosOnline.Location.Show', 'WhosOnline.Frequency', 'WhosOnline.Hide', 'WhosOnline.Moderators')); +$ShowToModerators = (C('WhosOnline.Moderators') ? 1 : 0); +if ( !$ShowToModerators || ( $ShowToModerators && +$Session->CheckPermission('Garden.Moderation.Manage'))) +{ $SideMenu->AddLink('Options', T('Who\'s Online Settings'), '/profile/whosonline', FALSE, array('class' => 'Popup')); +}
0
Answers
1 . adding an option
whosonline.php
2 . Box
\forum\plugins\WhosOnline\class.whosonlinemodule.php
3 . Profile
default.php