Welcome, Guest. Please Login or Register.
April 27, 2025, 07:51:48 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Code] Show IPs in posts for mods+admins « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [Code] Show IPs in posts for mods+admins  (Read 1831 times)
df
Noobie
*
Posts: 11


Whisky!

WWW
[Code] Show IPs in posts for mods+admins
« on: May 06, 2002, 11:00:09 AM »
Reply with quote

Recently I had a request from one of my moderators about seeing the IP's from some troublesome posters...

this is a quite simple mod, which will enable Admins + Moderators to see the IP.

not sure how to publish a mod, so here is the mod file I made with BoardMod 2.5/SE, this works against yabbse 1.3.0/1.3.1

save the codeblock as a .mod file, and boardmod should work OK with it...

<id>
ModeratorIP
</id>

<version>
1.0.0
</version>

<mod info>
Shows the IP of posters instead of Logged, if a user has Administrator or Moderator status.
</mod info>

<author>
Stuart George
</author>

<homepage>
http://www.mega-tokyo.com/forum
</homepage>

<edit file>
Sources/Display.php
</edit file>

<search for>
      $mip = $settings[7] == 'Administrator' ? $mip : $txt[511];
      $sendm = '';
</search for>

<replace>
      /* SGEO mod 6/may/02 :: START */
      if($settings[7]=='Administrator')
      {
         $mip = $mip;
      }
      else
      {
         if(in_array($username,$moderators))
         {
            $mip = $mip;
         }
         else
         {
            $mip = $txt[511];
         }
      }
      /* SGEO mod 6/may/02 :: END */
      $sendm = '';
</replace>
« Last Edit: May 06, 2002, 01:43:22 PM by John R » Logged
joshxpcable11
Full Member
***
Posts: 232


Eat my shorts

joshj@pei.eastlink.ca
Re:[Code] Show IPs in posts for mods+admins
« Reply #1 on: May 15, 2002, 10:50:49 AM »
Reply with quote

Can you make a code so no one can see IP's, not evan admins.... this is for my friends board.... not for mine... i wanna see the IP's just incase i get hacked.
Logged

Check out my boards: ~~~J-Boards~~~
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:[Code] Show IPs in posts for mods+admins
« Reply #2 on: May 15, 2002, 11:00:46 AM »
Reply with quote

I don't beleive df(Dark Fiber) will make this, the only reason he posted this code is because he made this hack for his board(http://www.mega-tokyo.com/forum/), he thought it would be usefull so he posted it.

I can help you with this though, there is a really simple way to do this.

Open Display.php and look for

$mip = $settings[7] == 'Administrator' ? $mip : $txt[511];
replace it with:

$mip = $txt[511];
This will remove it even for the admin.
« Last Edit: May 15, 2002, 11:02:10 AM by Chris Cromer » Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
CokeCan
Full Member
***
Posts: 182


WWW
Re:[Code] Show Ips in posts for mods+admins
« Reply #3 on: April 29, 2003, 02:28:56 AM »
Reply with quote

Can someone please update it to 1.5.2? :)
Thanks in advanced!
« Last Edit: April 29, 2003, 02:29:46 AM by CokeCan » Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Code] Show Ips in posts for mods+admins
« Reply #4 on: April 29, 2003, 02:43:40 AM »
Reply with quote

Display.php, find:
      $mip = ($settings[7] == 'Administrator' ? $mip : $txt[511]);

Replace:
      $mip = ($settings[7] == 'Administrator' || $settings[7] == 'Global Moderator' || in_array($username,$moderators) ? $mip : $txt[511]);

-[Unknown]
Logged
CokeCan
Full Member
***
Posts: 182


WWW
Re:[Code] Show Ips in posts for mods+admins
« Reply #5 on: April 29, 2003, 02:57:14 AM »
Reply with quote

Thanks! ;)
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Code] Show IPs in posts for mods+admins « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.029 seconds with 18 queries.