www.clan-themes.co.uk :: View topic - Ip tracker module
Welcome To Clan Themes
As the board grows please remember the Search Option and we hope you find our community useful.
We also monitor Private Messages to stop members from abusing our sites system. If you are asking for assistance please provide your site link and nuke version, Thanks.
Joined: Mar 09, 2008
Last Visit: 15 May 2008
Posts: 20 Points: 123
Ip tracker modulePosted:
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?
Noto
Reputation: 481.4
Local time: 3:17 PM Location: Sunny UK !
Status: Offline
0.79 posts per day Medals: 2 (View more...)
Clan Themes Theme Guru Joined: May 03, 2007
Last Visit: 16 May 2008
Posts: 300 Points: 11318
Joined: Mar 09, 2008
Last Visit: 15 May 2008
Posts: 20 Points: 123
Ip tracker modulePosted:
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?
Joined: Oct 04, 2007
Last Visit: 16 May 2008
Posts: 133 Points: 3585
Ip tracker modulePosted:
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");
?>
Joined: Mar 09, 2008
Last Visit: 15 May 2008
Posts: 20 Points: 123
Ip tracker modulePosted:
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.
floppy
Reputation: 1915.8 votes: 8
Local time: 10:17 AM Location: Jackson Mississippi
Status: Offline
3.20 posts per day Medals: 1 (View more...)
Clan Themes Scripts/Coder Joined: Nov 14, 2006
Last Visit: 16 May 2008
Posts: 1759 Points: 16531
Ip tracker modulePosted:
Thu Mar 27, 2008 12:40 am
8 Replies / 370 Views Page 1 of 1 All times are GMT
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