Solved

Forum Script Of PHPBB

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
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.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now