Feature #701
Hide up/down vote after voting, replace with "remove vote" button
| Status: | New | Start: | 07/22/2009 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | 2.4 | |||
Description
History
Updated by Sein Kraft 115 days ago
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
- File numeric_score.rar added
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.