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 6206 Sep 18, 2002, 2:43 AM
Thread Re: [Andy] PPC
Andy 6019 Sep 18, 2002, 7:23 AM
Thread Re: [Andy] PPC
Andy 5989 Sep 19, 2002, 12:51 AM
Thread Re: [Andy] PPC
Andy 5990 Sep 19, 2002, 5:27 AM
Thread Re: [Andy] PPC
yogi 6022 Sep 19, 2002, 5:37 AM
Thread Re: [yogi] PPC
Andy 5985 Sep 19, 2002, 5:42 AM
Thread Re: [Andy] PPC
yogi 5965 Sep 19, 2002, 5:52 AM
Thread Re: [yogi] PPC
Andy 5985 Sep 19, 2002, 6:18 AM
Thread Re: [Andy] PPC
Andy 5994 Sep 19, 2002, 8:29 AM
Thread Re: [Andy] PPC
Ian 5951 Sep 19, 2002, 9:59 AM
Thread Re: [Ian] PPC
Andy 5905 Sep 21, 2002, 4:59 AM
Thread Re: [Andy] PPC
pugdog 5871 Sep 21, 2002, 7:45 AM
Thread Re: [pugdog] PPC
Andy 5921 Sep 21, 2002, 8:38 AM
Post Re: [Andy] PPC
pugdog 5858 Sep 21, 2002, 1:51 PM
Thread Re: [Andy] PPC
Paul 5879 Sep 21, 2002, 1:57 PM
Thread Re: [Paul] PPC
Andy 5880 Sep 22, 2002, 3:36 AM
Thread Re: [Andy] PPC
Paul 5814 Sep 22, 2002, 3:52 AM
Thread Re: [Paul] PPC
Andy 5826 Sep 22, 2002, 10:18 AM
Thread Re: [Andy] PPC
Andy 5805 Sep 23, 2002, 2:49 AM
Post Re: [Andy] PPC
Andy 5781 Sep 24, 2002, 7:01 AM