Seite 1 von 1

Bestimmte Buttons für Moderatoren ausblenden??

Verfasst: 16.01.2006 18:17
von austrian-i
wie kann bestimmte buttons für moderatoren ausblenden (zb IP-Button, Thread-Sperrungs-Button ect)?

geht das überhaupt`?

Verfasst: 16.01.2006 18:29
von maxl
Für die IP habe ich da was:

Code: Alles auswählen

######################################################## 
## Mod Title: Ip_only_by_admin 
## Mod Version: 1.0.0 
## Author: Meik Sievertsen (acyd.burn@gmx.de) 
## Description: 
##   This little mod allows only admins to view ip's 
##            Works with phpBB2 RC4 and greater 
## 
## Installation Level: easy 
## Installation Time: 1 Minute 
## Files To Edit: 2 
## Included Files: 0 
######################################################## 
## 

# 
#-----[ Open modcp.php ]------------------------------------------ 
# 

# 
#-----[ AFTER ]------------------------------------------ 
# 
// 
// End Auth Check 
// 

# 
#-----[ ADD ]------------------------------------------ 
# 
if (($mode == 'ip') && ($userdata['user_level'] != ADMIN)) 
{ 
   $mode = '';    
} 

# 
#-----[ Save and close modcp.php ]------------------------------------------ 
# 

# 
#-----[ Open viewtopic.php ]------------------------------------------ 
# 

# 
#-----[ REPLACE ]---------- around line 984 ------------------------------- 
# 
$ip_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_ip'] . '" alt="' . $lang['View_IP'] . '" title="' . $lang['View_IP'] . '" border="0" /></a>';

# 
#-----[ WITH ]------------------------------------------ 
# 
   if( $userdata['user_level'] == ADMIN ) 
   { 
     $ip_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_ip'] . '" alt="' . $lang['View_IP'] . '" title="' . $lang['View_IP'] . '" border="0" /></a>';

   } 
   else 
   { 
      $ip_img = ''; 
   } 

# 
#-----[ Save and close viewtopic.php ]------------------------------------------ 
# 
l.g. maxl

Verfasst: 16.01.2006 18:31
von austrian-i
danke maxl!

gibts den mod oder so was ähnliches für die anderen buttons?