Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Polls

Asked Modified Viewed 4,623 times
F
flyfisherman
F
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
asked
Junior Member

Hope this is correct thread, I wonder if anyone can tell me or better still send me.

I have been trying to edit the standard poll software to allow a poll with 15 options.
I am having no success as I am new to all of this.

Can someone please help ?????

Colin :)
0 replies

11 posts

F
fusionist
F
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 2 threads in the forums
answered
Newbie

hi)
seems that everybody is on vacation? wink
i dont know, but i would try to change: polls.php in administration and member_poll_panel.php in infusions...
[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] ****change the numer 10 to whatever*****

and in both files: [syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]$data = dbarray(dbquery("SELECT 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 FROM ".DB_POLLS." WHERE poll_id='".$_POST['poll_id']."'"wink);[/syntaxhighlighter] ****add some more poll_opts*****

but i just got here a few days ago and am guessing too... change those 2 files and testwink
Edited by JoiNNN on 15-09-2013 12:21,
0 replies
F
flyfisherman
F
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
answered
Junior Member

Will try this thank you very much.
I will let you know if it is successful.

Cheers CJ
0 replies
F
fusionist
F
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 2 threads in the forums
answered
Newbie

cool, feedback welcome :)

also: thx joinnn, looks much better now =)

greets@all=)
0 replies
F
flyfisherman
F
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

fusionist wrote:

cool, feedback welcome :)

also: thx joinnn, looks much better now =)

greets@all=)


Cant seem to get that working at all.
Could be I am missing something as I am lost with php coding.
When I change the poll page in administration I get an error, then tried to change the page within the infusions folder as well.
But cant get anything.
Will have to start playing with this php and learn a little more
Many Thanks .... Colin
0 replies
F
fusionist
F
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 2 threads in the forums
answered
Newbie

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'wink"wink; [/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=)
Edited by fusionist on 15-09-2013 23:59,
0 replies
F
flyfisherman
F
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
answered
Junior Member

Thought I had cracked it with your help.
I have now got the options 1 to 15 in admin panel, but each time I save a poll it says its added but does not show.

Have the error showing now in Poll Panel when viewing on webpage :

Unknown column 'poll_opt_10' in 'field list'
There are no polls defined.



I have changed in Admin Poll lines
59, 63, 83, 110 & 126
Do I need to change Line 113 from 9 to 15

In Infusions I changed lines
23, 44 & 49

Tearing my hair out here LOL. :(






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=)
0 replies
F
fusionist
F
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 2 threads in the forums
answered
Newbie

hmmm.. ok.. progress!

i can also preview the poll, and save it... (didn't check further..lol)

(i had to add an option " admin-weblinks-polls -> administration/polls.php to even see the polls link on the main site) wasnt' there b4..
when i click on the new polls link it just brings me back to the site index...

hmmm.. we are nearly there it seems...

will look at it in the latter day... if you have any news or ideas, pls post..
ttyl=)
Edited by fusionist on 16-09-2013 11:43,
0 replies
F
flyfisherman
F
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
answered
Junior Member

LOL this gets more frustrating by the minute.

I restored all back to normal, then added in multipoll panel, this gives me my 15 options without any problem, but when I try to start a poll I get.

On Management system ( of multipoll panel )
Table 'ayrpool.fusionJiDE3_multipolls' doesn't exist
There are no polls defined.

In the panel itself it shows.
Table 'ayrpool.fusionJiDE3_multipolls' doesn't exist
There are no polls defined.
0 replies
F
fusionist
F
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 2 threads in the forums
answered
Newbie

yeh, i also am having lots of issues...

im waiting on the next rls.. theres just too much that has to be fixed...

l8r=)
0 replies
F
flyfisherman
F
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
answered
Junior Member

Re Installed the Multipoll panel and now have it all working giving me the options that I need.

Thanks very much for all your help :). Only one here who made any attempt at helping.:|

Colin
0 replies
F
fusionist
F
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 2 threads in the forums
answered
Newbie

happy to hear that you got it sorted=)
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 11 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

F
F
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
F
F
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 2 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet