Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

[Plugin] Count_Impressions PHP Version...

Quote Reply
[Plugin] Count_Impressions PHP Version...
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)...Wink

Enjoy Smile

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!
Subject Author Views Date
Thread [Plugin] Count_Impressions PHP Version... Andy 6729 Jul 5, 2002, 6:45 AM
Thread Re: [Andy] [Plugin] Count_Impressions PHP Version...
Paul 6593 Jul 5, 2002, 6:52 AM
Thread Re: [Paul] [Plugin] Count_Impressions PHP Version...
Andy 6635 Jul 5, 2002, 8:44 AM
Thread Re: [Andy] [Plugin] Count_Impressions PHP Version...
Paul 6580 Jul 5, 2002, 8:49 AM
Thread Re: [Paul] [Plugin] Count_Impressions PHP Version...
Andy 6609 Jul 5, 2002, 8:53 AM
Thread Re: [Andy] [Plugin] Count_Impressions PHP Version...
Paul 6610 Jul 5, 2002, 8:56 AM
Thread Re: [Paul] [Plugin] Count_Impressions PHP Version...
Andy 6590 Jul 5, 2002, 9:58 AM
Thread Re: [Andy] [Plugin] Count_Impressions PHP Version...
Paul 6578 Jul 5, 2002, 10:06 AM
Thread Re: [Paul] [Plugin] Count_Impressions PHP Version...
Andy 6585 Jul 5, 2002, 10:18 AM
Thread Re: [Andy] [Plugin] Count_Impressions PHP Version...
Paul 6566 Jul 5, 2002, 10:21 AM
Post Re: [Paul] [Plugin] Count_Impressions PHP Version...
Andy 6562 Jul 5, 2002, 10:26 AM
Post Re: [Andy] [Plugin] Count_Impressions PHP Version...
brewt 6565 Jul 5, 2002, 12:47 PM