How can I configure polls?

Rosamunda - November 9, 2009 - 14:57
Project:Pollfield
Version:6.x-1.9-beta1
Component:User interface
Category:task
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi!
I´ve installed this module and played a bit with it. I really like it, but I don´t know how to configute sitewide options.
I mean, I create the poll field, and then create a new content type that has that field.
And users that can create that content type can freely decide how to configure it.
I don´t want that, I mean I need to set some basic configuration sitewide.

ie:
Don´t allow anonymous voting
Don´t allow to cancel vote
and Don´t allow to use the starting votes count field. All polls must start with 0 each.
I want only the admin to have that options, but not the normal registered user.

Is there a way that I can do that?

Thanks!

Rosamunda

#1

mario_prkos - November 9, 2009 - 22:26

Those permissions you asked for are not implemented. Permission work only on completed pollfield. If you have permission to edit you can change anything you want in pollfield. This is first request of that type I received. This feature is not hard to implemented. I will definitely consider to implement it.
Do you have any deadline on this feature? Are you need it often? Maybe some other issues you have about pollfield, please post it?

Mario.

#2

Rosamunda - November 13, 2009 - 22:31

Hi Mario!
Thanks for your kind reply!
No, I don´t have any deadline, but it´s a feature that could definately defeat (in my opinion) all other polls, because that way you can have any kind of community content (forums, chats, and everything that is a node) to optionally have a poll too. And that´s absolutely terrific. This module could be use by article´s authors in a newspaper to receive specific opinions from readers...! The possibilities are endless.

But I think [and need] more control, because as a site admin, I don´t like people to set (for example) a specific aumont of votes on certain responses in each polls. In a community site I want polls to show the real votes. Just giving an example here.

Anyway, I think this module is the answer for all "poll needs", but really would need some sort of configuration control for the site admin.

Thanks again!!!!!!!!!!!!!!!!!!
Rosamunda

#3

mario_prkos - November 13, 2009 - 23:28

This is good point Rosamunda. You really broad a perspective to me of module usage. I will post this in next release by end of the week so you can check it. I think I will set permission admin poll who can change everything and normal user just questions and choices. I think that to much permission will go to usability problem. I would like to keep thing as simple is possible and still provide powerful feature set.

Thanks for your replay and useful insight, keep in touch. I hope we will get group for discussion soon where we can post ideas.

Mario.

#4

VM - November 13, 2009 - 23:29

what about using the field_permissions.module in some way?

#5

mario_prkos - November 13, 2009 - 23:42

Unfortunately pollfield in cck is treated as one field and CCK is not aware of internal structure of pollfield. So if there is any permission which going into internal structure as this is case module needs to handle itself. By the way this module you mention is interesting. I will try it maybe it can simplified those bunch of permissions in CCK.

Thanks for help!

#6

Rosamunda - November 14, 2009 - 22:23

I´m definately keeping an eye on this, and most certainly will help testing!
:)

#7

jafar104 - November 19, 2009 - 06:50

I'm using this module for a project also, but I'm having trouble with anonymous and registered users to make their own poll. The Fieldset isnt displaying, looks like the link for it is broken, but for the superadministrator it works, I played with the User Permissions but nothing seems to work.

Being able to set options for user controls would be nice. Thanks for making this!

#8

mario_prkos - November 19, 2009 - 12:13

Thank you for using this module. Are you using dev or recommended version?

In dev version I put new admin permission witch you must check in to gain full edit control. Pollfield is strongly rely on CCK permissions see if you set right permission for your field under the section content permission moduel. Find out name of your field and see is set it correct. There is also some infos about permission under http://drupal.org/node/616894.

#9

jafar104 - November 20, 2009 - 11:36

Hi thank you for the quick reply.

Unfortunately, I have set the permissions but the Pollfield still wont pop out when you try to create content, the words "Pollfield settings" are there's no link to expand the field set.

here's the site link direcly to the content create form: http://debatedaily.com/node/add/debate

Sorry if it's something I'm fogetting.

Best

#10

mario_prkos - November 20, 2009 - 14:06

