Gossamer Forum
Quote Reply
PPC
I'm (trying) to work on my own PPC Plugin for Links SQL. So far its going pretty well, however I have come accross a problem as to how I am going to format it.

I thought I could get away with adding Bid DESC in the category sort varable, but that still shows up bidding links, even if their account has no credit. What I was thinking now, is to write a new search script, based on the Search.pm code by GT, and then modify it to specify the PPC results. The problem is...I don't see how!

Code:
# Then do the search.
$args->{callback} = \&_cat_search_subcat if ($args->{catid});
my $orig_sb = $args->{sb};
my $orig_so = $args->{so};
$args->{sb} = $CFG->{build_sort_order_search_cat};
$args->{so} = '';
$filter and $args->{sb} =~ s/score//;
my $cat_sth = $categories->query_sth ($args) unless ($filter);
my $cat_count = $filter ? 0 : $categories->hits();

$args->{callback} = \&_search_subcat if ($args->{catid});
$args->{sb} = $orig_sb ? $orig_sb : $CFG->{build_sort_order_search} || '';
$args->{so} = (defined $orig_so and $orig_so =~ /^(asc|desc)$/i) ? $1 : 'ASC';
$filter and $args->{sb} =~ s/score//;
my $link_sth = $links->query_sth ($args);
my $link_count = $links->hits;

Where exactly would I define it to search for only links with credit in links_Users, and also a bid registered in links_Links.

Any help is welcome...I'll just keep playing, and hope I get somewhere Unsure

Cheers
Subject Author Views Date
Thread PPC Andy 8740 Sep 18, 2002, 2:43 AM
Thread Re: [Andy] PPC
Andy 8492 Sep 18, 2002, 7:23 AM
Thread Re: [Andy] PPC
Andy 8461 Sep 19, 2002, 12:51 AM
Thread Re: [Andy] PPC
Andy 8464 Sep 19, 2002, 5:27 AM
Thread Re: [Andy] PPC
yogi 8494 Sep 19, 2002, 5:37 AM
Thread Re: [yogi] PPC
Andy 8457 Sep 19, 2002, 5:42 AM
Thread Re: [Andy] PPC
yogi 8437 Sep 19, 2002, 5:52 AM
Thread Re: [yogi] PPC
Andy 8457 Sep 19, 2002, 6:18 AM
Thread Re: [Andy] PPC
Andy 8467 Sep 19, 2002, 8:29 AM
Thread Re: [Andy] PPC
Ian 8425 Sep 19, 2002, 9:59 AM
Thread Re: [Ian] PPC
Andy 8378 Sep 21, 2002, 4:59 AM
Thread Re: [Andy] PPC
pugdog 8345 Sep 21, 2002, 7:45 AM
Thread Re: [pugdog] PPC
Andy 8395 Sep 21, 2002, 8:38 AM
Post Re: [Andy] PPC
pugdog 8331 Sep 21, 2002, 1:51 PM
Thread Re: [Andy] PPC
Paul 8353 Sep 21, 2002, 1:57 PM
Thread Re: [Paul] PPC
Andy 8353 Sep 22, 2002, 3:36 AM
Thread Re: [Andy] PPC
Paul 8288 Sep 22, 2002, 3:52 AM
Thread Re: [Paul] PPC
Andy 8303 Sep 22, 2002, 10:18 AM
Thread Re: [Andy] PPC
Andy 8278 Sep 23, 2002, 2:49 AM
Post Re: [Andy] PPC
Andy 8246 Sep 24, 2002, 7:01 AM