Solved

Forum Script Of PHPBB

Posted on 2004-09-13
4
21,993 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 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

831 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