I would like to know how do I keep the (X) validate button checked from the beginning when I review links, so that I just can change to "delete" if I donīt like the site. I hate having to click "validate" on every submitted link.
Jul 29, 2006, 3:53 PM
Novice (38 posts)
Jul 29, 2006, 3:53 PM
Post #2 of 3
Views: 1701
nevermind, I solved it myself! You just have to edit Tools.pm in admin/Links and add the word "checked".
First find:
sub validate_links {
and below that find:
<table border=0 cellpadding=3 cellspacing=2>
<tr><td valign=top rowspan=2><$font><input type="radio" name="validate-$link->{ID}" value="validate" checked>
Validate<br><font size=1>
and there you go!
First find:
sub validate_links {
and below that find:
<table border=0 cellpadding=3 cellspacing=2>
<tr><td valign=top rowspan=2><$font><input type="radio" name="validate-$link->{ID}" value="validate" checked>
Validate<br><font size=1>
and there you go!
Jul 30, 2006, 5:37 AM
Novice (38 posts)
Jul 30, 2006, 5:37 AM
Post #3 of 3
Views: 1682
And to change the number of links to validate per page, simply change:
sub validate_links {
# ------------------------------------------------------------------
# Display a list of links waiting to be validated.
#
my $db = $DB->table ('Links');
my $cat_link = $DB->table ('CatLinks');
my $user_db = $DB->table ('Users');
my $html = $DB->html ( $db, $IN );
my $font = 'font face="Tahoma,Arial,Helvetica" size="2"';
my $nh = $IN->param('nh') || 1;
my $mh = $IN->param('mh') || 25;
in the Tools.pm file.
sub validate_links {
# ------------------------------------------------------------------
# Display a list of links waiting to be validated.
#
my $db = $DB->table ('Links');
my $cat_link = $DB->table ('CatLinks');
my $user_db = $DB->table ('Users');
my $html = $DB->html ( $db, $IN );
my $font = 'font face="Tahoma,Arial,Helvetica" size="2"';
my $nh = $IN->param('nh') || 1;
my $mh = $IN->param('mh') || 25;
in the Tools.pm file.