<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>Anyone here have any good ideas for how to go about a page-ranking recipe in PmWiki?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>We've opened up all kinds of new and wonderful datastoring techniques. I'm wondering if there are any good techniques for page-popularity votes and coming up with a "favorite" page?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>There are a couple voting/ranking recipes, but they don't quite fulfill my desires. They may also be outdated if their data storage techniques can be updated.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>We have a new invisible page data format:</DIV><DIV><FONT class="Apple-style-span" face="Andale Mono" size="4"><SPAN class="Apple-style-span" style="font-size: 13.2px;">(:Xyz: some value:) </SPAN></FONT><FONT class="Apple-style-span" face="Andale Mono" size="4"><SPAN class="Apple-style-span" style="font-size: 13.2px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Andale Mono" size="4"><SPAN class="Apple-style-span" style="font-size: 13.2px;"># directive form</SPAN></FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>We have PM coming up with an "I can append but I can't edit" authentication mechanism.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>We could require people to be logged in and do something like:</DIV><DIV>(:Vote$Author: Rank:)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>-- only to store the data. How it looks on the voting end is far more arbitrary. A simple wiki form of any type with action=ranking hidden variable could do it. I can customize the code to get the data stored on the page. I'm just wondering how to best handle it.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Every time the page updates it calculates an "average rank" page variable? </DIV><DIV>(:AverageRank: (Formula):)</DIV><DIV>Formula can be something like </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>total (each Rank * 1000) / number of votes (comes up with a whole number rather than floating point, and makes it a bit easer to sort)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Then it's a matter of a pagelist that figures out which page is most popular?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>The form can be easily made unavailable if the user has already voted on a particular page, since their $Author name is in the variable name. Or it can be arranged that they can change their vote, but only one vote per login name.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Should the vote data be on the actual page, on the same page in another group? It could get long. The (:AverageRank: #### :) could be on the same page, easing pagerank calculations considerably.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Inquiring minds want to know.</DIV><BR><DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">Crisses</FONT></DIV></DIV><BR><BR><DIV> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">Crisses</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">----</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">Sade tell me what is it that you seek?</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">The rightness of wrong, The virtue of vice</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">Sade tell me why the Gospel of evil?</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">What is your religion? Where are your faithful?</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">If you are against God, you are against man.<SPAN class="Apple-converted-space"> </SPAN></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">Sade tell me why blood for pleasure?</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">Pleasure without love?</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">Is there no longer any feeling in man's Faith?<SPAN class="Apple-converted-space"> </SPAN></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">Sade are you diabolical or divine?<SPAN class="Apple-converted-space"> </SPAN></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS"><SPAN class="Apple-converted-space"> </SPAN>-- Enigma, Sadness Part 1 (translation from French)</FONT></P> </DIV><BR></BODY></HTML>