Feature #701

avatar

Hide up/down vote after voting, replace with "remove vote" button

Added by Shish Moom 122 days ago. Updated 52 days ago.

Status:New Start:07/22/2009
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:-
Target version:2.4

Description

numeric_score.rar (2.5 KB) Sein Kraft, 09/30/2009 01:44 AM

History

Updated by Sein Kraft 115 days ago

avatar

You can use the same system as favorite system and check if the user had voted the image then change que form.

$html = $this->theme->get_voter_html($event->image);
to
$event->add_part($this->theme->get_voter_html($event->image, $is_voted));

and create the callback function for $is_voted.

Updated by Sein Kraft 52 days ago

avatar

If the user haven't scored the image show both buttons.
If the user has scored up show only show "vote down".
If the user has scored down show only show "vote up".

Please check the next error:
The system thinks that is called the function get_voter_html of favorite ext. If this name is changed to get_vote_html in main and theme it works properly.

Attached modified ext.

Also available in: Atom PDF