Solved

Forum Script Of PHPBB

Posted on 2004-09-13
4
22,002 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 16

Accepted Solution

by:
Sohel Rana earned 500 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Fulfillment API php code sample 1 76
Setting up JqueryUI with MVC 5 in Visual Studio 5 50
Website Question - New Site 3 33
PHP Web Development 6 25
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to dynamically set the form action using jQuery.

749 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