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
Comment #1
mauritsl commentedHi,
Comment #2
dgastudio commentedHi!
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)
Comment #3
mauritsl commentedprint $node->rate_NAME['#value'];I already added this to the readme file, but is not yet mentioned in the last release.Comment #4
dgastudio commentedHi! 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
Comment #5
mauritsl commentedAh I can indeed reproduce this.. Don't know yet why this happens, but I will fix it soon.
Thanks for your explanation.
Comment #6
mauritsl commentedThe 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.
Comment #7
dgastudio commentedall problems solved, thanks!