Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 7th November 2013, 17:08
hatijahat hatijahat is offline
Senior Member
 
Join Date: Dec 2012
Malaysia
Posts: 43
Default IP Address from what country?
hello guys,

need a little help here, i have try to install geopip in my vps,
but still in the site didn't mention from what country the IP Address from.
is there any code needed for this?

Click the image to open in full size.

as you can see, in the red box i have highlight, is still mention there [unknown] after i install the geoip.
Reply With Quote
  #2  
Old 7th November 2013, 20:22
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
latest version of geoip ?
Reply With Quote
  #3  
Old 7th November 2013, 23:31
Dingo38 Dingo38 is offline
Senior Member
 
Join Date: Oct 2013
P2P
Posts: 35
Default
What it's doing is picking up previous visits before you installed it.Thats why it's classing that ip as unknown..Should they return using that ip now you have it installed then it will show you the info.
Reply With Quote
  #4  
Old 8th November 2013, 04:28
hatijahat hatijahat is offline
Senior Member
 
Join Date: Dec 2012
Malaysia
Posts: 43
Default
Quote:
Originally Posted by DeNeDe View Post
latest version of geoip ?
geoip ver = Running latest 1.4.7~beta6+dfsg-1
don't know if this correct or not, i'm getting it from my system.
Reply With Quote
  #5  
Old 8th November 2013, 21:24
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 721
Default
Quote:
Originally Posted by hatijahat View Post
hello guys,

need a little help here, i have try to install geopip in my vps,
but still in the site didn't mention from what country the IP Address from.
is there any code needed for this?
Save the two atached files to www root and then save this in bittorrent.php

PHP Code:
function cipf($ipf) {
    
    include (
"geoip.inc");

    
$handle geoip_open("GeoIP.dat"GEOIP_STANDARD);

    switch (
geoip_country_code_by_addr($handle$ipf)) {
        case 
"UK" :
            
$flag_out "<img src='/pic/flag/uk.gif'>";
            break;
        case 
"USA" :
            
$flag_out "<img src='/pic/flag/.gif'>";
            break;
        case 
"ZA" :
            
$flag_out "<img src='/pic/flag/southafrica.gif'>";
            break;
        default :
            
$flag_out "not defined!";
    }

    Return 
"IP address $ipf located in " geoip_country_name_by_addr($handle$ipf) . " (country code " geoip_country_code_by_addr($handle$ipf) . ") $flag_out";

    
geoip_close($handle);

Then replace your current Ip address line in userdetails.php with this

PHP Code:
print ("<tr><td class=rowhead>Country</td><td align=left>".Cipf($user["ip"])."</td></tr>\n"); 
You will need to add more flags in the switch Ive only added three..
Attached Thumbnails
Untitled.png  
Attached Files
File Type: rar geo.rar (311.1 KB, 63 views)
__________________




Please Support Majority Report


You can contact me on Skype live:phesadent.elect but please let me know first.


If you are ever need me desperately then please email me at dan.oak44@gmail.com and I will contact u within a week.


Due to free time I'm able to help interested member's with their tracker.

Please Note!
Depending on your requests I will charge you for my assistance for Tracker installs and mods.
All my mods are custom and prices will very depending on the request.
I'm able to install any tracker and mods including themes.

Please PM me

Reply With Quote
The Following 2 Users Say Thank You to firefly007 For This Useful Post:
hatijahat (9th November 2013), lacos (24th December 2014)
  #6  
Old 15th November 2014, 17:00
hatijahat hatijahat is offline
Senior Member
 
Join Date: Dec 2012
Malaysia
Posts: 43
Default
thanks.. and so millions thanks for the code and guide.. this working for me.. :D

Last edited by Krypto; 16th November 2014 at 03:15. Reason: No need to Quote a Post that's directly above your own.
Reply With Quote
Reply

Tags
address , country , ip

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 01:17. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.