Does anybody know if jump.cgi?ID=xxx is supposed to just redirect to the URL of a detail page or a preset field in your database table?
Sep 15, 2003, 9:41 PM
User (150 posts)
Sep 15, 2003, 9:41 PM
Post #3 of 9
Views: 2973
so the URL is the url field in your link? I ask because in my system jump.cgi takes the user to the address in a URL field associated with my link and I'm wondering how in the world it "knows" to use that field to jump to - probably it's specified somewhere...
Sep 16, 2003, 2:14 AM
Veteran / Moderator (18436 posts)
Sep 16, 2003, 2:14 AM
Post #5 of 9
Views: 2966
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!
Sep 16, 2003, 8:04 AM
Veteran / Moderator (18436 posts)
Sep 16, 2003, 8:04 AM
Post #7 of 9
Views: 2961
You would have to modify Jump.pm I think.
to...
$goto = $rec->{$IN->param('Field')};
} else {
$goto = $rec->{URL};
}
... and then call it with something like;
jump.cgi?ID=1234&Field=NewField (or leave the Field= bit off if you want to jump to the URL bit).
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:
$goto = $rec->{URL};to...
Code:
if ($IN->param('Field')) { $goto = $rec->{$IN->param('Field')};
} else {
$goto = $rec->{URL};
}
... and then call it with something like;
jump.cgi?ID=1234&Field=NewField (or leave the Field= bit off if you want to jump to the URL bit).
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!
Sep 16, 2003, 11:25 AM
Veteran / Moderator (18436 posts)
Sep 16, 2003, 11:25 AM
Post #9 of 9
Views: 2950
No, its not special, but it is required if you want to use jump.cgi to redirect to a site....
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!
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!