To be more exact;
...and;
else {
$goto = $rec->{URL};
my $ip = $ENV{REMOTE_HOST} || $ENV{REMOTE_ADDR} || 'None';
my $click_db = $DB->table ('ClickTrack');
my $rows = $click_db->count ( { LinkID => $id, IP => $ip, ClickType => 'Hits' } );
if (! $rows) {
$db->update ( { Hits => \"Hits + 1" }, { ID => $id }, { GT_SQL_SKIP_INDEX => 1 } );
$click_db->insert ( { LinkID => $id, IP => $ip, ClickType => 'Hits', Created => \"NOW()"} );
}
You can see this in admin/Links/Users/Jump.pm.
jump.cgi can do loads of things... i.e show an image, show a file, choose a random link, jump to a custom URL you want..and more. The only thing it doesn't seem to do is jump to the detailed page, whilst incrementing the hit counter. pugdogs 'detailed_page' plugin does this for you.
Cheers
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!
Code:
my $table_name = $IN->param( 'DB' ) || 'Links';...and;
Code:
# Jump to a URL, bump the hit counter. else {
$goto = $rec->{URL};
my $ip = $ENV{REMOTE_HOST} || $ENV{REMOTE_ADDR} || 'None';
my $click_db = $DB->table ('ClickTrack');
my $rows = $click_db->count ( { LinkID => $id, IP => $ip, ClickType => 'Hits' } );
if (! $rows) {
$db->update ( { Hits => \"Hits + 1" }, { ID => $id }, { GT_SQL_SKIP_INDEX => 1 } );
$click_db->insert ( { LinkID => $id, IP => $ip, ClickType => 'Hits', Created => \"NOW()"} );
}
You can see this in admin/Links/Users/Jump.pm.
jump.cgi can do loads of things... i.e show an image, show a file, choose a random link, jump to a custom URL you want..and more. The only thing it doesn't seem to do is jump to the detailed page, whilst incrementing the hit counter. pugdogs 'detailed_page' plugin does this for you.
Cheers
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!