Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Validation questions

Quote Reply
Validation questions
Hi,
I would like to configure the way the links to validate will appear.

1) How can I change the ordering? =>the oldest ones on the top
2) How could I make appear numbers at the bottom of the pages which would be links to the pages that would follow????
3) Finally, how could I make the added date of the link the one of the validation???
thanx in advance,

theuls

---------------------------------
surfootball.com your soccer index
Quote Reply
Re: Validation questions In reply to
theuls,

1) This is the default behavior for validation
2) Either Validate or Delete the links you can see. When you do that they
are replaced with the next ones waiting to be validated. If you want to look at the full
list of waiting links, someone else will have to help you out with that :-)
3) This is also the default behavior

All the best
Shaun

Quote Reply
Re: Validation questions In reply to
thanx qango for your 2 replies.... But how can I make these changes??????????

theuls

---------------------------------
surfootball.com your soccer index
Quote Reply
Re: Validation questions In reply to
If I'm right, , to change the ordering of the validation list (the oldest first), I have to change something in this:
In Reply To:
sub validate_records {
# --------------------------------------------------------
# This routine takes a list of records to either delete, validate
# or modify and does the appropriate action.
#
my ($in, $db) = @_;
my (@delete_list, @modify_list, @validate_list, %links, %error, @alt_cats,
$error, $key, $id, $val, $record, $result, $lid, $alt, $field);

foreach $key ($in->param()) {
($in->param($key) =~ /^delete/) and push @delete_list, $key;
($in->param($key) eq "validate") and push @validate_list, $key;
($in->param($key) eq "modify") and push @modify_list, $key;
($key =~ /^(.*)-(\d+)$/) and $links{$2}{$1} = $in->param($key);
}
But what????


theuls

---------------------------------
surfootball.com your soccer index
Quote Reply
Re: Validation questions In reply to
theusl,

You don't need to change anything - that's the default behavour for validation oldest first!!

If you want to change it to display the newest first I think you'll have to change sub html_validate_form in Admin_HTML.pm - although I'm not sure if thats the exact location.

All the best
Shaun

Quote Reply
Re: Validation questions In reply to
theuls,

Apologies, I have since found for myself that the validation links appear to be showing the latest/newest first. I found the solution in a previous thread:

http://www.gossamer-threads.com/...ew=&sb=&vc=1

See the second post from Alex, it worked for me!

All the best
Shaun