Welcome, Guest. Please Login or Register.
April 26, 2025, 05:09:13 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 10588 times)
Robbie
Noobie
*
Posts: 48


Trendhost.net

ICQ - 54598099deloodgieter@wanadoo.nl WWW
Re:[code] Show IP in Profile
« Reply #15 on: April 27, 2002, 12:52:44 PM »
Reply with quote

it does'nt work for me because the ip number is an old one and will not update after i've logged out/in
any id's?
Logged

PabUK
Full Member
***
Posts: 136


I eat llamas!

WWW
Re:[code] Show IP in Profile
« Reply #16 on: April 27, 2002, 02:38:30 PM »
Reply with quote

I'm not sure but I think the IP address was added to the profile by Jeff after myself and a few others requested such a feature for security purposes. I assume it was not completed which is why it is not displayed in the profile anyway. Perhaps it does not update when you log in, did you check the code to see if it does?
Logged


944 Topics, 15010 Posts, 180 Members as of 30th April
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:[code] Show IP in Profile
« Reply #17 on: April 27, 2002, 03:46:08 PM »
Reply with quote

It updates on login and profile changes...
Logged

Robbie
Noobie
*
Posts: 48


Trendhost.net

ICQ - 54598099deloodgieter@wanadoo.nl WWW
Re:[code] Show IP in Profile
« Reply #18 on: April 27, 2002, 10:33:04 PM »
Reply with quote

not for me
Logged

Koth
Jr. Member
**
Posts: 91


Your mother was a ham sandwich.

Re:[code] Show IP in Profile
« Reply #19 on: April 28, 2002, 09:14:21 PM »
Reply with quote

Ok any tips on integrating this one with the mood mod, what happens is either the IP shows where it should and instead of the mood smiley and description or it doesnt show at all depending on where I put the

memberIP,
in the last instruction
Logged


 
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:[code] Show IP in Profile
« Reply #20 on: April 30, 2002, 07:57:37 PM »
Reply with quote

Here we go... (I'll release a patch to fix this later)

Here's the fix to make moods work with this IP mod:

Find this line in Profile.php under ViewProfile()
  # 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'");

Replace it with this:
  # 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,mood,mood_filename FROM {$db_prefix}members WHERE memberName='$user'");

Then find this line:
EOT;
   if ($memsettings[27] != "") {
print <<<EOT
$moodtxt[2]: ><img src="$imagesdir/$memsettings[27].gif" alt="$memsettings[26]">-$memsettings[26]<BR><BR>
EOT;
}
print <<<EOT


Replace it with this:
EOT;
   if ($memsettings[28] !="") {
print <<<EOT
$moodtxt[2]: ><img src="$imagesdir/$memsettings[28].gif" alt="$memsettings[27]">-$memsettings[27]<BR><BR>
EOT;
}
print <<<EOT


Hope this helps!
« Last Edit: April 30, 2002, 10:33:24 PM by Anonymous Jedi » Logged
Delinquently insane
Foolish One
YaBB God
*****
Posts: 529


The One Surpassed By God!!!!

Re:[code] Show IP in Profile
« Reply #21 on: April 30, 2002, 09:07:30 PM »
Reply with quote

ONe Small Problem? I Cant Get The EOT Commands To Work Right I Added The Code Like Specified But Keep Getting A Parse Error.. The EOT Statement You Gave Wont Work.. Is There Something Wrong With My Configuration?


find this :
<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><tr>

under add:

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

This IS Rhight Right?

I Kepp Getting A Parse Error Not With Your Code But With The } Near This part of the code

EOT;


footer();
   obExit();
}

Any help would be nice  :)
Logged

ALL MODS Cancelled projected terminated
Delinquently insane
Foolish One
YaBB God
*****
Posts: 529


The One Surpassed By God!!!!

Re:[code] Show IP in Profile
« Reply #22 on: April 30, 2002, 10:10:09 PM »
Reply with quote

Hm...Since I Couldnt Get It To Work I Just Made Some Modifications .. I Just Added The Ip To The Members List And Have The Members List Only Visible To Mods Admins And Developers.. My Forum Members Cant See The Memberslist.. Also Same To The Profile Only Visible By Admins Mods Etc.I Just turned that one off.. Until I Can Figure Out This Issue I Guess Ill Have To Leave It This Way  :)
Logged

ALL MODS Cancelled projected terminated
Johan Tenge
Noobie
*
Posts: 3


I'm cool

Re:[code] Show IP in Profile
« Reply #23 on: June 02, 2002, 03:12:59 PM »
Reply with quote

HELP!!!

I did what i needed to do but it does'nt work.

The hole profile page is crappity smacked up.

When i want to sea someones profile i get this:

I am an admin, and this is my profile. I selected an avatar and everything that needs to be there but it wont show up.

Help me please
« Last Edit: June 03, 2002, 05:15:34 PM by Johan Tenge » Logged
Ally6
Jr. Member
**
Posts: 70


I'm a llama.......watch it i spit!

Re:[code] Show IP in Profile
« Reply #24 on: July 06, 2002, 07:36:12 PM »
Reply with quote

Ive tried to install this mod twice and it isn't showing in the profile page.  Id really find this mod useful, Jedi would u have a look at my file if i send it to you? Doh its not yr mod lol, i shud have said Wiziwig would u mind taking a look?
« Last Edit: July 06, 2002, 10:55:48 PM by Ally6 » Logged
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[code] Show IP in Profile
« Reply #25 on: July 09, 2002, 04:54:44 AM »
Reply with quote

Jedi~ is that a mod to Moods or to this?
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Surfy
Sr. Member
****
Posts: 458


I'm a llama!

Re:[done][code]1.4.1/1.4.0 Show IP in Profile
« Reply #26 on: October 02, 2002, 12:45:45 PM »
Reply with quote

I have installed it, but it doesnt show the ip :-(

It shows this: 1031208186

What is wrong?
Logged
1979Z28
Sr. Member
****
Posts: 324


WWW
Re:[done][code]1.4.1/1.4.0 Show IP in Profile
« Reply #27 on: October 04, 2002, 06:21:29 AM »
Reply with quote

I don't know about everybody else, but I was able to get it to work perfectly. :) Only modification to this I might suggest, is to place it just below the Avatar Picture, for a little easier reading, rather than in the jumble beween the registration date, and other info in there
« Last Edit: October 04, 2002, 07:03:20 AM by 1979Z28 » Logged
CrimSon_ReD
Full Member
***
Posts: 170


RED, WHITE & BLUE - enUFF saiD!!

WWW
Re:[done][code]1.4.1/1.4.0 Show IP in Profile
« Reply #28 on: November 05, 2002, 07:00:59 PM »
Reply with quote

I got the ip but I also recieved my template out of wack and I also recieved a few errors onscreen of commans that should not be displayed in the user profile...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

is that correct?

Logged

CrimSon_ReD
Full Member
***
Posts: 170


RED, WHITE & BLUE - enUFF saiD!!

WWW
Re:[done][code]1.4.1/1.4.0 Show IP in Profile
« Reply #29 on: November 05, 2002, 07:22:17 PM »
Reply with quote

Cause this is the error im getting:EOT;

if (Administrator != "Administrator"){ print <<
EOT;} print <<  

This appears right on the top of the profile page over the people's info.
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.016 seconds with 18 queries.