ich habe bei mir im Board den Mod *Who viewed a topic* von http://mods.db9.dk eingebaut. Soweit eigentlich auch ganz erfolgreich - Nur dass ich als Admin das Icon nicht sehe

Weiss jemand Rat? Vielen Dank.
Code: Alles auswählen
##############################################################
## MOD Title: Who viewed a topic
## MOD Verions: 1.0.3
## Feature: Optional module admin/mod only
## Rev date: 26/12/2003
##
## Author: Niels < ncr@db9.dk > (Niels Chr. Rød) http://mods.db9.dk
##
##############################################################
## Author Notes:
##
## This module make the eye icon of the MOD visible only for
## admins and mods
##
## Do NOT apply this instructions if you haven't installed the
## Who viewed a topic MOD yet!
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------------
#
# Apply ONLY if you have already installed Who viewed a topic
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------------
#
$topic_view_img = ($userdata['session_logged_in'])
#
#-----[ IN-LINE FIND ]----------------------------------------
#
($userdata['session_logged_in'])
#
#-----[ IN-LINE REPLACE WITH ]--------------------------------
#
($userdata['user_level'] == ADMIN || $userdata['user_level'] == MOD)
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM
stell mal die viewtopic.php zum download bereit, wenn rabbit dir nicht helfen konnteDesiWeb hat geschrieben:ich habe bei mir im Board den Mod *Who viewed a topic* von http://mods.db9.dk eingebaut. Soweit eigentlich auch ganz erfolgreich - Nur dass ich als Admin das Icon nicht sehe. Soblad ich mich als ganz normaler User einlogge, sehe ich die Option. Eigentlich wollte ich, dass nur der Admin diese Opion hat und nicht umgekehrt...
Leider war der erste Tipp nicht erfolgreich, deshalb ist hier die Viewtopic als TXT-Datei...Nico Haase hat geschrieben:stell mal die viewtopic.php zum download bereit, wenn rabbit dir nicht helfen konnteDesiWeb hat geschrieben:ich habe bei mir im Board den Mod *Who viewed a topic* von http://mods.db9.dk eingebaut. Soweit eigentlich auch ganz erfolgreich - Nur dass ich als Admin das Icon nicht sehe. Soblad ich mich als ganz normaler User einlogge, sehe ich die Option. Eigentlich wollte ich, dass nur der Admin diese Opion hat und nicht umgekehrt...
Code: Alles auswählen
// Start add - Who viewed a topic MOD
$topic_view_img = ($userdata['user_level'] == ADMIN) ? ' <a href="' . append_sid("topic_view_users.$phpEx?".POST_TOPIC_URL."=$topic_id") . '"><img src="' . $images['icon_view'] . '" alt="' . $lang['Topic_view_users'] . '" title="' . $lang['Topic_view_users'] . '" border="0" /></a>':'';
// End add - Who viewed a topic MOD
Code: Alles auswählen
// Start add - Who viewed a topic MOD
$topic_view_img = ($userdata['user_id'] != ANONYMOUS ) ? ' <a href="' . append_sid("topic_view_users.$phpEx?".POST_TOPIC_URL."=$topic_id") . '"><img src="' . $images['icon_view'] . '" alt="' . $lang['Topic_view_users'] . '" title="' . $lang['Topic_view_users'] . '" border="0" /></a>':'';
// End add - Who viewed a topic MOD
Jetzt ist das Auge zu sehen als normaler User - Als Gast und als Admin sieht man es nicht...Nico Haase hat geschrieben:änder malinCode: Alles auswählen
// Start add - Who viewed a topic MOD $topic_view_img = ($userdata['user_level'] == ADMIN) ? ' <a href="' . append_sid("topic_view_users.$phpEx?".POST_TOPIC_URL."=$topic_id") . '"><img src="' . $images['icon_view'] . '" alt="' . $lang['Topic_view_users'] . '" title="' . $lang['Topic_view_users'] . '" border="0" /></a>':''; // End add - Who viewed a topic MOD
abCode: Alles auswählen
// Start add - Who viewed a topic MOD $topic_view_img = ($userdata['user_id'] != ANONYMOUS ) ? ' <a href="' . append_sid("topic_view_users.$phpEx?".POST_TOPIC_URL."=$topic_id") . '"><img src="' . $images['icon_view'] . '" alt="' . $lang['Topic_view_users'] . '" title="' . $lang['Topic_view_users'] . '" border="0" /></a>':''; // End add - Who viewed a topic MOD
Code: Alles auswählen
if ( ( $userdata['user_id'] == $poster_id && $is_auth['auth_edit'] ) || $is_auth['auth_mod'] )
der Tipp war goldrichtig! Nun funktioniert es auch bei mir ... *megafreu* Vielen lieben Dank für den Support und ein erfolgreiches '05Nico Haase hat geschrieben:dass man es als gast nicht sieht - okay -, aber als admin... hmm.... ich seh, woran es liegt: pack mal die zeile mit $topic_view_img (inkl. kommentar davor und dahinter) vor die zeiledann guckst du mal, ob es einen support zu dem mod gibt (hier im forum mod-datenbank oder auf phpbb.com) und schreibst denen, dass diese zeile im falschen block vorkommt: für admins wird, da $is_auth['auth_mod'] greift, immer der erste if-teil genommen, nur alle normalen benutzer (nicht mal die topic-beginner!) sehen daher das augeCode: Alles auswählen
if ( ( $userdata['user_id'] == $poster_id && $is_auth['auth_edit'] ) || $is_auth['auth_mod'] )
könnte es an der Board-Version liegen, dass es bei Dir funktioniert und bei mir nicht? Ich habe ein 2.0.4 im Einsatz!rabbit hat geschrieben:anmerkung: der MOD läuft ohne probleme so wie in der install.txt beschrieben bei mir seit einer ganzen weile.
nur mods + admins können das image sehen, user und gäste nicht.