View previous topic :: View next topic |
Author |
Message |
xtheunderdog
Joined: 15 Jun 2004 Posts: 10
|
Posted: Wed Oct 06, 2004 9:17 pm Post subject: customise team restrictions |
|
|
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 |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 257
|
Posted: Wed Oct 06, 2004 10:36 pm Post subject: |
|
|
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 |
|
 |
|