Welcome, Guest. Please Login or Register.
June 07, 2024, 03:56:25 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  |  [done][code]1.4.1/1.4.0 Show IP in Profile « previous next »
Pages: 1 2 [3] Reply Ignore Print
Author Topic: [done][code]1.4.1/1.4.0 Show IP in Profile  (Read 9467 times)
thesuperstar
Noobie
*
Posts: 5


thesuperstar

ICQ - 21293396 WWW
Re:[done][code]1.4.1/1.4.0 Show IP in Profile
« Reply #30 on: November 20, 2002, 08:41:12 PM »
Reply with quote

nice, thanks.
Logged

daleguerra
Full Member
***
Posts: 102


Visit our forum: www.portal-hispano.com

Re:[done][code]1.4.1/1.4.0 Show IP in Profile
« Reply #31 on: December 27, 2002, 03:01:41 PM »
Reply with quote

It's really a good mod... it works fine!!!

Only one question...

When the admin edits another user's profile, admin ip address replaces user's real ip address... how to avoid that?

Thank you in advance...

HAPPY NEW YEAR!!!
« Last Edit: December 28, 2002, 04:17:04 PM by daleguerra » Logged

You learn a lot from errors... nothing from successes
De los errores se aprende mucho... de los aciertos nada (Spanish)[/color][/size][/font]
daleguerra
Full Member
***
Posts: 102


Visit our forum: www.portal-hispano.com

Re:[done][code]1.4.1/1.4.0 Show IP in Profile
« Reply #32 on: December 28, 2002, 05:23:49 PM »
Reply with quote

Any idea?  ???... Thanks in advance...
Logged

You learn a lot from errors... nothing from successes
De los errores se aprende mucho... de los aciertos nada (Spanish)[/color][/size][/font]
wizard
Noobie
*
Posts: 13


I'm a llama!

Re:[done][code]1.4.1/1.4.0 Show IP in Profile
« Reply #33 on: January 01, 2003, 07:16:00 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
daleguerra
Full Member
***
Posts: 102


Visit our forum: www.portal-hispano.com

Re:[done][code]1.4.1/1.4.0 Show IP in Profile
« Reply #34 on: January 02, 2003, 10:54:47 PM »
Reply with quote

It looks great, wizard!!!

But i've got the same problem showing IPs.

If Admin edits profiles of users, his IP address is shown instead of user's real IP address...   ???

I know, I must change something in profile.php to avoid that... but what?

Thank you anyway...
Logged

You learn a lot from errors... nothing from successes
De los errores se aprende mucho... de los aciertos nada (Spanish)[/color][/size][/font]
wizard
Noobie
*
Posts: 13


I'm a llama!

Re:[done][code]1.4.1/1.4.0 Show IP in Profile
« Reply #35 on: January 02, 2003, 11:17:16 PM »
Reply with quote

Hello -
I have the same probem too. I don't know the answer to this question. Me I'm just waiting until the user logs in again, and the IP will be correct. As I have a cable modem my IP is always the same, and so I can spot my IP in a minute.
Wizard
Logged
daleguerra
Full Member
***
Posts: 102


Visit our forum: www.portal-hispano.com

Re:[done][code]1.4.1/1.4.0 Show IP in Profile
« Reply #36 on: January 05, 2003, 02:49:50 PM »
Reply with quote

I'll try to find it... ;)

Thank you, wizard!!!
Logged

You learn a lot from errors... nothing from successes
De los errores se aprende mucho... de los aciertos nada (Spanish)[/color][/size][/font]
Pages: 1 2 [3] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [done][code]1.4.1/1.4.0 Show IP in Profile « 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.014 seconds with 17 queries.