Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [scorpioncapital] What does jump.cgi actually DO?

Quote Reply
Re: [scorpioncapital] What does jump.cgi actually DO? In reply to
To be more exact;

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!
Subject Author Views Date
Thread What does jump.cgi actually DO? scorpioncapital 3624 Sep 15, 2003, 4:11 PM
Thread Re: [scorpioncapital] What does jump.cgi actually DO?
ryel01 3523 Sep 15, 2003, 7:26 PM
Thread Re: [ryel01] What does jump.cgi actually DO?
scorpioncapital 3531 Sep 15, 2003, 9:41 PM
Post Re: [scorpioncapital] What does jump.cgi actually DO?
ryel01 3514 Sep 15, 2003, 9:43 PM
Thread Re: [scorpioncapital] What does jump.cgi actually DO?
Andy 3519 Sep 16, 2003, 2:14 AM
Thread Re: [Andy] What does jump.cgi actually DO?
scorpioncapital 3510 Sep 16, 2003, 7:57 AM
Thread Re: [scorpioncapital] What does jump.cgi actually DO?
Andy 3516 Sep 16, 2003, 8:04 AM
Thread Re: [Andy] What does jump.cgi actually DO?
scorpioncapital 3508 Sep 16, 2003, 11:10 AM
Post Re: [scorpioncapital] What does jump.cgi actually DO?
Andy 3497 Sep 16, 2003, 11:25 AM