Home : Products : Gossamer Links : Development, Plugins and Globals :

Products: Gossamer Links: Development, Plugins and Globals: Re: [katakombe] [ NEW PLUGIN ] GooglePR (Page Rank): Edit Log

Here is the list of edits for this post
Re: [katakombe] [ NEW PLUGIN ] GooglePR (Page Rank)
Hi,

Try this (still call it get_google_pr_links):

Code:
sub {

# GooglePR
my $tbl = $DB->table('Links');

my @counts;
for (my $i = 0; $i <= 10; $i++) {

my $count = $tbl->count( { GooglePR => $_[0] } );
my $tmp;
$tmp->{PR} = $i;
$tmp->{Count} = $count;
push @counts, $tmp;
}

return { google_pr_counts => \@counts }

}

Then use this template code:

Code:
<%get_google_pr_links%>
<%loop google_pr_counts%>
PR <%PR%> - <%Count%> links <br />
<%endloop%>

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!

Last edited by:

Andy: Aug 30, 2007, 7:46 AM

Edit Log: