Open Notes Picture Database - Feature Request: Image ratingCreated on |
May 11, 2004 |
Created by |
Ray Davies |
Status |
|
Out of five is good for me. The "top pictures" should stay as is and only count the number of votes. The vote can be displayed as an average as part of the page hit display. Here is some code I found! Could probably be better!
profilename := "Page Usage Count";
docid := @Text(@DocumentUniqueID);
timestamp := @Now;
count := @GetProfileField(profilename; "Count"+docid);
@If(count="";
@Do(@Set("count";1); @SetProfileField(profilename; "TimeStamp"+docid; timestamp));
@Do(@Set("timestamp";@GetProfileField(profilename; "TimeStamp"+docid)); @Set("count"; count+1)));
@SetProfileField(profilename; "Count"+docid; count);
"This page has been accessed " + @Text(count) + " times since " + @Text(timestamp; "D0T1S2")
Taken Actions by Owners