newbie LAC Posted March 31, 2013 Share Posted March 31, 2013 File Name: (NB34) Group(s) Who Can Vote File Submitter: newbie LAC File Submitted: 31 Mar 2013 File Category: User and Social Engagement Supported Versions: IP.Board 3.4.x This hook allow to vove in polls certain groups. Groups are selected by the user when creating a poll. here to download this file Link to comment Share on other sites More sharing options...
Cabola Posted April 1, 2013 Share Posted April 1, 2013 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 More sharing options...
newbie LAC Posted April 1, 2013 Author Share Posted April 1, 2013 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 More sharing options...
Cabola Posted April 2, 2013 Share Posted April 2, 2013 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 More sharing options...
newbie LAC Posted April 2, 2013 Author Share Posted April 2, 2013 Hi,I can add setting Link to comment Share on other sites More sharing options...
newbie LAC Posted April 3, 2013 Author Share Posted April 3, 2013 I added the setting yesterday. If this is what you want, I'll upload new version. Link to comment Share on other sites More sharing options...
Cabola Posted April 3, 2013 Share Posted April 3, 2013 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 More sharing options...
newbie LAC Posted April 4, 2013 Author Share Posted April 4, 2013 Added new version :) Link to comment Share on other sites More sharing options...
Cabola Posted April 4, 2013 Share Posted April 4, 2013 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 More sharing options...
newbie LAC Posted April 5, 2013 Author Share Posted April 5, 2013 Hi, Go to ACP - Look & Feel - Template Tools First step Second step Link to comment Share on other sites More sharing options...
Cabola Posted April 5, 2013 Share Posted April 5, 2013 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 More sharing options...
newbie LAC Posted April 8, 2013 Author Share Posted April 8, 2013 Thanks Cabola for the help with the phrases and suggestions for improving the hookAdded version 1.0.2What's newAdded 4 settings:- Type of ListAllowed groupsExclude groups- Show protected groups in ListThe groups you selected in Protected Groups will be shown when Type of List = Allowed Groups- Show exclude groups in ListThe groups you selected in Exclude Groups will be shown when Type of List = Exclude Groups- Groups separator. Link to comment Share on other sites More sharing options...
NewToAllThis Posted October 8, 2013 Share Posted October 8, 2013 can you also add a minimum post count to this mod? Link to comment Share on other sites More sharing options...
newbie LAC Posted October 9, 2013 Author Share Posted October 9, 2013 can you also add a minimum post count to this mod? Hello '?do=embed' frameborder='0' data-embedContent>> Link to comment Share on other sites More sharing options...
dzagi Posted January 15, 2015 Share Posted January 15, 2015 Can groups that can't vote due to restrictions, view poll results ? Link to comment Share on other sites More sharing options...
newbie LAC Posted January 15, 2015 Author Share Posted January 15, 2015 Can groups that can't vote due to restrictions, view poll results ?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/ Link to comment Share on other sites More sharing options...
dzagi Posted January 16, 2015 Share Posted January 16, 2015 It was previously asked, but I can't read your answer (board bug?)Can you also add a minimum post count to this mod? Link to comment Share on other sites More sharing options...
newbie LAC Posted January 17, 2015 Author Share Posted January 17, 2015 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 More sharing options...
toprobroy Posted January 24, 2015 Share Posted January 24, 2015 Hi. Any plans to get this working in 3.4.7 please? Link to comment Share on other sites More sharing options...
newbie LAC Posted January 24, 2015 Author Share Posted January 24, 2015 Hi. Any plans to get this working in 3.4.7 please?Hello,I tested on 3.4.7. Work like a charm Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.