Welcome, Guest. Please Login or Register.
April 27, 2025, 12:07:16 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

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 2177 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 2.212 seconds with 19 queries.