I consider this for a project, so I might port it quite soon.

Comments

Donatoo’s picture

+1

noahlively’s picture

I have ported it successfully and am now using it on a D7 site. Please find attached a patch against the 6.x-1.x tree, and a tar.gz file containing the full 7.x-1.x module.

Thanks,
Noah Lively
http://www.KoreMedia.net

noahlively’s picture

Status: Active » Needs review

Changing status to "needs review"

frederickjh’s picture

I tried the 7.x-1.x module above and configured it and after placing the block I have a title and text but no meter. I did notice that the .info file does not declare the .css and .js file that are included with the module. As of D7 this must be done in the .info file.

jsi’s picture

I notice two attachments, one is a patch and the other is not.

Which one do i need to make this work on D7?
What exactly is the process to make this work on D7?
Do i first install version 6x then apply patch? or do i only use the 7x without patch?

Finally, frederickjh you mention editing the info file.
What info file?

Thanx and please excuse me for being such a newbie.

pancho’s picture

Do i first install version 6x then apply patch? or do i only use the 7x without patch?

That's exactly the two options you have: Apply the 7.x patch file to a 6.x version of the module or use the .tar.gz archive to install the 7.x version rightaway.

matt b’s picture

StatusFileSize
new28.64 KB

The CSS classes did not match the CSS stylesheet. I've tidied this up as best I can, and added the CSS and JS declarations to the .info file.

matt b’s picture

Status: Needs review » Needs work

Something in this code (possibly the javascript) is disabling CKEDitor and also the drag and drop weight functionality on blocks, menus, etc.

Fanaile’s picture

I installed the tar file from # 7 and received this error:

Warning: file_get_contents(sites/all/modules/donations_thermometer/donations_thermometer.js): failed to open stream: No such file or directory in drupal_build_js_cache() (line 4940 of /.../includes/common.inc).

However, the thermometer does seem to work even with the error, though I can confirm what was said earlier regarding the weight system. The site I have this installed on is using the WYSIWYG module and that has also become disabled after I installed this module. Also, the edit content form is changed dramatically, like the "edit summary" button is disabled and the area explaining the differences in text formats is showing as plain text, and it disabled any views that were set to jcarousel.

Other than that, I would like to know where I can add commas to the numbers? I know this sounds silly, and I'm sorry... but the site that this is going on, the goal is for him to talk to 1,000,000 high school youths and he is currently at 77,800 - and it is hard to read without commas.

Thank you.

lsolesen’s picture

Patch in #2 does not apply:

lsolesen@lsolesen-toshiba:~/workspace/donations_thermometer$ git apply donations_thermometer-7.x-1.x.patch
donations_thermometer-7.x-1.x.patch:522: trailing whitespace.
      
donations_thermometer-7.x-1.x.patch:525: trailing whitespace.
    
error: cannot apply binary patch to 'gauge-small.gif' without full index line
error: gauge-small.gif: patch does not apply
error: cannot apply binary patch to 'gauge.gif' without full index line
error: gauge.gif: patch does not apply
error: cannot apply binary patch to 'images/gauge-small.gif' without full index line
error: images/gauge-small.gif: patch does not apply
error: cannot apply binary patch to 'images/gauge.gif' without full index line
error: images/gauge.gif: patch does not apply
donations_thermometer-7.x-1.x.patch:458: new blank line at EOF.
lsolesen’s picture

Assigned: pancho » Unassigned
Priority: Major » Normal

Here is a working version of the module on github: https://github.com/lsolesen/donations_thermometer.

I've applied to be a co-maintainer, so it can get commited to d.o here #2079989: Offer to be a co-maintainer

lsolesen’s picture

Status: Needs work » Fixed

A 7.x branch has been opened. Please open bugs in that branch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.