Jump to content

(NB34) Group(s) Who Can Vote


newbie LAC

Recommended Posts

My community was just looking for such a feature, they asked me about it today so I came here to find one and what a coincident that you just happened to have uploaded it yesterday! Thank you very much for making it! :smile:

I have a small suggestion tho, it would probably be better to make the list excluding selected instead. By that I mean when you create a poll you select which groups shouldn't be allowed to vote, instead of which groups can vote. Or perhaps make a setting that allows you to choose which feature it should be, exclude or allowed.

Link to comment
Share on other sites

Hi,

I have a small suggestion tho, it would probably be better to make the list excluding selected instead. By that I mean when you create a poll you select which groups shouldn't be allowed to vote, instead of which groups can vote.

It is necessary to rewrite the logic


Or perhaps make a setting that allows you to choose which feature it should be, exclude or allowed.

Where? Hook setting or checkbox on public side?

I will be grateful if you show it on a screenshot :smile:

Link to comment
Share on other sites

With in admin in the settings have an option to select if the list shown when making a poll is exclude or allowed orientated. If you select in the admin settings that the list shown when making a poll is to be exclude based then you only select the groups that shouldn't be allowed to vote. If you select it to be allowed then it should be as it is now, you have to select each group that is allowed to vote in the poll.

But again it's just suggestions, I'm doing edits to your mod my self to make it fit my needs, which is to make the list an exclusive selection so that you don't have to select each group every time you want to make everyone able to vote.

Link to comment
Share on other sites

Yea that's what I mean, so that you can choose if the list should be based on excluded or allowed. Some might want to only select the groups that can vote where others might want to only select the groups they want to exclude from the voting. Personally my community fit to the last group where they want to be able to exclude certain groups from voting, but only a few of them and not all.

Link to comment
Share on other sites

When you try to make a new topic using the mobile you get an error message that says:

Fatal error: Method nbGroupsAllowVote does not exist in nbGroupWhoCanVoteForm in

ADMIN_FOLDER/sources/classes/output/publicOutput.php on line 4022

So with this mod enabled people who want to make a topic while on their cells/mobile phones will get this error and won't be able to make a topic. I've looked into it my self but I can't seem to figure out what is causing it..

Link to comment
Share on other sites

Strange I could have sworn I had tried that already! Aww well thank you that fixed it, I'll pm you a copy if the xml file where I've corrected spellings and other stuff like not showing the allowed to vote list if you use the exclude type.

Link to comment
Share on other sites

Thanks Cabola for the help with the phrases and suggestions for improving the hook

Added version 1.0.2
What's new
Added 4 settings:
post-293560-0-42716300-1365401125_thumb.

- Type of List
Allowed groups
post-293560-0-33972700-1365400842_thumb.
Exclude groups
post-293560-0-71360500-1365400925_thumb.

- Show protected groups in List
The groups you selected in Protected Groups will be shown when Type of List = Allowed Groups

- Show exclude groups in List
The groups you selected in Exclude Groups will be shown when Type of List = Exclude Groups

- Groups separator.

Link to comment
Share on other sites

  • 6 months later...
  • 1 year later...

It was previously asked, but I can't read your answer (board bug?)

Hello,

Yes, they can view results.

If you need to hide the results use http://community.invisionpower.com/files/file/6727-sd-hide-poll-votes/

Can you also add a minimum post count to this mod?

​No. I have separate hook for this http://community.invisionpower.com/contributors/files/6334-nb34-minimum-posts-to-vote/

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...