So in my node-question, and node-comment, I use the the display vote_up_down widget. I also have a vote_up_down template file. In those files I check if a user is logged_in or not to display the voting buttons or not. When using this method, unless the role is selected as being able to see vote up down widget, the widget doesn't appear.

So I add the premission to authenticated, and anonymous to see the widget, I am posting a patch as well.

CommentFileSizeAuthor
#6 voting.png57.97 KBUbuntuLinuxHelp
#1 arrayshift-670450.patch2.12 KBvoidfiles

Comments

voidfiles’s picture

Status: Active » Needs review
StatusFileSize
new2.12 KB

Here is the patch

UbuntuLinuxHelp’s picture

I have the same issue.
I downloaded the patch, but have no idea what to do with it.

I read here: http://drupal.org/node/60108 and tried here: http://agaric.com/note/how-apply-patch-drupal-module

But I'm still at a loss. The contents of the .patch don't look like files are changing, so I don't know if I should try patching as "relative to the Drupal root directory" or not.

Also, the Vote Up or Down does not display for Admin users either.

Any help would be appreciated.
Thank you.

voidfiles’s picture

So that patch is for the installation profile its self. So the next time you run the install, if you apply that patch first you will get the appropriate rights. If you already have things installed you need to look into the roles, and permissions. Look at the section about vote up down.

Here is what I have

use vote down authenticated user
use vote up authenticated user
view up/down votes anonymous, and authenticated user

UbuntuLinuxHelp’s picture

Hmmm....

I set up (as indicated):

use vote down authenticated user
use vote up authenticated user
view up/down votes anonymous, and authenticated user

Now everyone can see votes - Good!
Nobody (admin account or other authenticated users can vote up or down.

The option to vote (buttons?) does not display on any page.

UbuntuLinuxHelp’s picture

I think I found another bug - maybe?

While trying to find the issue for this thread, I went to my installed profile: Home › Administer › Content Management
And I only see the following Content Types:

Comment
Page
Question

Unless I'm mistaken, shouldn't there also be "Answers" on that list?

Thanks

UbuntuLinuxHelp’s picture

StatusFileSize
new57.97 KB

***UPDATE***

If I go to: Home › Administer › Site configuration › Vote Up/Down configuration

I saw that "Vote widget display" was "disabled" (after a clean install of the ArrayShift profile).

When enabling it by selecting "Full-page view" (the only option that works) and also will only work if "Vote widget style" is selected as: "Default +1/-1 vote style", I will see some garbage code displayed on the page.

Please see the screenshot attached.

Thanks.

voidfiles’s picture

Version: 6.x-1.x-dev » 6.x-1.1
Assigned: Unassigned » voidfiles
Status: Needs review » Fixed

In the latest version this has been fixed.

Status: Fixed » Closed (fixed)

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