Image Tag Tracking - RMB Scripting
You appear not to have an account with us, Click HERE to register an account...
RMB Scripting
Navigation
  Home
  Contact
  FAQ
  Forum
  Topsites
  Members
  Affiliates
  Arcade <-- New!
  IoxHost
Downloads
  Templates
  Scripts
  Fonts
  Image Sets
  Software
  Other
 
Tutorials
  .htaccess
  Photoshop
  C/C++
  CSS
  Macromedia Flash
  MySQL
  PHP
  PHP - User System
  HTML
  Javascript
  Macintosh
  Macromedia Fireworks
  Visual Basic
  Visual C#
  Windows
  Python
  Other
 
Latest Tutorials
RMB User Commenting Sy...
Easy Navigation Integr...
Decorate Basic Icon
paragraph shortner
Convert Email address ...
Latest Comments
Badge System
Pet system
Pet system
Badge System
Report & Warn Script
Stats
Total Members: 597 [241]
Total Tutorials: 284
Newsest User: andrerds
Todays Unique Hits: 90
Users Online: 0
 
6 Guests
Poll
What do you look for in a web host?
Price
Uptime
Reviews
Customer Service
Size of Company
Main Content
Tutorial: Image Tag Tracking By whalleyboi09
PHP Image Tracking
**************************
By Trevor Johnson
**************************
Some Credits To DanielXP
For Help With Minor Problems
**************************

Question's:

Why?
Because i own a layout site for Nexopia.com
and i need to track some of my layouts without the use
of Javascript, PHP / MYSQL (directly) so an image is the best way

How?
Simple, Just Use The Good Ole Img Tag wich is Everywhere!
trust me Its on forum's Profiles Web Pages, BBCODE, HTML

To Use It All You have To Do is
1) Create Your Key With The Generator (Just in case in comes with a Seceret Key Function If You want to expand the code)

2) create your simple tag like so
Ex. 1

BBcode:
   
CODE:
[img=http://mysite.com/path/to/image/image.png?key=4LoBbEZd4sRX1nYh2JfY3F92]


HTML:
   
CODE:
<img src="http://mysite.com/path/to/image/image.php?key=4LoBbEZd4sRX1nYh2JfY3F92" />


to disguise Your image link like an actual image

you must use .htaccess & Mod_Rewrite to succeed this

But It's Optional

How To Install

Run This In PhpMyAdmin Or What Ever You Have

   
CODE:

CREATE TABLE IF NOT EXISTS `hits` (
`unique` int(6) NOT NULL,
`total` int(7) NOT NULL,
`key` varchar(40) NOT NULL,
`username` varchar(55) default NULL,
`secret` varchar(40) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;


Now Download These Scripts From The RMB PasteBin

Image Tracking Script
call this image.php (can be changed)
Tracking Script

call this Key.php (can be changed but you need to edit the script)
Image Tracking Key Generator Script
Key Generator

Note: I know Its Not Complete But More Features Coming Soon Like A Function To Grab The Hits Also
A Cookie Checker To see If Cookies Are Enabled If Not it Will Switch To Sessions
For Better Compatibility


Comments / Suggestions Are Very Welcome To Help Improve The Script
Difficulty: Moderate
Views: 330
Rating:
Comments
There are currently no comments for this tutorial.
Notice:
Remember to post long codes on our pastbin! - (http://rmb.pastebin.com/)
Add Comment
You must be logged in to post a comment.
Good Afternoon Guest
Username: 
Password: 
Remember Username
Links
RMB Arcade
$2.50 Resellers
Free Domains
Free Games
Affiliates