Gossamer Forum
Home : Products : Links 2.0 : Customization :

Graphical representation of resources with 5 or more votes within "builds"?

Quote Reply
Graphical representation of resources with 5 or more votes within "builds"?
Hi,

How would I be able to show for a link which would get, for ex., 5 votes between the times you build your pages, say 24 hours, show an image representing it?

Sorry for the long run on sentence...
Simply put;
A small graphic would appear next to a link if it had more than a certain amount of votes that day.
The "day", being the time within nph-build.cgi would run.

Thanks and I hope someone can takle this.. Smile
Quote Reply
Re: Graphical representation of resources with 5 or more votes within "builds"? In reply to
Why not picking up a Perl book and learning how to modify scripts yourself???

Wink

What you will have to do is the following:

1) Edit the sub build_stats routine to delete all votes from the database file on a daily basis. Although I would recommend using a separate script that can run via Cron that deletes the votes from the database file.

2) Then you will have to add the following codes to your link.html file.

Code:
<%if Votes => "5"%>
<img src="/path/to/image.gif">
<%endif%>

Regards,



------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------




[This message has been edited by Eliot (edited January 03, 2000).]