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

Dynamic rated image update

Quote Reply
Dynamic rated image update
How to create something like this:

Check http://www.dominion-web.com/...s/dwodp_pro/demo.php

Look for the "Rated at HotsSripts.com" image.

Ratings are updated dynamically - X.XX/5.0.

It's cool Smile

Or maybe a text version?
Quote Reply
Re: [Payooo] Dynamic rated image update In reply to
This would just require a script or something. Try creating a script called 'show_rating.cgi', and upload to your CGI-BIN;


use strict;

use lib '/path/to/admin';
use Links qw/$IN $DB $CFG/;


my $id = $IN->param('ID');

my $rating;
my $sth = $DB->table('Links')->select( { ID => $id } );
while (my $hit = $sth->fetchrow_hashref) {
$rating = $hit->{Rating};

print $IN->header();
print "Rating: $rating";

Then on your link owners sites, have something like this;

<IFRAME SRC="http://www.yoursite.com/cgi-bin/show_rating.cgi?ID=1234" TITLE="Link Rating">
Your browser doesn't seem to support IFRAMES.</IFRAME>

Untested, but it should work Smile


Andy (mod)
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!
Quote Reply
Re: [Payooo] Dynamic rated image update In reply to
You can do something similar with Ian's Remote Count plugin which also counts the clicks back to your site through the link. Not sure how to create the dynamic image though.

Last edited by:

afinlr: Oct 28, 2003, 5:46 AM