Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.218
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ?This sh...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriousl...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Ip tracker module
Ip tracker module

8 Replies / 2242 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » General PhpNuke

View previous topic :: View next topic


tazong
Reputation: 1.8 Add RepSubtract Rep
Local time: 10:37 AM


Rocket Noob
Rocket Noob

0.02 posts per day
Medals: 0

Joined: Mar 09, 2008
Last Visit: 07 Jan 2009
Posts: 29
Points: 577 

Post Ip tracker module Posted: Wed Mar 26, 2008 12:47 pm

ok can someone please help - i have downloaded and uploaded the folders and files to right locations but instructions it says:
2. add the following line above the last line in includes/counter.php:
include("modules/IP_Tracking/iptracking.php");

now i cant find this anywhere - can someone please help?
 

 
View user's profileSend private message Reply with quote

Noto
Reputation: 1042.5 Add RepSubtract Rep
votes: 13
Local time: 4:37 PM
Location: Sunny UK !
uk.gif

Site Admin
Site Admin

0.56 posts per day
Medals: 3 (View more...)
Dedication (Amount: 1)
Theme Guru
Theme Guru
Joined: May 03, 2007
Last Visit: 07 Feb 2012
Posts: 967
Points: 60559 

Post Ip tracker module Posted: Wed Mar 26, 2008 1:52 pm

counter.php is in the inculdes folder witch is found in the root of your nuke install.

its saying open up counter.php and add include("modules/IP_Tracking/iptracking.php"); just b4 ?>
 

Tactical Combat Evolved - Sig Showcase  
View user's profileSend private messageVisit poster's website Reply with quote

tazong
Reputation: 1.8 Add RepSubtract Rep
Local time: 10:37 AM


Rocket Noob
Rocket Noob

0.02 posts per day
Medals: 0

Joined: Mar 09, 2008
Last Visit: 07 Jan 2009
Posts: 29
Points: 577 

Post Ip tracker module Posted: Wed Mar 26, 2008 2:11 pm

Code:

<php>sql_query("UPDATE ".$prefix."_counter SET count=count+1 WHERE (type='total' AND var='hits') OR (var='$browser' AND type='browser') OR (var='$os' AND type='os')");
update_points(13);

/* Start Detailed Statistics */

$dot = date("d-m-Y-H");
$now = explode ("-",$dot);
$nowHour = $now[3];
$nowYear = $now[2];
$nowMonth = $now[1];
$nowDate = $now[0];
$sql = "SELECT year FROM ".$prefix."_stats_year WHERE year='$nowYear'";
$resultyear = $db->sql_query($sql);
$jml = $db->sql_numrows($resultyear);
if ($jml <0>sql_query($sql);
   for ($i=1;$i<12>sql_query("INSERT INTO ".$prefix."_stats_month VALUES ('$nowYear','$i','0')");
      if ($i == 1) $TotalDay = 31;
      if ($i == 2) {
         if (date("L") == true) {
            $TotalDay = 29;
         } else {
            $TotalDay = 28;
         }
      }
      if ($i == 3) $TotalDay = 31;
      if ($i == 4) $TotalDay = 30;
      if ($i == 5) $TotalDay = 31;
      if ($i == 6) $TotalDay = 30;
      if ($i == 7) $TotalDay = 31;
      if ($i == 8) $TotalDay = 31;
      if ($i == 9) $TotalDay = 30;
      if ($i == 10) $TotalDay = 31;
      if ($i == 11) $TotalDay = 30;
      if ($i == 12) $TotalDay = 31;
      for ($k=1;$k<TotalDay>sql_query("INSERT INTO ".$prefix."_stats_date VALUES ('$nowYear','$i','$k','0')");
      }
   }
}

$sql = "SELECT hour FROM ".$prefix."_stats_hour WHERE (year='$nowYear') AND (month='$nowMonth') AND (date='$nowDate')";
$result = $db->sql_query($sql);
$numrows = $db->sql_numrows($result);

if ($numrows <= 0) {
   for ($z = 0;$z<23>sql_query("INSERT INTO ".$prefix."_stats_hour VALUES ('$nowYear','$nowMonth','$nowDate','$z','0')");
   }
}

