[pmwiki-users] brainstorm.ubuntu.com

Martin Kerz martin at kerz.org
Sat Mar 1 14:58:47 CST 2008


Impressive! Thanks a lot. I'll give it a try tomorrow.

Martin

Am 01.03.2008 um 21:11 schrieb Hans:

> Saturday, March 1, 2008, 7:43:53 PM, Hans wrote:
>
>> How do you set a pagelist order according to the PTV votes value?
>
> Oh, i see: order=-$:votes
>
> Here is the whole Ideas.Ideas page (excluding an include of a comment
> form), just edit the url paths for the arrow images, and install
> fox.php and serial.php (and set Fox page permissions for the Ideas
> group).
> Note that if this is an open wiki, it is just too easy too vote
> several times to influence a voting score!
>
>>> frame rfloat<<
> Search Ideas: (:searchbox group=Ideas:)
>>> <<
> !!Most popular ideas
> [[<<]]
>>> frame<<
> (:messages:)
> Your ideas concerning PmWiki interest us. Please post your ideas and  
> vote for the ones you like!
> (:fox newideas template=#newidea redirect=1:)
> (:input hidden newedit '{$$(serial Ideas)}':)
> Enter a title: (:input text title size=40:)
> (:input submit post "Enter your idea":)
> (:foxend newideas:)
>>> <<
>
> (:pagelist group=Ideas name=-Ideas.Ideas list=normal fmt=#votinglist  
> include=15 order=-$:votes:)
>
> (:if false:)
> [@
> [[#newidea]]
> (:title {$$title}:)(:votes: 0:)
>
> %comment% add your idea here
> [[#newideaend]]
>
>
> [[#votinglist]]
> (:template first:)
> (:table width=100% :)
> (:template each:)
> (:cellnr width=10%:)
> (:fox upvotes redirect={*$FullName} post=1:)
> (:foxptv target={=$FullName} ptvfields=votes:)
> (:input hidden votes '{$$(add {{=$FullName}$:votes} 1)}':)
> (:input image name=post src='http://..../pmwiki/uploads/Ideas/ 
> up.png' :)
> (:foxend upvotes:)
> {{=$FullName}$:votes}
> (:fox downvotes redirect={*$FullName} post=1:)
> (:foxptv target={=$FullName} ptvfields=votes :)
> (:input hidden votes '{$$(sub {{=$FullName}?:votes} 1)}':)
> (:input image name=post src='http://..../pmwiki/uploads/Ideas/ 
> down.png' :)
> (:foxend downvotes:)
> (:cell:)
> !!![[{=$FullName}|{=$Titlespaced}]]
> (:include {=$FullName} lines=3:)
> (:template last:)
> (:tableend:)
> [[#votinglistend]]
> @]
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2434 bytes
Desc: not available
Url : http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20080301/013b31bc/attachment-0001.bin 


More information about the pmwiki-users mailing list