A third vote option? Vote, bury and neutral?

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 03-21-2008, 04:51 PM
VLJ VLJ is offline
Pligg Donor
Pligg Version: beta 9.8.2
Pligg Template: modified yget
 
Join Date: Feb 2007
Posts: 60
Is there a way to add a third vote option for the voting method 1 that is the equivalent of neutral or 0?

My idea for my site could use a vote up (+10), vote down (-10) or neither (0)... Is there a way to add this third option without resorting to the voting method 2?
Reply With Quote
  #2 (permalink)  
Old 03-21-2008, 05:41 PM
VLJ VLJ is offline
Pligg Donor
Pligg Version: beta 9.8.2
Pligg Template: modified yget
 
Join Date: Feb 2007
Posts: 60
I may have just figured this out for myself...

In libs/link.php find:
Code:
$jsreportlink = "vote($current_user->user_id,$this->id,$link_index," . "'" . md5($current_user->user_id.$this->randkey) . "',-10)";
and add the following after:
Code:
$jsneutrallink = "vote($current_user->user_id,$this->id,$link_index," . "'" . md5($current_user->user_id.$this->randkey) . "',1)";
Then find:
Code:
$smarty->assign('link_shakebox_javascript_vote', $jslink);
and add after:
Code:
$smarty->assign('link_shakebox_javascript_neutral', $jsneutrallink);
In your template/link_summary.tpl file you need to add the following wherever you need the vote option to display:
Code:
<a href="javascript:{$link_shakebox_javascript_neutral}">*your text or image here*</a>
I had to make the neutral vote count for 1 instead of 0 so that it recognized the vote.

Does this cause other problems? Working for me.
Reply With Quote
  #3 (permalink)  
Old 03-21-2008, 08:08 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
If itīs ok for you, fine. But why donīt you use the five star voting? This offers two negative and two positive steps or one negative and three positive ones. Furhtermore it displays an average voting.
Reply With Quote
  #4 (permalink)  
Old 03-22-2008, 03:44 PM
VLJ VLJ is offline
Pligg Donor
Pligg Version: beta 9.8.2
Pligg Template: modified yget
 
Join Date: Feb 2007
Posts: 60
Quote:
Originally Posted by tbones View Post
If itīs ok for you, fine. But why donīt you use the five star voting? This offers two negative and two positive steps or one negative and three positive ones. Furhtermore it displays an average voting.
Don't get me wrong, I love the 5-star voting... Only problem is it doesn't seem to get much attention from the devs/community. Many things like click counting and different sorting and so on seem to be for voting method 1... I figured I would experiment with a slight modification to method 1 for a second site I am playing around with. My first site uses the 5-star voting.
Reply With Quote
  #5 (permalink)  
Old 03-22-2008, 04:37 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
Quote:
Originally Posted by VLJ View Post
Don't get me wrong, I love the 5-star voting... Only problem is it doesn't seem to get much attention from the devs/community. Many things like click counting and different sorting and so on seem to be for voting method 1...
Good to hear from another five star fan!
I described here (http://forums.pligg.com/pligg-mods/3...html#post58466) what I miss about that method plus an unvote button (itīs feasible from the database perspective).

Well, attenton seems to be the magic word in the last few weeks.
I donīt know what kind of big thing needs all the attention of the developers but Iīm pretty sad that most of my problems at the moment are just variable visibilty problems and nobody wants to help me:

-Comment Management [as role model] and News Management at Admin: http://forums.pligg.com/bug-report/1...h-control.html
-The category name in upcoming and published at live: http://forums.pligg.com/bug-report/1...published.html
-The news title in upcoming and published at live
Reply With Quote
  #6 (permalink)  
Old 03-23-2008, 11:42 PM
VLJ VLJ is offline
Pligg Donor
Pligg Version: beta 9.8.2
Pligg Template: modified yget
 
Join Date: Feb 2007
Posts: 60
Agreed.

Sidenote here... I have found that my method described above does not work 100%. As currently modded, a regular vote will work as intended. However, a neutral vote will work but will also allow for multiple neutral votes by the same person.

I am left leaning back towards moving back to 5-star and just getting rid of two vote options to get the 3 options I want. I'm hoping for some more community work towards working the kinks out of 5-star voting... Related note here to lack of support for 5 star voting is the sad realization that a Pligg Pro template I purchased does not include 5 star voting support. No refunds policy as well. Hopefully this will be sorted out for myself. Thought it would be worth mentioning as a word of caution to others to ask first before buying.
Reply With Quote
Reply

Thread Tools
Display Modes




Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development