Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-02-10 16:25:24
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Simple Voting system (thumbs up)
Hi all!
I am trying to find out how to create a simple voting system for each article.
Instead of the tipical stars etc… just one thumbs-up that will increment each time someone clicks on it, as simple as that.
Like the one used in www.behance.net, but without having to be registered at all.
I guess like Digg, but not registered also. just something that increments eachtime someone clicks on it.
I need each article to have something like that.
Does anyone know how to do something like this?
Thanks!
Offline
#2 2009-02-10 16:42:50
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: Simple Voting system (thumbs up)
I never used it but maybe this is what you’re looking for
Offline
#3 2009-02-10 18:35:14
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: Simple Voting system (thumbs up)
It is similar to what I am looking for, but there is not a lot of customization I can make to that plugin…
All I need is what that does but instead of having the option for YES or NO, just have YES.
One click and it will add +1
Offline
#4 2009-02-10 20:04:00
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Simple Voting system (thumbs up)
Not sure if rvm_counter can help?
Offline
#5 2009-02-11 08:54:00
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: Simple Voting system (thumbs up)
mmm… not sure what does at all…
I installed the plugin and placed the tag, but nothing is hapening…
any one has any idea on how to do what I am looking for?
thanks
Offline
Re: Simple Voting system (thumbs up)
rvm_counter you can use as an incremental counter but you’d need to build your own function around it.
Why not use wlk_helpful (note revised link address, js file here) and simply hide the display of the “minus” voter using css so that it’s never pressed? It does everything else you want already.
TXP Builders – finely-crafted code, design and txp
Offline
#7 2009-02-11 10:23:06
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: Simple Voting system (thumbs up)
I will try that again,
But the help file or that plugin is not really helpfull
thanks
Offline
#8 2009-02-11 10:37:16
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: Simple Voting system (thumbs up)
Thing is, this wont let me place that voting thing in a page that displays a list of articles right? only when its showing one article.
What I wanted is to show the voting like in www.behance.net
a list of: aticle image + excerpt + the voting (like a preview of all the articles)
That is not posible with wlk_helpful right?
Offline
Re: Simple Voting system (thumbs up)
I’ve not used the plugin myself, but seeing as an overview page like that on behance is made of a series of repeating article forms with the content from each article, I don’t see why you shouldn’t be able to show it per article. In the help it says you can:
Place the
<txp:wlk_helpful />
tag in an article form or on a page that has a single article.
It might make sense to allow actual voting only on the individual article, though as rating something without having looked at it properly. Both the plus and minus as well as the voting buttons have individual classes, so you can simply use display:none;
in your css to turn off the Yes/No buttons where you don’t need them and the minus if you don’t need it. You can use one of the many css image replacement methods to replace the “Helpful?” label with a thumb or other icon.
TXP Builders – finely-crafted code, design and txp
Offline
#10 2009-02-12 09:32:08
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: Simple Voting system (thumbs up)
Thanks Jakob! I will try to do all this, and will post again with the results!
Thanks again
Offline
Re: Simple Voting system (thumbs up)
mlarino, jakob is correct. You can just hide the minus button via css.
You can see the reason for this plugin’s development here: http://xerox-exchange.com/article_list
Please appreciate the complexity of my plugins and the time commitment it took to produce them. I released them to the community for free use.
Offline
#12 2009-02-12 14:57:11
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: Simple Voting system (thumbs up)
Hi Walker,
It does look that this plugin does exactly what I was looking for, and I do apreciate your work in it, I wish I had the knowledge to create things like this! (maybe soon)
On the link you posted, http://xerox-exchange.com/article_list I see a little problem, in the post “The Virtues of Document Outsourcing” I voted a couple of times “YES” and it counted all of my votes, I refreshed the page and the number went even higher without me pressing “YES” as many times it counted, (now in 34 Y).
I think what happend is that the browser counted how many times I voted for it, and then after pressing refresh, it counted all those votes again.
example:
“1 Yes”
I hit 3 times so I get “4 Yes”
Then I hit refresh, and I get “7 Yes”
Offline