Clan Adverts

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

 Welcome To Clan Themes 

As the board grows please remember the Search Option

We also monitor Private Messages to stop members from abusing our sites system.

Note!! Anyone thinking of spamming or posting senseless threads to make up their post count will be permanently banned we have a zero tolerance spamming policy here, you've been warned.

Ip tracker module

8 Replies / 1661 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: 9:26 AM


Status: Offline
0.04 posts per day
Medals: 0

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

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: 927.4 Add RepSubtract Rep
votes: 6
Local time: 2:26 PM
Location: Sunny UK !
uk.gif

Status: Offline
0.50 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Clan Themes Theme Guru
Clan Themes Theme Guru
Joined: May 03, 2007
Last Visit: 13 Mar 2010
Posts: 525
Points: 35774 

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  
View user's profileSend private messageVisit poster's website Reply with quote

tazong
Reputation: 1.8 Add RepSubtract Rep
Local time: 9:26 AM


Status: Offline
0.04 posts per day
Medals: 0

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

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: 9:26 AM

blank.gif

Status: Offline
0.14 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: 9:26 AM


Status: Offline
0.04 posts per day
Medals: 0

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

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.



But it doest show any information?
 

 
View user's profileSend private message Reply with quote

tazong
Reputation: 1.8 Add RepSubtract Rep
Local time: 9:26 AM


Status: Offline
0.04 posts per day
Medals: 0

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

View user's profileSend private message Reply with quote




Noto
Reputation: 927.4 Add RepSubtract Rep
votes: 6
Local time: 2:26 PM
Location: Sunny UK !
uk.gif

Status: Offline
0.50 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Clan Themes Theme Guru
Clan Themes Theme Guru
Joined: May 03, 2007
Last Visit: 13 Mar 2010
Posts: 525
Points: 35774 

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

tazong
Reputation: 1.8 Add RepSubtract Rep
Local time: 9:26 AM


Status: Offline
0.04 posts per day
Medals: 0

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

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: 2000.8 Add RepSubtract Rep
votes: 21
Local time: 9:26 AM
Location: Jackson Mississippi
usa.gif

Status: Offline
2.56 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Clan Themes Scripts/Coder
Clan Themes Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 25 Feb 2010
Posts: 3110
Points: 114782 

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 / 1661 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