$db->sql_query("UPDATE ".$prefix."_stats_year SET hits=hits+1 WHERE year='$nowYear'");
$db->sql_query("UPDATE ".$prefix."_stats_month SET hits=hits+1 WHERE (year='$nowYear') AND (month='$nowMonth')");
$db->sql_query("UPDATE ".$prefix."_stats_date SET hits=hits+1 WHERE (year='$nowYear') AND (month='$nowMonth') AND (date='$nowDate')");
$db->sql_query("UPDATE ".$prefix."_stats_hour SET hits=hits+1 WHERE (year='$nowYear') AND (month='$nowMonth') AND (date='$nowDate') AND (hour='$nowHour')");

?>


thank you for your help - this is the code from the counter php - where would i insert the code as i dont see it?
 

 
View user's profileSend private message Reply with quote


blackfox_us
Reputation: 283.7 Add RepSubtract Rep
votes: 1
Local time: 10:37 AM

blank.gif

OMG
OMG

0.08 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)

Joined: Oct 04, 2007
Last Visit: 27 Nov 2008
Posts: 122
Points: 3979 

Post Ip tracker module Posted: Wed Mar 26, 2008 2:52 pm

Here it is

Code:
<php>sql_query("UPDATE ".$prefix."_counter SET count=count+1 WHERE (type='total' AND var='hits') OR (var='$browser' AND type='browser') OR (var='$os' AND type='os')");
update_points(13);

/* Start Detailed Statistics */

$dot = date("d-m-Y-H");
$now = explode ("-",$dot);
$nowHour = $now[3];
$nowYear = $now[2];
$nowMonth = $now[1];
$nowDate = $now[0];
$sql = "SELECT year FROM ".$prefix."_stats_year WHERE year='$nowYear'";
$resultyear = $db->sql_query($sql);
$jml = $db->sql_numrows($resultyear);
if ($jml <0>sql_query($sql);
   for ($i=1;$i<12>sql_query("INSERT INTO ".$prefix."_stats_month VALUES ('$nowYear','$i','0')");
      if ($i == 1) $TotalDay = 31;
      if ($i == 2) {
         if (date("L") == true) {
            $TotalDay = 29;
         } else {
            $TotalDay = 28;
         }
      }
      if ($i == 3) $TotalDay = 31;
      if ($i == 4) $TotalDay = 30;
      if ($i == 5) $TotalDay = 31;
      if ($i == 6) $TotalDay = 30;
      if ($i == 7) $TotalDay = 31;
      if ($i == 8) $TotalDay = 31;
      if ($i == 9) $TotalDay = 30;
      if ($i == 10) $TotalDay = 31;
      if ($i == 11) $TotalDay = 30;
      if ($i == 12) $TotalDay = 31;
      for ($k=1;$k<TotalDay>sql_query("INSERT INTO ".$prefix."_stats_date VALUES ('$nowYear','$i','$k','0')");
      }
   }
}

$sql = "SELECT hour FROM ".$prefix."_stats_hour WHERE (year='$nowYear') AND (month='$nowMonth') AND (date='$nowDate')";
$result = $db->sql_query($sql);
$numrows = $db->sql_numrows($result);

if ($numrows <= 0) {
   for ($z = 0;$z<23>sql_query("INSERT INTO ".$prefix."_stats_hour VALUES ('$nowYear','$nowMonth','$nowDate','$z','0')");
   }
}

$db->sql_query("UPDATE ".$prefix."_stats_year SET hits=hits+1 WHERE year='$nowYear'");
$db->sql_query("UPDATE ".$prefix."_stats_month SET hits=hits+1 WHERE (year='$nowYear') AND (month='$nowMonth')");
$db->sql_query("UPDATE ".$prefix."_stats_date SET hits=hits+1 WHERE (year='$nowYear') AND (month='$nowMonth') AND (date='$nowDate')");
$db->sql_query("UPDATE ".$prefix."_stats_hour SET hits=hits+1 WHERE (year='$nowYear') AND (month='$nowMonth') AND (date='$nowDate') AND (hour='$nowHour')");
include("modules/IP_Tracking/iptracking.php");
?>
 

 
View user's profileSend private messageSend e-mail Reply with quote

