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
Comments
Comment #1
mario_prkos commentedThose 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.
Comment #2
Rosamunda commentedHi 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
Comment #3
mario_prkos commentedThis 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.
Comment #4
vm commentedwhat about using the field_permissions.module in some way?
Comment #5
mario_prkos commentedUnfortunately 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!
Comment #6
Rosamunda commentedI´m definately keeping an eye on this, and most certainly will help testing!
:)
Comment #7
jafar104 commentedI'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!
Comment #8
mario_prkos commentedThank 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.
Comment #9
jafar104 commentedHi 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
Comment #10
mario_prkos commentedFrom 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
Comment #11
jafar104 commentedHello,
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
Comment #12
Rosamunda commentedMaybe 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
Comment #13
Rosamunda commentedI´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
Comment #14
mario_prkos commentedThere 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!
Comment #15
Rosamunda commentedHi!
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
Comment #16
mario_prkos commentedYeah, this seems as good start for discussion. Just put as summary what we have:
- this related to whole node
- this is related to the cck fields
- those permissions are subordinate to permission by node module
- 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?
Comment #17
Delta Bridges commentedHello there,
I like what you have done in the dev version: it simplifies posting polls for my users :)
Thank you for a great module!!
Comment #18
mario_prkos commentedThank you!!
Comment #19
Rosamunda commentedHi again Mario :)
December is a very busy month of the year for me... sorry for the delay!
I like the idea of a discussion group... but I think there is already a voting group on GDO.
You mean to continue this discussion there?
Cheers!
Rosamunda
Comment #20
mario_prkos commentedHi, I also had very busy December and I had time just for few changes in dev version. I don't have mind to use already existing group. Send me a link if you find one.
Happy New Year!
Mario.
Comment #21
ManyNancy commentedSubscribe
Comment #22
Flying Drupalist commentedThis module is rather unusable without this feature. Can this be a priority please?
Comment #23
mario_prkos commented@Flying Drupalist did you check dev version there is some work done about that. What you think about that so far? There is also some issue which is more work to implement: how to configure poll if you don't have access to node edit? Basically, we will have button edit which will be protected by permission but it will not be the part of node edit feature. Is this what you have in mind?
I have quite lot of work on my todo I have to decide what to do first based on the needs of people.
Mario!
Comment #24
Rosamunda commentedHi again Mario :)
I´ve found Advanced Poll Group and Voting Systems.
Do you think we could create another group? Or could we work within the Voting Systems?
If you think that voting systems maybe has a wider target, and you just don´t have time, I could create a Group for this module.
Or maybe yet another group isn´t necessary...?
(Anyway, I think this module could replace Advanced Poll!).
Cheers!
Comment #25
mario_prkos commentedHi
Both of them is same to me Advanced Poll Group and Voting Systems. There is some guy who say that he will open group for us but since then there is no word from him even I contact him. As I checked those groups are not very active maybe we can use one of them. I am not sure how is complicate to open group for us but if it is to much time to wait we should use existing one. You can pick up what ever you want both of them is just fine with to me.
Mario!
Comment #26
Rosamunda commentedAs it looked easier to create a group, I´ve created a pollfield one.
It´s up and running (but awaiting approval to be on the public directory).
So we can start to put some stuff there.
Comment #27
mario_prkos commentedGreat news and looks great!!!! Thanks!! I will post link on front page!
Comment #28
Flying Drupalist commentedHi, I would basically like on the field configure page some checkboxes:
Enable user setting starting values
Enable user setting anonymous voting
Enable user setting cancel vote
Unless those options are checked, unless the user has administrator pollfield permission they should not be able to do those things or see those options under pollfield settings.
Thanks.
Comment #29
Rosamunda commentedThat´s exactly the reasons we´ve opened a group in g.d.o, to discuss how this excellent module could be improved. Because adding to it more [let´s call them] permission options it is the perfect poll module out there.
Because there´s no reason to "create polls" separated of the rest of content types.
Any content type could be a poll.
I think we should continue this discussion in the group... and maybe add more suggestions! (that´s why I think "mantainer needs more info" is the bes status... please correct me if I´m wrong).
Cheers!
Comment #30
Rosamunda commentedWell... the group´s idea didn´t worked out...
I´ve received a denial message from the g.d.o. administrator, telling me that that kind of things belonged to grou´s issue queue...
Anyway (chuif), let´s continue here...
Where were we...?
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.
The thing is that the only permissions maybe should be to vote on polls, to create polls and to administrate polls. People to administrate polls would be able to edit the poll and change its options even after it started.
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).
I don´t think letting the nonymous users to post polls could be a very good idea. Anyway, if anyone could want that, could let anonymous to have create polls permission.
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 think that most of it can be achieved with existing permissions, because the thing with actual perms is that pollfield is treated as a whole, when it has a lot of stuff inside. So the permissions inside each polltype should be managed within a settings page.
Example
Content type: Poll Type A
It has these fields: Title, body, field_whatever, field_pick_a_color (pollfield)
When you enter that field edit page, there should appears all settings with some checkboxes like:
- Allow anonymous voting
- Allow users to cancel vote
- Allow users with admin poll permissions to change starting votes on each option
etc...
Users with CREATE poll permission will be able to create polls but won´t be able to change the checkboxes settings, while users with ADMIN polls permissions could be able to edit all options always.
What do you think? That way, you won´t have spaghetty permissions, and you can change the way each poll works according to each pollfield, wich will be handled by the pollfield module..
Even more, if an admin wants to create a single nodetype with different poll options according to roles, it can add several different poll fields inside a single nodetype, and change each cck field permissions accordingly (cck perms would manage perms in that case).
Cheers!
Comment #31
mario_prkos commentedThis is good contemplation!
I think for now we miss this (or maybe not, I am not sure):
And maybe some inside permission in settings:
as Flying Drupalist said in #28:
This is also good idea how to use permission system:
What we are missing also is to change pollfield setting if you don't have permission to edit node.
Is this make sense to you?
Did I understand this correct?
Mario.
Comment #32
Rosamunda commentedYes, exactly!!
Now,
What we are missing also is to change pollfield setting if you don't have permission to edit node.
I really don´t know how can be managed those. But, create and edit perms are two different things, so, maybe even users with edit perms still should have the admin polls to be able to change polls settings.
Example:
CCK Permissions: Create poll || Edit poll
New Permission: Admin poll
Users with "create" and "edit" poll perms but without "admin poll" perm will be able to create polls and set the poll setting that the site admin have let them to create (ie. if the site admin didn´t check the "Allow users with admin poll permissions to change starting votes on each option" for that kind of poll, that user won´t be able to see that option). That user will be able to edit the node.
Users with create end edit poll perms AND "admin poll" perms, will be able to manage all poll permissions always.
Hope this makes sense yo you :)
I think this idea is taking a nice shape, don´t you?
(I truly think this module will takeover all other polltype modules)
Cheers!
Comment #33
mario_prkos commentedYes, I think after some time it will be clear what to do. Once you mention that this is now "all or nothing" case. What did you mean by that?
If we have something like edit button at poll which is visible only to user who has permission to edit then we don't need permission to edit node to have ability to edit poll.
What you think about that? Is it useful for you?
Any other is also welcome to comment.
Mario.
Comment #34
Rosamunda commentedHi again Mario!
Once you mention that this is now "all or nothing" case. What did you mean by that?
In the latest release you added a special permission, so people could select wich roles would be able to admin polls. But either you´ve got that permission, where users can edith "all" poll options, or you don´t have that perm, when users will not be able to do nothing.
That´s when I suggested that as the pollfield is taken by the cck permission field as a whole, maybe the poll module should take care of the different options inside the pollfield, without creating more and more permissions.
If we have something like edit button at poll which is visible only to user who has permission to edit then we don't need permission to edit node to have ability to edit poll.
You mean using that new perm already created by pollfield module in the latest dev version?
Comment #35
mario_prkos commentedYes, post the new release with this new admin permission. What you think about admin own admin any permissions.
There is another post http://drupal.org/node/589210#comment-2539746 about permission so check out. What you think about this problem?
Comment #36
Rosamunda commentedHi!
I think that having two posts for the same thing is going to be confusing (and drive you mad about all proposals).
I´m making this duplicate and following the conversation there if you´re ok with it :)
Let´s continue: "The future of Pollfield"
Rosamunda