Hi!

Working on localhost, i found few problems...

1. i cant' add widget manually to node.tpl
2. adding widget automatically to content, js is doesnt work becouse... http://localhost/rate/vote/js?widget_id=1&content_type=node&content_id=1....

check the url, it must be 7ya/sites/default/etc...

3. the css is not added to page.tpl. i don't know why.

Comments

mauritsl’s picture

Status: Active » Postponed (maintainer needs more info)

Hi,

  1. I need more information to determine the problem. What code were you using?
  2. This seems not related to the fact that it's localhost, but to the fact that you have installed Drupal in a subdirectory. I've tested this and can confirm that this is a valid bug. I will fix this soon.
  3. CSS is added via the drupal_add_css() function. This can be a theme related problem. Are CSS files from other modules added correctly?
dgastudio’s picture

Hi!

1. <?php print $node->content['rate_NAME_OF_CREATED_RATING']; ?>
2. :)
3. Yes, all the css and js are loades by standart function ($styles, $scripts)

mauritsl’s picture

  1. When manually adding the widget, you need to use: print $node->rate_NAME['#value']; I already added this to the readme file, but is not yet mentioned in the last release.
  2. I changed the javascript to work for subdirectories. Change was commited to CVS. A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.
  3. Still cannot reproduce this... Can you provide me more information? What version of rate module and Drupal core are you using? And what OS / browser?
dgastudio’s picture

Hi! look...

1. admin/build/rate -> widget type (thumbs) next
2. filling all inputs. save.
3. Error: same page with new fields (Each widget must have at least one options.)
4. Save
5. and... WTF??? the RATE is stored as CUSTOM style instead of THUMBS!!
6. ok, i'll change it in options...
7. no effect.

it's happens only with "Thumbs.." style RATE.

thanks

mauritsl’s picture

Status: Postponed (maintainer needs more info) » Active

Ah I can indeed reproduce this.. Don't know yet why this happens, but I will fix it soon.

Thanks for your explanation.

mauritsl’s picture

Status: Active » Fixed

The template GET variable is not passed anymore after posting. The new widget was considered as a custom widget, so no options where added resulting in an error. I fixed this problem by sending the widget type as a hidden value to not lose this information after posting.

I think this bug was introduced when fixing the following issue:
#844184: I get a JS file in the browser after submitting (wrong?) values

The fix is commited to CVS.

A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.

dgastudio’s picture

all problems solved, thanks!

Status: Fixed » Closed (fixed)

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