boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

customise team restrictions

 
Post new topic   Reply to topic    boardom Forum Index -> How to ?
View previous topic :: View next topic  
Author Message
xtheunderdog



Joined: 15 Jun 2004
Posts: 10

PostPosted: Wed Oct 06, 2004 9:17 pm    Post subject: customise team restrictions Reply with quote

i want to customise the edit file so that users under level 8 cannot view the ip addresses left by commenters. how would i do that?
Back to top
View user's profile Send private message
stevem



Joined: 15 Mar 2003
Posts: 241

PostPosted: Wed Oct 06, 2004 10:36 pm    Post subject: Reply with quote

In b2-include/b2edit.showposts.php, you need to do something like:
Replace
Code:
(IP: <?php comment_author_IP() ?>)
by
Code:
<?php
get_currentuserinfo();
if ($user_level>=8) {
 echo "(IP:";
 comment_author_IP() ;
 echo ")";
}
?>

I haven't checked this so could be some errors!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> How to ? All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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


Powered by phpBB 2 © 2001, 2002 phpBB Group