tazong
Reputation: 1.8 Add RepSubtract Rep
Local time: 10:37 AM


Rocket Noob
Rocket Noob

0.02 posts per day
Medals: 0

Joined: Mar 09, 2008
Last Visit: 07 Jan 2009
Posts: 29
Points: 577 

Post Ip tracker module Posted: Wed Mar 26, 2008 3:32 pm

Ok thank you for that - i added the line where stated and uploaded - i activated the module and it states that its activated.

Image Has Been Resized, Click To Enlarge.


But it doest show any information?
 

 
View user's profileSend private message Reply with quote

tazong
Reputation: 1.8 Add RepSubtract Rep
Local time: 10:37 AM


Rocket Noob
Rocket Noob

0.02 posts per day
Medals: 0

Joined: Mar 09, 2008
Last Visit: 07 Jan 2009
Posts: 29
Points: 577 

Post Ip tracker module Posted: Wed Mar 26, 2008 5:50 pm

I tried reinstalling again but not even thou i activate in modules - it says that it is deactivated - realy really confused?
 

 
View user's profileSend private message Reply with quote


Noto
Reputation: 1042.5 Add RepSubtract Rep
votes: 13
Local time: 4:37 PM
Location: Sunny UK !
uk.gif

Site Admin
Site Admin

0.56 posts per day
Medals: 3 (View more...)
Dedication (Amount: 1)
Theme Guru
Theme Guru
Joined: May 03, 2007
Last Visit: 07 Feb 2012
Posts: 967
Points: 60559 

Post Ip tracker module Posted: Wed Mar 26, 2008 9:29 pm

Can u post a link to your site, and tell us what the module is called.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

tazong
Reputation: 1.8 Add RepSubtract Rep
Local time: 10:37 AM


Rocket Noob
Rocket Noob

0.02 posts per day
Medals: 0

Joined: Mar 09, 2008
Last Visit: 07 Jan 2009
Posts: 29
Points: 577 

Post Ip tracker module Posted: Thu Mar 27, 2008 12:38 am

###################################################
# #
# Instructions to Install the IP Tracking Module #
# #
# Scott Rubin - phpnuke id: scottr #
# http://www.ierealtor.com - 2/2003 #
# #
###################################################

Installation Instructions:

1. copy the IP_Tracking/ directory and it's files
to under the main modules/ directory

2. add the following line above the last line in includes/counter.php:
include("modules/IP_Tracking/iptracking.php");

3. * this step only for new install or upgrade from release prior to 3.2.2 .
move the iptrackingtable.php file to your server root directory,
(same directory as your config.php file),
and load into your browser (yourdomain.com/iptrackingtable.php).
OR
apply iptrackingtable.sql against your database for first time install only.

4. That's It !
configuration is done in modules/IP_Tracking/ipconfig.php file
using your favorite text editor. (default values already set)

5. If you want users to access this,
activate the IP Tracking module thru Administration - Modules

OK THIS IS THE IP TRACKER I DOWNLOADED


the site its set on is www.733t.org but i have deactivated it - first time round it did install and was activated but showed no ips like screenshot above - so i tried a reinstall doing exactly the same thing but this time when i activated the module - it sad that the module wasnt activated even thou i just did it in admin panel.
Hope this helps - many thanx for your time in trying to help.
Angel
 

 
View user's profileSend private message Reply with quote

floppy
Reputation: 2087.2 Add RepSubtract Rep
votes: 22
Local time: 10:37 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.73 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 27 Jan 2012
Posts: 3313
Points: 132023 

Post Ip tracker module Posted: Thu Mar 27, 2008 12:40 am

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

Why not just use ip tracking with nuke sentinel?
 

Phpnuke Downloads | VMaxxRx Male Enhancement  
View user's profileSend private messageVisit poster's website Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » General PhpNuke


 
8 Replies / 2242 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
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
You cannot attach files in this forum
You can download files in this forum