Hi:
Had a bug in the earlier post, but all seems to be working fine now...
To display a rating as an image... like a five star rating, simply go over to Build in ADMIN, and choose Template Globals. Add a new code called rate_img.
Then, in the description box, enter:
You may have to adjust the number of elsif steps depending on how many images you run. Then, in your link.html templete, just use the following syntax to call the image:
Rating: <IMG SRC="http://path.to/images/rate<%rate_img%>.gif" ALT = "<%Rating%>" WIDTH=57 HEIGHT=10 BORDER=0>
Make sure to change the WIDTH and HEIGHT attributes, as appropriate.
I have bastardized the "ratings as grafic" Links 1.XX code by Robert to work in SQL NG, I hope he does not mind! You can see his original code here:
http://www.adeva.de/rateimg.htm
If you are in need of grafix, I originally got mine from the Links 2 resource forum here:
http://www.asan.com/...nix/mod-ratings.html
Phoenix Amon has some nice image sets there.
Well, that should do it! Good luck!
Dave
Had a bug in the earlier post, but all seems to be working fine now...
To display a rating as an image... like a five star rating, simply go over to Build in ADMIN, and choose Template Globals. Add a new code called rate_img.
Then, in the description box, enter:
You may have to adjust the number of elsif steps depending on how many images you run. Then, in your link.html templete, just use the following syntax to call the image:
Rating: <IMG SRC="http://path.to/images/rate<%rate_img%>.gif" ALT = "<%Rating%>" WIDTH=57 HEIGHT=10 BORDER=0>
Make sure to change the WIDTH and HEIGHT attributes, as appropriate.
I have bastardized the "ratings as grafic" Links 1.XX code by Robert to work in SQL NG, I hope he does not mind! You can see his original code here:
http://www.adeva.de/rateimg.htm
If you are in need of grafix, I originally got mine from the Links 2 resource forum here:
http://www.asan.com/...nix/mod-ratings.html
Phoenix Amon has some nice image sets there.
Well, that should do it! Good luck!
Dave