Welcome, Guest. Please Login or Register.
April 26, 2025, 04:28:27 PM
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 10587 times)
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
[done][code]1.4.1/1.4.0 Show IP in Profile
« on: April 25, 2002, 03:06:54 PM »
Reply with quote

Show IP in messege view helps track down the users but it won't track em if they don't make a post right? Here's my solution to that administrative delima. Features display IP * ONLY * if viewer is administrator. IP is not shown at all if viewer is anyone else. Your users won't even know it's there! A real simple change.

As my other releases, if you find a better way to create this tweak please publish your results and acknowledge my original works.

[ edit profile.php ]
[ Search for ]
   # get the member's info
   $request = mysql_query("SELECT passwd,realName,emailAddress,websiteTitle,websiteUrl,signature,posts,memberGroup,ICQ,AIM,YIM,gender,personalText,avatar,dateRegistered,location,birthdate,timeFormat,timeOffset,hideEmail,ID_MEMBER,usertitle,karmaBad,karmaGood,lngfile,MSN FROM {$db_prefix}members WHERE memberName='$user'");

[ Replace with ]
   # get the member's info
   $request = mysql_query("SELECT passwd,realName,emailAddress,websiteTitle,websiteUrl,signature,posts,memberGroup,ICQ,AIM,YIM,gender,personalText,avatar,dateRegistered,location,birthdate,timeFormat,timeOffset,hideEmail,ID_MEMBER,usertitle,karmaBad,karmaGood,lngfile,MSN,memberIP FROM {$db_prefix}members WHERE memberName='$user'");

[Search for ]
   $icq = $memsettings[8];
   $memsettings[9] = str_replace("+"," ",$memsettings[9]);;

[ Add After]

   $memberIP = $memsettings[26];

[ search for ]
   $userTitle
        <td><font size=2><b>$txt[86]: </b></font></td>
        <td><font size=2>$memsettings[6]</font></td>
      </tr><tr>
  <td><font size=2><b>$txt[87]: </b></font></td>
        <td><font size=2>$memberinfo</font></td></tr>

[ add after ]

EOT;
   if ($settings[7] != "Administrator")
{
print <<<EOT
   
EOT;
}
   else {
print <<<EOT
      <tr>
   <td width="45%"><font size=2><b>IP: </b></font></td>
<td><font size=2><a href="http://www.nic.com/cgi-bin/whois.cgi?query=$memberIP" target="_blank">$memberIP</font></td>
      </tr>      
EOT;
}
print <<<EOT
« Last Edit: August 20, 2002, 04:26:28 PM by Wiziwig » Logged

Robbie
Noobie
*
Posts: 48


Trendhost.net

ICQ - 54598099deloodgieter@wanadoo.nl WWW
Re:[code] Show IP in Profile
« Reply #1 on: April 25, 2002, 05:23:35 PM »
Reply with quote

add after

insert after

is this the same??
Logged

Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[code] Show IP in Profile
« Reply #2 on: April 25, 2002, 05:26:58 PM »
Reply with quote

Yes it is, sorry! :)

Quote from: Robbie on April 25, 2002, 05:23:35 PMadd after

insert after

is this the same??
Logged

Robbie
Noobie
*
Posts: 48


Trendhost.net

ICQ - 54598099deloodgieter@wanadoo.nl WWW
Re:[code] Show IP in Profile
« Reply #3 on: April 25, 2002, 05:47:55 PM »
Reply with quote

I am doing something wrong , right??

Logged

Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[code] Show IP in Profile
« Reply #4 on: April 25, 2002, 05:53:40 PM »
Reply with quote

Your not an administrator with that account your using, you won't see an IP. You shouldnt however be seeing the title IP either. Mail attach your profile.php to my e-mail address [email protected] and I'll see what you've done wrong.
Logged

Robbie
Noobie
*
Posts: 48


Trendhost.net

ICQ - 54598099deloodgieter@wanadoo.nl WWW
Re:[code] Show IP in Profile
« Reply #5 on: April 25, 2002, 06:09:46 PM »
Reply with quote

