Seite 1 von 1
Ist es möglich
Verfasst: 05.10.2004 18:29
von danysahne333
das Moderatoren auch sehen können, das andere versteckt sind? momentan könne das ja nur admins. aber wie macht man es das es auch mods sehen könne. gibts da ein snipet oder mod für?
dany
Verfasst: 05.10.2004 22:38
von rabbit
hi,
versuch's mal hiermit:
Code: Alles auswählen
##############################################################
## MOD Title: Allow Moderators to See Invisible
## MOD Author: gfmorrs < gfmorris@gfmorris.com > (Geof F. Morris) http://gfmorris.com/
## MOD Description: Allows all moderators to see invisible users.
## MOD Version: 1.0.0
##
## Installation Level: (Easy)
## Installation Time: 1 Minute
## Files To Edit: includes/page_header.php
## Included Files: (n/a)
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes: Many thanks for morpheus2matrix to pointing out where to make a modification.
## This might be the simplest MOD ever for phpBB. :) Feel free to give him all
## credit, for I am just simply writing this up.
##
##############################################################
## MOD History:
##
## 2003-12-06 - Version 1.0.0
## - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
if ( $row['user_allow_viewonline'] || $userdata['user_level'] == ADMIN )
#
#-----[ REPLACE WITH ]------------------------------------------
#
if ( $row['user_allow_viewonline'] || $userdata['user_level'] == ADMIN || $userdata['user_level'] == MOD )
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Verfasst: 05.10.2004 22:40
von danysahne333
cool danke.

scheint genau das zu sein was ich suche

Verfasst: 05.10.2004 23:25
von danysahne333
wie schaff ich es das es beim last visit mod auch klappt?
ich denke es muss in deisem codde was geändert werden:
index.php
Code: Alles auswählen
$users_lasthour++;
}
$users_today_list.=( $todayrow['user_allow_viewonline'])?' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $todayrow['user_id']) . '"' . $style_color .'>' . $todayrow['username'] . '</a>,' : (($userdata[user_level]==ADMIN) ? ' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $todayrow['user_id']) . '"' . $style_color .'><i>' . $todayrow['username'] . '</i></a>,' : '');
if (!$todayrow['user_allow_viewonline']) $logged_hidden_today++;
else $logged_visible_today++;
}
if ($users_today_list)
kann mir da nochmal jemand helfen?
Verfasst: 06.10.2004 10:03
von Acid
$users_today_list.=( $todayrow['user_allow_viewonline'])?' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $todayrow['user_id']) . '"' . $style_color .'>' . $todayrow['username'] . '</a>,' : (($userdata[user_level] == ADMIN || $userdata[user_level] == MOD ) ? ' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $todayrow['user_id']) . '"' . $style_color .'><i>' . $todayrow['username'] . '</i></a>,' : '');
Wenn´s keine anderen Userlevel (ausser User/Gäste) im Forum gibt bzw. wenn es welche gibt und diese ebenfalls die versteckten User sehen sollen, kann man auch anstatt
$userdata[user_level] == ADMIN || $userdata[user_level] == MOD dann
$userdata[user_level] >= '1' schreiben (ist kürzer

).
Verfasst: 06.10.2004 10:52
von danysahne333
danke dir.
