Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> BBtoNuke Mods
Author Message
sek-sports
Hangin' Around



Joined: Jul 18, 2007
Posts: 49

PostPosted: Wed Nov 21, 2007 1:03 am Reply with quote

Hey all,

Don't really want to go into why I am looking for this but can anyone come up with or no of a pre-exisiting code that takes away a moderators ability to check a posters IP. It seems like you could just do away with some code but I want it where admins still have this function.
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Thu Nov 22, 2007 1:45 am Reply with quote

The ip functionality seems to be in
modules/Forums/modcp.php starting at
Code:


case 'ip':


After this, I think we can add a check to determine if they are an admin. If not, then just stop.

Code:


$is_admin = ( $userdata['user_level'] == ADMIN && $userdata['session_logged_in'] ) ? TRUE : 0;
if (!$is_admin) die();

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
sek-sports







PostPosted: Fri Nov 23, 2007 6:49 pm Reply with quote

That works, thanks man!
 
evaders99







PostPosted: Fri Nov 23, 2007 10:40 pm Reply with quote

Sure, its not the most user-friendly approach (mod: "why can't I see IP, I only get a blank screen") but you could always remove the buttons in your template somehow. It would take more code than I have time for, but the concept above should help you out there.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> BBtoNuke Mods

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©