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

changing the sort for the links validation process

Quote Reply
changing the sort for the links validation process
Currently when validating new link submissions, the pending links appear from newest to oldest. How would I change the sort so that the oldest (pending) links would appear first during the validation process?

I believe this would be done in the Admin_HTML.pm for the html_validate_form but I'm unsure of the syntax/line of code.

Thanks in advance!
Ralph


I beleive this would be done in the Admin_HTML.pm for the html_validate_form but I'm unsure of the syntax/line of code.

Thanks in advance!
Ralph
Quote Reply
Re: changing the sort for the links validation process In reply to
Look at:

$to_validate = $val->query ( { mh => 10, Mode => 'Validate' } );

in sub html_validate_form in Admin_HTML.pm. Change that to:

$to_validate = $val->query ( { mh => 10, Mode => 'Validate', sb => 'ID' so => 'ASC' } );

should get you oldest links first (although I think this would be the default behaviour).

Cheers,

Alex
Quote Reply
Re: changing the sort for the links validation process In reply to
I _just_ posted a whole thread on that, about 5 days ago!!

Doesn't _anyone_ read the forum first any more???? Smile


http://www.gossamer-threads.com/scripts/forum/resources/Forum9/HTML/000587.html




------------------
POSTCARDS.COM -- Everything Postcards on the Internet www.postcards.com
LinkSQL FAQ: www.postcards.com/FAQ/LinkSQL/