jongha / redmine_vote

This is redmine vote plugin. Its style is similar to stackoverflow. You can vote for each message with a positive or negative point. When you install this plugin votes table is created internally. This plugin shows the sum of points the message using internal table. If you want to know the reaction of message in Redmine forum, this plugin helps you. And also if you want more functions of the plugin, you can add the issue on github freely.
http://www.redmine.org/plugins/redmine_vote_plugin
MIT License
32 stars 6 forks source link

No Effect on Redmine 2.1.2 #3

Closed NemoOudeis closed 10 years ago

NemoOudeis commented 10 years ago

I installed the plugin on my redmine 2.1.2 instance (installation worked fine) and when I load an issue page I see plugin execute and the javascript respective javascript

  Rendered plugins/redmine_vote/app/views/vote/_view_layouts_base_content.html.erb (0.2ms)

in the redmine log and vote.js is present.

From what I see from a little debugging the first big if in the in the vote.js (line 9 and following in [uncompressed vote.js])(https://github.com/jongha/redmine_vote/blob/master/assets/javascripts/vote.uncompressed.js) is never entered because both arrays are empty.

Also the url matching in lines 73-76 does not work for us. Our urls never contain "boards" and an ticket url is https://[host]/issues[/id]

As en effect I don't see anything on the issue page and the only thing rendered in the html is a

<script type="text/javascript">
//<![CDATA[
contextMenuInit('/issues/context_menu')
//]]>
</script>

<input type="hidden" id="vote-base-url" value="/" />
<div style="clear:both;"></div>

could you give me some assistance please?

jongha commented 10 years ago

Hi, NemoOudeis.

This plugin currently only works FORUMS page. The article in forum contains "boards" url. If you truly require this plugin for ISSUE page, I'll implement in the next version. (Excuse my bad English.)

Thanks.

NemoOudeis commented 10 years ago

ahh, I see. It would be awesome if you could extend it to issues as well, thanks =D

PsykomantaBrain commented 10 years ago

Hi, just installed the plugin here, here's my +1 for voting on issues as well. It's exactly the feature we need on our tracker.

Many thanks in advance!

Cheers

jongha commented 10 years ago

@PsykomantaBrain Oh.. I see. I'll make a that function to the next version. Thanks. :)