Quote
fusionist wrote:
hey colin=)
i just tried myself.. it works!=)
test it from polls in administration through the admin panel...
administration\polls.php:
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]$opt_count = ($_POST['opt_count'] != 10 ? count($poll_option) + 1 : $_POST['opt_count']);[/syntaxhighlighter]make sure the !=10 is the number of poll_opts you are going to add.. so 15 would be !=15
also,
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false] $result = dbquery("INSERT INTO ".DB_POLLS." (poll_title, poll_opt_0, poll_opt_1, poll_opt_2, poll_opt_3, poll_opt_4, poll_opt_5, poll_opt_6, poll_opt_7, poll_opt_8, poll_opt_9, poll_started, poll_ended) VALUES ('".$poll_title."' ".$values.", '".time()."', '0')"); [/syntaxhighlighter]after poll_opt_9 .. add poll_opt_10, poll_opt_11 etc...
if you look at the file, you need to change it twice!
-> in lines 63, 83, 110 and 126
do that for the infusions\member_poll_panel\members_poll_panel.php file too
good luck=)
Quote
fusionist wrote:
cool, feedback welcome :)
also: thx joinnn, looks much better now =)
greets@all=)
Category Forum
Content Administration - 8Labels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions