Not as far as I know. You could try editing /admin/Links/Jump.pm, so instead of;
Code:
# If we are chosing a random link, then get the total and go to one at random.
if (lc $id eq "random") {
my $total = $db->count(VIEWABLE);
my $offset = int rand $total;
$db->select_options("LIMIT 1 OFFSET $offset");
my $sth = $db->select(qw/ID URL/ => VIEWABLE);
($id, $goto) = $sth->fetchrow_array;
}
...you have;
Code:
# If we are chosing a random link, then get the total and go to one at random.
if (lc $id eq "random") {
my $cond = GT::SQL::Condition->new('URL','LIKE','http://%');
$db->select_options("LIMIT 1","ORDER BY RAND(NOW)");
my $sth = $db->select(qw/ID URL/ => VIEWABLE => $cond);
($id, $goto) = $sth->fetchrow_array;
}
Please be sure to back the original code though, as it *may* not work (its not tested).
Hope that helps.
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!