![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Five star voting: Unvote link Since I experienced massive misunderstandings by quoting single post URLs that get substituted by the thread name I´ll start a new thread with this topic: Unvote doesn't decrease vote count Pligg logs the votes and their value of every user therefore it should be possible to offer an unvote link at user.php?login=USERNAME&view=voted. If it´s easier: An admin link would be enough for me. Edit: Since it uses the same table it could be also modified to an unvote at the comments domain. Last edited by tbones : 07-19-2007 at 06:37 AM. |
| Sponsored Links |
| |||
| I just analyzed unvote with method 1 (demo.pligg.com): The JS function unvote has the user id , the story id and the weight of the vote as parameters. Therefore it shouldn´t be extremly difficult to create a plain link with method 2 that calls unvote. It´s pretty urgent because a dozen of users voted by mistake and mailed me to revert it. Your help is appreciated! |
| |||
| Is the vote value unknown in that context? If yes, I could provide a solution in pseudo code: The dataset is unique with user_id and story_id because the user can´t vote multiple times. So give a marker value as parameter. Let´s say -20. unvote (user_id, story_id, -20) function userid (user_id, story_id, vote_value) { if {vote_value = -20} vote_value = SELECT vote_value FROM pligg_votes WHERE user_id = user_id AND story_id = story_id else {} .... (function as it is now) } My other hot topics: v9.5: Submit step 3 related sidebar v9.5: Comments to discarded stories Last edited by tbones : 07-20-2007 at 12:46 AM. |
| |||
| Would it be easier if only the voter (current id) is allowed to unvote? |
| ||||
| An unvote link would be a nice feature. Not too hard to implement either. David.
__________________ - Informed Networker - Social News for Network Engineers and System Administrators. |
| I believe the the unvote function with the five star system (vote method 2) would be difficult to implement accurately. If you allow the use of KARMA in the five star vote method, the overall score would change based on the users weight. This would change every time the cron job is run. This is due to the incorrect formulas in the five star KARMA weighting method: Star Vote Problems 9.6 - 9.7. So far, I have been unable to find someone with coding capabilities to correct this problem. Once corrected, a record of the users weighted vote could be maintained and undone if desired in the future. Since the KARMA weight changes based on the users activity, and unvote after other user activity and the cron job would have different results than what the original vote contributed. If anyone is interested in working on this, I would be willing to help the best I can. |
| |||
| You´re right, not2serious. I would suggest to start with an optional solution for those you aren´t using karma. This solution could be the base for a evolution that has karma in mind. |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Voting from external frame | ramos67 | Pligg Mods | 34 | 08-25-2008 02:38 PM |
| Change when bury link appears | jmundane | General Help | 5 | 07-02-2008 09:45 AM |
| Average Star Rating | aaronpais | General Help | 0 | 05-20-2007 09:38 AM |
| Can the URL link be made more visible / title link? | jon | General Help | 2 | 03-21-2007 02:30 PM |
| Make star work for voting. | cellounge | Pligg Templates | 2 | 10-17-2006 09:56 AM |




Linear Mode

