You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 278 guest(s) and 29 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Meissenation's AIM Link Tracker [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
--Nemesis--
Corporal
Corporal


Joined: Jun 17, 2005
Posts: 63


PostPosted: Mon Jul 18, 2005 8:37 am Reply with quoteBack to top

does this work with phpnuke 7.6 is the database info correct? cause its not saving stuff when i click on the link u make.. i was thinking.. doesnt it need your host name? like $trackerhost = blahblah; then put that in the other places it says localhost and replace with the $trackerhost

Here is the readme file of this prog...

Before I go into any detail at all about this script,
I want to take the time to thank all the wonderful
channel members of #php from irc.freenode.com! Without
their wonderful expertise and help, this script would've
never gotten ANYWHERE!

Meissenation Tracker
Copyright (c) 2005
meissen@meissenation.com

Meissenation Tracker is a simple PHP-Nuke add-on that allows
you to use PHP Nuke for your very own AIM link tracker! After
growing tired of using IMChaos and other free link trackers,
I downloaded my own and thought: WTF why not put it into Nuke?!
So here it is! Meissenation's AIM Link Tracker. I don't mind if
you want to edit or tweak or improve on the script, but if you do
let me know so I can add the tweaks to the master script: I'm 100%
new to PHP scripting so I'm sure others will find better ways to
do what I've done. THANKS!

Installation:
Installation is very very easy!
1. Open html/track/index.php and edit the three variables at the top so the file can access your database
2. Upload all the files in the HTML folder to the respetive location.

Making your links:
If you are capable of running a PHP Nuke site, I guess you're capable of making your own link!
The address for links you want tracked is:

http://yoursite.com/track/?site=http://sitenamehere.com/&name=%n


Code:
<?
// Meissenation's AIM Link Tracker
// File: index.php
// Description: Captures the information from the user when they click a link in your AIM profile
//
// Copyright 2005 by Meissenation.com
// If you edit this file, please email me so I can improve the master script
// Email address is meissen@meissenation.com
// Thanks!
//
//
// Just wanted to put a quick thank you to everyone at #PHP on irc.freenode.com for all their wonderful help they gave me!
// This script never would've been completed without their excellent help!
//

//
//These are the only three variables you need to edit!
$trackerusername = coolybr;
$trackerpassword = b8c0861b;
$trackerdatabase = coolybr_nuke1;
// Do not edit anything below this line!!
//

//
//Define variables
//
$hour = date('H') + 1;
$TrackerDate = date("Y-d-m {$hour}:i:s");
$sn = $_GET['name'];
$trackerurl = $_GET['site'];
$trackerIP = $_SERVER['REMOTE_ADDR'];

//
// Connect to the database and select the proper database
//
$db = mysql_connect("localhost",$trackerusername,$trackerpassword);
mysql_select_db($trackerdatabase,$db);

//
// Look for a match to see if the screen name has visited the site before
//
$result = mysql_query("SELECT screen_name,url,times,info_id FROM tracker_userinfo WHERE screen_name = '$sn' AND url = '$trackerurl'");

//
// If that person hasn't, insert a new entry for them.
//
if (!$result) {
   $times = 1;
    $sql  = "INSERT INTO tracker_userinfo (screen_name, url, user_IP, tracktime, times) VALUES ('$sn', '$trackerurl', '$trackerIP', '$TrackerDate', '1')";
   mysql_query($sql);
}

//
// If they have, double check to make sure the URLs match, and then add 1 to the times the person has clicked the link
//
else {
   $row = mysql_fetch_row($result);
   
   if ($row[1] == $trackerurl) {
      $times = $row[2] + 1;
      $trackerid = $row[3];
//      $result = mysql_query("select count(*) from tracker_userinfo  WHERE info_id = '$trackerid'");
//      $row = mysql_fetch_row($result);
//      print_r($row);
      $sql = "UPDATE tracker_userinfo SET times='$times' WHERE info_id = '$trackerid'";
      mysql_query($sql) or die(mysql_error());
      $sql2 = "UPDATE tracker_userinfo SET tracktime='$TrackerDate' WHERE info_id = '$trackerid'";
      mysql_query($sql2) or die(mysql_error($sql2));
   }
   else {
      $times = 1;
      $sql  = "INSERT INTO tracker_userinfo (screen_name, url, user_IP, tracktime, times) VALUES ('$sn', '$trackerurl', '$trackerIP', '$TrackerDate', '$times')";
      mysql_query($sql);
   }
}

//
// Transfer to the URL
//
   header("Location: $trackerurl");
?>

_________________
Image
Find all posts by --Nemesis--View user's profileSend private messageSend e-mailAIM Address
compwiz3000
Nuke Cadet
Nuke Cadet


Joined: Jul 29, 2005
Posts: 1


PostPosted: Fri Jul 29, 2005 5:02 am Reply with quoteBack to top

There is the really neet AIM Tracker, that I use. You can register for it by going to http://www.trackmyprofile.com
It tracks who views your AIM Profile!
Find all posts by compwiz3000View user's profileSend private message
blueskies45
Nuke Cadet
Nuke Cadet


Joined: Mar 02, 2006
Posts: 1


PostPosted: Thu Mar 02, 2006 4:37 pm Reply with quoteBack to top

There are many websites out there that offer AIM profile trackers so you don't have to code you own. By far the best is www.imlinktracker.com because it allows you to track links such as your myspace profile, blog and photo album.
Find all posts by blueskies45View user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.072 Seconds - 371 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::