Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [eupos] Override the isValidated in the Detailed - how?

Quote Reply
Re: [eupos] Override the isValidated in the Detailed - how? In reply to
Hi,

Ah, cool - didn't see that =)

In that case, you could edit (in /admin/Links.pm) it to:

Code:
sub VIEWABLE() {
require GT::SQL::Condition;
my $cond;
if($IN->param('preview_page')) {
$cond = GT::SQL::Condition->new(isValidated => '=' => 'Yes');
} else {
$cond = GT::SQL::Condition->new(isValidated => '=' => 'Yes');
}

$cond->add(ExpiryDate => '>=' => time) if $CFG->{payment}->{enabled};
$cond;
}

Then call the detailed page via:

page.cgi?g=Detailed/ID.html;preview_page=1

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!
Subject Author Views Date
Thread Override the isValidated in the Detailed - how? index 3251 Apr 18, 2007, 5:44 AM
Thread Re: [index] Override the isValidated in the Detailed - how?
Andy 3221 Apr 18, 2007, 6:58 AM
Thread Re: [Andy] Override the isValidated in the Detailed - how?
index 3205 Apr 18, 2007, 7:02 AM
Thread Re: [index] Override the isValidated in the Detailed - how?
Andy 3215 Apr 18, 2007, 7:15 AM
Post Re: [Andy] Override the isValidated in the Detailed - how?
index 3205 Apr 18, 2007, 5:34 PM
Thread Re: [Andy] Override the isValidated in the Detailed - how?
eupos 3179 Apr 18, 2007, 11:49 PM
Post Re: [eupos] Override the isValidated in the Detailed - how?
Andy 3172 Apr 18, 2007, 11:56 PM