I'm using OpenAtrium as a profile for my Drupal installation. I'm a total newbie with Drupal and OA. I do have a coding background (PHP).
I'm trying to understand the Vote Up / Down module. I have installed the module, and managed to get it working on nodes (blog posts). However, the themes that are provided for the voting widget seem to be broken. Only "Default" gives me the ability to actually vote on things. When I choose the Plain theme for instance I get only "x votes" displayed. The links to vote up or down and the images for that do not load at all.
I can't seem to get this working. Anyone wants to give me a hand? I tried to fumble around with the plain theme files in the modules directory a bit, but no success. It looks like variables such as $link_up and $link_class_up are not passed to the widget template file upon rendering.
The roles and permissions are set correctly, I should have the right to vote (like we all do ;)).
Comments
A place to start
Do you have the Devel module installed? If not, install it and enable the Devel block. You'll be able to look at the theme registry and see if it's loading the theme files for Vote Up/Down. Let me know what you find.
I have the devel module and
I have the devel module and enabled it but... woah! Tons of warnings pop up when I look at the dashboard page of my OA page.
Also I don't know what I should do exactly with the devel block. If I simply enable the devel module, besides a lot of errors, I get no extra information when I view nodes, spaces or pages...
Can you help me a bit more? Maybe the built-in Devel module is not entirely fit for OA profile?
These are the errors I get most of the time:
warning: include_once(filter.pages.inc) [function.include-once]: failed to open stream: No such file or directory in /Sites/openatrium/profiles/openatrium/modules/developer/devel/devel_themer.module on line 380.
paying attention...
Sorry I wasn't paying enough attention here. I enabled the Theme devel as well and that caused the errors. When I disabled that one, all went away.
I saw what you meant by the devel block and included it with the right sidebar (at Site building > Blocks). I looked at the Theme registry and found 4 occurrences of the vud (vote up / down) module:
vud_widget (Array, 7 elements)
vud_widget_node (Array, 7 elements)
vud_widget_node_nodetype (Array, 8 elements)
vud_votes (Array, 7 elements)
I collapsed them all to see what's in there, but figured I don't know where I'm looking for exactly. I do not see any clue that points to the variables that are being passed to the files... In vud_widget > arguments there are 4 elements in the array: content_id, type, tag and widget_theme. All NULL.
How to proceed?