I am new to Developing here and am wondering if there is an easy way to eliminate the functionality of the user to add voting choices. For what I am trying to do I really only want to have One Set Voting Choice (i.e. Yes).
Thanks in advance!
Rusty
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- iionly@iionly
iionly - 0 likes
- Rusty@Rustican9
Rusty - 0 likes
You must log in to post replies.I think it's not very complicated. Edit mod/poll/views/default/forms/poll/edit.php:
Replace the lines
with
Then it's no longer possible to add any poll choices when creating or eding a poll. Instead a single choice is added automatically. Choice text in this case would be "yes" (language string 'poll:settings:yes'). If you want another text for the poll choice (still always the same text though), you can add the text in the language file(s) and change the string in elgg_echo(). You could also add more fixed choices. Just add another line corresponding to the second elgg_view line above with the number of "choice_text_0" increased and adjust the value of number_of_choices() in the first elgg_view() call.
Awesome!!! I new it had to be fairly easy... Thank you.