PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Goldberg
New Member
New Member


Joined: Feb 09, 2004
Posts: 18

PostPosted: Sun Feb 29, 2004 3:56 am Reply with quote Back to top

I've got phpnuke 7.1.1NSN installed and I'm trying to get a modified userinfo block (original by
Only registered users can see links on this board!
Get registered or login to the forums!
working.

If you go to
Only registered users can see links on this board!
Get registered or login to the forums!
you can see the block on the right site.

Ive got:
- user avartar
- welcome ....

- Your IP: (working)
- Your host: (not working)

Right now it's giving the IP, just to show you where my problem is. When I change the code from:
Code:
$content .= "<tr><td width=\"100%\"><left>Your IP: $ip</left></td></tr>\n";
$content .= "<tr><td width=\"100%\"><left>Your Host: $ip</left></td></tr></table></div><hr noshade size=1>\n";

to
Code:
$content .= "<tr><td width=\"100%\"><left>Your IP: $ip</left></td></tr>\n";
$content .= "<tr><td width=\"100%\"><left>Your Host: $hostnm</left></td></tr></table></div><hr noshade size=1>\n";

Changing the second $ip to $hostnm I get an empty line instead of this
example:
Your Host: ip***d***a.speed.planet.nl (the *** are numbers). When I look at the IP_tracking module it's working just fine. What am I missing??
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Sun Feb 29, 2004 6:21 pm Reply with quote Back to top

I know nothing of this mod, so I don't know where the variables/values come from. I could only suggest that it may be a global declaration or an sql call. In other words, where ever the $ip variable comes from, is $hostnm originated there too? If so, look at all the places that $ip is used. Make sure that if $ip is being selected in an sql select statement, that $hostnm is too. If $ip is being declared in a global statement, make sure that $hostnm is too.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Goldberg
New Member
New Member


Joined: Feb 09, 2004
Posts: 18

PostPosted: Mon Mar 01, 2004 12:41 am Reply with quote Back to top

Code:
$content .= "<tr><td width=\"100%\"><left>Your IP: ".$_SERVER['REMOTE_ADDR']."</left></td></tr>\n";
$content .= "<tr><td width=\"100%\"><left>Your Host: ".gethostbyaddr($_SERVER['REMOTE_ADDR'])."</left></td></tr></table></div><hr noshade size=1>\n";
This works.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum