Here is a PHP version of my Count_Impressions plugin. Its not actually a pluing, but more of a 'mod'. Heres what you need to do;
1) Upload count.php to where-ever you hold your PHP scripts (usually along with add.cgi, modify.cgi etc). SEE ATTACHED FILE!
2) Add a new field called 'Impressions' to your Links def's. (Database > Links (drop down) > Properties (drop down)...)..make sure it is set to an INT!
3) Add the following to whatever template areas you want to track (i.e category.html, search_results.html etc).
--------------------------------
<?
$i = 0;
foreach ($links_loop as $thing => $val) {
$i++;
$new_array = $links_loop[$thing];
$add[$i] = $new_array[ID];
}
require("/home/dumps/public_html/templates/count.php");
impressions($add[0],$add[1],$add[2],$add[3],$add[4],$add[5],$add[6],$add[7],$add[8],$add[9],$add[10],$add[11],$add[12],$add[13],$add[14],$add[15],$add[16],$add[17],$add[18],$add[19],$add[20],$add[21],$add[22],$add[23],$add[24],$add[25],$add[26],$add[27],$add[28],$add[29],$add[30]);
?>
-------------------
4) replace /home/dumps/public_html/templates/count.php with the location to the script on your server.
That should be it. Obviously this will only work in dynamic mode (page.php)...
Enjoy
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
1) Upload count.php to where-ever you hold your PHP scripts (usually along with add.cgi, modify.cgi etc). SEE ATTACHED FILE!
2) Add a new field called 'Impressions' to your Links def's. (Database > Links (drop down) > Properties (drop down)...)..make sure it is set to an INT!
3) Add the following to whatever template areas you want to track (i.e category.html, search_results.html etc).
--------------------------------
<?
$i = 0;
foreach ($links_loop as $thing => $val) {
$i++;
$new_array = $links_loop[$thing];
$add[$i] = $new_array[ID];
}
require("/home/dumps/public_html/templates/count.php");
impressions($add[0],$add[1],$add[2],$add[3],$add[4],$add[5],$add[6],$add[7],$add[8],$add[9],$add[10],$add[11],$add[12],$add[13],$add[14],$add[15],$add[16],$add[17],$add[18],$add[19],$add[20],$add[21],$add[22],$add[23],$add[24],$add[25],$add[26],$add[27],$add[28],$add[29],$add[30]);
?>
-------------------
4) replace /home/dumps/public_html/templates/count.php with the location to the script on your server.
That should be it. Obviously this will only work in dynamic mode (page.php)...
Enjoy
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!