Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Forum Script Of PHPBB

Posted on 2004-09-13
4
Medium Priority
?
22,068 Views
Last Modified: 2008-03-04
I Have A Website Which Have A Forum Powered by phpBB 2.0.8.

Now When I Set Someone as moderatot Than Moderator Can Easily Seen The IP Address Of User By Viewing Their Post.
When Moderator Open The New Post Then an Option Seen At Corner Witch Tell "See The  IP Address Of Poster"  I Am The Administrator Of That Website As Well As The Admin Of The Forum.

Now I want Only That The Moderator Can Not Seen Any IP Address Od Poster Or Question Asker.

Is It Possible.
Please Help Me.
0
Comment
Question by:aadilfahad
  • 3
4 Comments
 
LVL 16

Accepted Solution

by:
Sohel Rana earned 2000 total points
ID: 12050583
Hi:

I am using this hack in my board, this will disable to view the ip address for the moderators :

########################################################
## 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 ]------------------------------------------
#

--------------------------------

rsdn
0
 
LVL 16

Expert Comment

by:Sohel Rana
ID: 12102166
Hi there:

Is there any updates ?

rsdn
0
 

Author Comment

by:aadilfahad
ID: 12117847
Thanks Dear ...
0
 
LVL 16

Expert Comment

by:Sohel Rana
ID: 12118044
Thanks for the points.

rsdn
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question