Its on its way!!
And i am a admin watching anothers profile!
« Last Edit: April 25, 2002, 06:13:20 PM by Robbie » Logged

Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[code] Show IP in Profile
« Reply #6 on: April 25, 2002, 06:36:48 PM »
Reply with quote

Lemme see..

1. instead of you replacing

   # get the member's info
   $request = mysql_query("SELECT passwd,realName,emailAddress,websiteTitle,websiteUrl,signature,posts,memberGroup,ICQ,AIM,YIM,gender,personalText,avatar,dateRegistered,location,birthdate,timeFormat,timeOffset,hideEmail,ID_MEMBER,usertitle,karmaBad,karmaGood,lngfile,MSN FROM {$db_prefix}members WHERE memberName='$user'");

With

   # get the member's info
   $request = mysql_query("SELECT passwd,realName,emailAddress,websiteTitle,websiteUrl,signature,posts,memberGroup,ICQ,AIM,YIM,gender,personalText,avatar,dateRegistered,location,birthdate,timeFormat,timeOffset,hideEmail,ID_MEMBER,usertitle,karmaBad,karmaGood,lngfile,MSN,memberIP FROM {$db_prefix}members WHERE memberName='$user'");

..

You copied the changed code instead..

I've corrected your mistake and attached replied via email.


Quote from: Robbie on April 25, 2002, 06:09:46 PMIts on its way!!
And i am a admin watching anothers profile!
Logged

Robbie
Noobie
*
Posts: 48


Trendhost.net

ICQ - 54598099deloodgieter@wanadoo.nl WWW
Re:[code] Show IP in Profile
« Reply #7 on: April 25, 2002, 06:45:25 PM »
Reply with quote

Thank you very much
I'm looking forward to it
Logged

Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[code] Show IP in Profile
« Reply #8 on: April 25, 2002, 06:52:59 PM »
Reply with quote

You should of gotten the attached mail by now.

* hint to yabb devs.. enforce page width displays.. Do I hafta correct this mistake for you?? *

Quote from: Robbie on April 25, 2002, 06:45:25 PMThank you very much
I'm looking forward to it
Logged

Ironman
Guest
Re:[code] Show IP in Profile
« Reply #9 on: April 25, 2002, 07:45:30 PM »
Reply with quote

Thank you

Works properly.
I think it's very useful.
Logged
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[code] Show IP in Profile
« Reply #10 on: April 25, 2002, 08:04:09 PM »
Reply with quote

Yep, it's great  ;D
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Robbie
Noobie
*
Posts: 48


Trendhost.net

ICQ - 54598099deloodgieter@wanadoo.nl WWW
Re:[code] Show IP in Profile
« Reply #11 on: April 25, 2002, 10:53:26 PM »
Reply with quote

It works!!
Thank you again!!
Logged

Robbie
Noobie
*
Posts: 48


Trendhost.net

ICQ - 54598099deloodgieter@wanadoo.nl WWW
Re:[code] Show IP in Profile
« Reply #12 on: April 26, 2002, 10:47:32 AM »
Reply with quote

Question:
If the IP number of a member changes , will it change in its profile too??
Logged

Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[code] Show IP in Profile
« Reply #13 on: April 26, 2002, 01:32:44 PM »
Reply with quote

It should. It's a SQL fetched variable. Pulls from data memberIP of the members table, and that record is updated when the user logsin through loginOut.php.

Quote from: Robbie on April 26, 2002, 10:47:32 AMQuestion:
If the IP number of a member changes , will it change in its profile too??
Logged

Robbie
Noobie
*
Posts: 48


Trendhost.net

ICQ - 54598099deloodgieter@wanadoo.nl WWW
Re:[code] Show IP in Profile
« Reply #14 on: April 27, 2002, 09:11:26 AM »
Reply with quote

Ow , ok thnx
Logged

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.015 seconds with 16 queries.