From your link I see you use dev version but I think this is not matter because both version are very similar. I reproduce you condition and I think you need to allow anonymous user to administer node in permission 'node module' => 'administer nodes' then all fieldset for editing should be accessible by anonymous users. I don't know yet why pollfield settings is there where there is no permission for user to administer node. It should be there in that case.

I hope this will be helpful, if this doesn't work post the problem here. If you be able to do some test on dev version it will be very good because I want this new permission to put in my next release.

Best

#11

jafar104 - November 20, 2009 - 15:00

Hello,

I had tried the 'Administer Nodes' option, however this allows full access to whomever has that permission, so it allows anonymous users to control other peoples content.

I'll help test any way I can.

Best

#12

Rosamunda - November 20, 2009 - 15:06

Maybe another workaround option could be (maybe I´m saying something stupid here), to let the module form filter to apply its filters inside each poll´s items instead of taking the poll as a "whole"...?
Maybe to apply a functionality some sort of similar, where you can turn off each item inside polls...?

Rosamunda

#13

Rosamunda - November 24, 2009 - 23:40

I´ve tested the dev version, and it´s an all-or-nothing thing, I mean it woud be better in my opinion, to set for each feature, the ability to turn it off. In example, I don´t want people to be able to set an initial quantity of votes, the poll should reflect the real votes.

I didn´t find how to do that in the dev version. Could it be already implemented and I just didn´t get it?

Thanks for your help!

Rosamunda

#14

mario_prkos - November 30, 2009 - 21:17

There is permission admin pollfield which give you access to all features of pollfield. Without that you can access to choose type of poll (single/multi choice) and put questions without started votes.

My initial thought was also to have permission for every feature but soon I figure out that this can lead to boom of permissions which can effect usability. For now I have at least 6 feature in pollfield settings; soon it will be at least 10; add maybe 2 or 3 additional; we will have 15 permissions per poll. If you have 5 different poll types it will be 75 permissions - not very practical deal. So we have to find the smallest number of permission we need to keep in mind usability issue.

I didn't have time to tested properly so I will be very grateful to have some help in testing! Thanks!

Any problem, you can contact me!

#15

Rosamunda - December 1, 2009 - 17:45

Hi!
Yes, I´ll test it. As far as I´ve see it works, but I´ll test it more, with several poll types.
You´re right, this could lead to hundreds of permissions, and unthinkable loads of checkboxes and load time.

Hm... maybe in a way that wouldn´t affect the permissions page?
Just an idea here:

Permissions:
Vote on polls
Create polls
Administer Poll Forms

a poll page under settings that could manage the template that would be visible for all users that can vote on and create polls.
For each polltype it could appear a list of checkboxes, one for each pollchoice. That way when the user hasn´t any poll permission it would not see the poll, and when it has the create polls permission, it would see just the choices that are checked. BUT, this won´t be managed with the permissions directely, but with the module, that could just hide the options if the settings page tells him so.

Maybe I´m just rumbling here? It´s just an idea of how the module could be much more flexible and even extensible in poll configurations.

Rosamunda

#16

mario_prkos - December 3, 2009 - 18:07

Yeah, this seems as good start for discussion. Just put as summary what we have:

  1. permission by node module (edit any, edit own, delete any, delete own and create)
    - this related to whole node
  2. permission by content_permissions module (we edit and view permission)
    - this is related to the cck fields
    - those permissions are subordinate to permission by node module
  3. permission by pollfield module (see results and admin pollfield)
    - this is related on pollfield strictly
    - those permissions are subordinate to content_permissions

For now I see problem that if you not allowed user to administer node they don't have any way to admin poll.
Another thing what I notice some people want that anonymous cant post the poll but that only author can edit.
This is very hard issue because there is no good way for tracking anonymous users (see http://drupal.org/node/616954).

Your suggested permission is very reasonable. We need to figure where to put it, is there any overlapping with existing permission, can we achieve this through existing permission, what we want that can not be achieved by paradigm?

I will be very happy if you can point some cases you encountered where we can see weakness of existing system of permissions and maybe some suggestion for solution. I know you already made some but I just want to have it this one place.

I hope we wil get discussion group. This will make our discussion more elegant?

 
 

Drupal is a registered trademark of Dries Buytaert.