Owner: Liran Tal
Group members: 36
This group is for the discussion of the development and usage of the poll plugin.
The poll plugin for Elgg is being developed in a collaborative manner and hosted in Google Code at the following address: http://code.google.com/p/elggpoll
RULES
To make it easier for us developers to follow your requests in the forums - when you start a new discussion please start the topic title as follows:
For other general topics just don't append anything to the discussions' title.
Doing this helps us to manage the group more efficiently.
I think it's not very complicated. Edit mod/poll/views/default/forms/poll/edit.php:
Replace the lines
<div>
<label><?php echo elgg_echo('poll:responses'); ?></label>
<?php echo elgg_view('poll/input/choices', array('poll' => $poll)); ?>
<?php echo elgg_view("output/longtext", array("value" => elgg_echo('poll:note_responses'), 'class' => 'elgg-subtext mts')); ?>
</div>
with
<?php
echo elgg_view('input/hidden', array('name' => "number_of_choices", 'value' => 1));
echo elgg_view('input/hidden', array('name' => "choice_text_0", 'value' => elgg_echo('poll:settings:yes')));
?>
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.
No pages created yet
No bookmarks
No blog posts
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.