Welcome, Guest. Please Login or Register.
April 26, 2025, 10:26:05 PM
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  |  Show IP in Member List « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Show IP in Member List  (Read 2176 times)
wizard
Noobie
*
Posts: 13


I'm a llama!

Show IP in Member List
« on: January 01, 2003, 07:16:45 PM »
Reply with quote

Hello -
Show IP in Members List Mod by Bill Nilan (Wizard)
I loved the Show IP in Profile Mod, but found that I could not see, or compare all the IP's at once. So I modifyed the Members List to show IP's. Only the Administrator can see this new field. This is for a YaBBSE version 1.4.1 board. I have no idea if it will work in version 1.5.0. This mod is based on the Show IP in Profile Mod by Wiziwig. You must have this Mod installed in order for my Mod to work. Please note that you will have to remove Bar chart post. As this feature is redundant anyway I have not idea why it was not removed long ago.  

(Memberlist.php)

Find this line
global $txt,$cgi,$color,$img,$TopAmmount,$action,$scripturl,$MOST_POSTS,$TableHeader,$TableFooter,$username,$db_prefix;

Add this line after
global $settings;

Find this line
if($action == "mltop") { $Sort .= "$txt[305] $txt[411] $TopAmmount $txt[306]"; } else { $Sort .= "<a href=\"$cgi;action=mltop\"><font size=2 class=\"text1\" color=\"$color[titletext]\">$txt[305] $txt[411] $TopAmmount $txt[306]</font></a>"; }

Add this line after
if ($settings[7] == "Administrator"){$superman = "Member IP"; }

Find and Remove this line
<td class="catbg" bgcolor="$color[catbg]"><b><font size=2>$txt[21]</font></b></td>

Add this line after
<td class="catbg" bgcolor="$color[catbg]"><b><font size=2>$superman</font></b></td>

Find this line
$row['memberGroup'] = isset($row['memberGroup'])?$row['memberGroup']:'';

Add this line
$row['memberIP'] = isset($row['memberIP'])?$row['memberIP']:'';

Find and Remove this line
<td class="windowbg" bgcolor="$color[windowbg]">$Bar</td>

Replace it with these lines
EOT;
if ($settings[7] != "Administrator")
{
print <<<EOT

EOT;
}
else {
print <<<EOT
   <td class="windowbg" bgcolor="$color[windowbg]">$row[memberIP]</td>
EOT;
}
print <<<EOT

Find and Remove this line (no this is not a typo you will have to do this a second time)
<td class="windowbg" bgcolor="$color[windowbg]">$Bar</td>

Replace it with these lines
EOT;
if ($settings[7] != "Administrator")
{
print <<<EOT

EOT;
}
else {
print <<<EOT
   <td class="windowbg" bgcolor="$color[windowbg]">$row[memberIP]</td>
EOT;
}
print <<<EOT

Find and Remove this line (no this is not a typo you will have to do this a third time)
<td class="windowbg" bgcolor="$color[windowbg]">$Bar</td>

Replace it with these lines
EOT;
if ($settings[7] != "Administrator")
{
print <<<EOT

EOT;
}
else {
print <<<EOT
   <td class="windowbg" bgcolor="$color[windowbg]">$row[memberIP]</td>
EOT;
}
print <<<EOT




 
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  Show IP in Member List « 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.027 seconds with 17 queries.