Solved

Forum Script Of PHPBB

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Jump links not quite lining up 18 65
Has anybody used yellowbook.com to grow their business? 2 55
Animated .jpg? 13 57
Advice on Xojo as a development tool over VB. 4 31
Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
The viewer will learn how to count occurrences of each item in an array.
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.

919 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

11 Experts available now in Live!

Get 1:1 Help Now