Welcome, Guest. Please Login or Register.
May 09, 2025, 06:02:03 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Unlimited choices for poll « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Unlimited choices for poll  (Read 468 times)
edlomon
Full Member
***
Posts: 179


Unlimited choices for poll
« on: January 04, 2003, 10:57:08 PM »
Reply with quote

ok i seen this on XMB and i think PhpBB does it too,a option where you can set as many choices for a poll as u want.i know i wish it was true when i wanted to make a 10 option poll.ne 1 that makes it plz try to make a YaBB Pak version.
Logged
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:Unlimited choices for poll
« Reply #1 on: January 04, 2003, 11:56:50 PM »
Reply with quote

by design, you can't do this. It would require a lot of changing and you might as well wait for it to be in 2.0 since I doubt people will do such a large mod
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
tdodnz
Sr. Member
****
Posts: 275


Asleep zzzzz (Snore Snore)

ICQ - 166370583cnd_nz@go.com WWW
Re:Unlimited choices for poll
« Reply #2 on: January 05, 2003, 12:04:47 AM »
Reply with quote

largemod no way you just get the person to put it in a textbox like option1, option2 then you just explode it and put it in the database
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Unlimited choices for poll
« Reply #3 on: January 05, 2003, 12:16:52 AM »
Reply with quote

Quote from: tdodnz on January 05, 2003, 12:04:47 AMlargemod no way you just get the person to put it in a textbox like option1, option2 then you just explode it and put it in the database
The point is it requires some db changes.
Logged

tdodnz
Sr. Member
****
Posts: 275


Asleep zzzzz (Snore Snore)

ICQ - 166370583cnd_nz@go.com WWW
Re:Unlimited choices for poll
« Reply #4 on: January 05, 2003, 12:34:52 AM »
Reply with quote

i don'[t think so, but ill check it out before i start saying your wrong  ;D
Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:Unlimited choices for poll
« Reply #5 on: January 05, 2003, 08:22:10 AM »
Reply with quote

No it will need changes as currently the db hardcodes the poll to 7 I think?
A better way, if you wanted to do this, would be have another table to store poll option entries that would refer back to the poll they belong too,
Logged
klumy
Sr. Member
****
Posts: 432


Re:Unlimited choices for poll
« Reply #6 on: January 05, 2003, 10:03:36 AM »
Reply with quote

It would also be a nice feature, if you can make multiple vote choices like in vBullettin.
Logged
edlomon
Full Member
***
Posts: 179


Re:Unlimited choices for poll
« Reply #7 on: January 05, 2003, 03:14:35 PM »
Reply with quote

couldnt u make the poll a text area like XMB? or make it that if u want another option it pops a new option until ur done like PhpBB.
Logged
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:Unlimited choices for poll
« Reply #8 on: January 05, 2003, 05:27:10 PM »
Reply with quote

I was about to post a need for this myself, I'm currently attempting to modify the code for this..  but, only for my 1.4.1 version at the moment.. hope someone else will volunteer for this..

So far I got the data correct, and multiple choices correct and the ability to write to data the choices and so on.. The format of the code in display.php is a tad bit more on the sophisticated side than my ability to understand how to re-write it to display the data in the format desired.  I'll keep trying, but it really would be nice If I could get a helping hand on that one last part of the entire puzzle.. Once that is done we'll have a functional multiple choice questionaire vote option..  that should work with both 1.4 and 1.5..
« Last Edit: January 05, 2003, 08:11:51 PM by Wiziwig » Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Unlimited choices for poll
« Reply #9 on: January 05, 2003, 10:07:22 PM »
Reply with quote

Well, here's how I do mine.... it might work for YaBB SE:

TEXT column:
choice 1~5|choice 2~67|choice 3|choice 4~3

In essence, it's (choice name with tildas filtered out)~(###)|(choice name with tildas filtered out)~(###)|...|(choice name with tildas filtered out)~(###)

Then I just explode, and it works perfectly.

Of course, this WOULD mean making the db store just one TEXT for polls.

-[Unknown]
Logged
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:Unlimited choices for poll
« Reply #10 on: January 05, 2003, 10:24:25 PM »
Reply with quote

Not knowing exactly who you are.. But I did allready get the db to contain under one table the multiples. Simply added question2, question3, and question4 to the table as tinytext.  What I have so far will enter, contain, and display the results..

But in display.php this whole thing with variably assigning $pollHtml to display the results as well as the html table format is a puzzler. between the math statement for ($i = 1; $i <= 16; $i++) and the variable $pollHtml I will have to learn how to break those down.. have pollHtml display the first question, have the $i do four and display results, have pollHtml display the second question, have $i do the next four and display the results .. so on up to 16.


Quote from: [Unknown] on January 05, 2003, 10:07:22 PMWell, here's how I do mine.... it might work for YaBB SE:

TEXT column:
choice 1~5|choice 2~67|choice 3|choice 4~3

In essence, it's (choice name with tildas filtered out)~(###)|(choice name with tildas filtered out)~(###)|...|(choice name with tildas filtered out)~(###)

Then I just explode, and it works perfectly.

Of course, this WOULD mean making the db store just one TEXT for polls.

-[Unknown]
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Unlimited choices for poll
« Reply #11 on: January 05, 2003, 10:40:49 PM »
Reply with quote

Hmmm... not sure.  Who am I?

I would just explode as I said and use foreach... as so:

$pollchoices = explode("|", $pollTEXTdatathing);

$i = 0;
foreach($pollchoices as $pollchoice)
{
   list($answer, $num) = explode('~', $pollchoice);
   print '[ ]' . $answer;
}

Etcetera...

-[Unknown]
Logged
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:Unlimited choices for poll
« Reply #12 on: January 05, 2003, 10:50:16 PM »
Reply with quote

Um yeah. ok,. sure. clear as freekin mudd. Would you coderzs know how to speek anything other than geek.. you know,. for us little less knowledged folks who does just enough to make something seem more like er.. common sense.. ? naa. prolly not..  I know how hard it is to explain this stuff.. i have to do that all the time as a teacher...


Quote from: [Unknown] on January 05, 2003, 10:40:49 PMHmmm... not sure.  Who am I?

I would just explode as I said and use foreach... as so:

$pollchoices = explode("|", $pollTEXTdatathing);

$i = 0;
foreach($pollchoices as $pollchoice)
{
   list($answer, $num) = explode('~', $pollchoice);
   print '[ ]' . $answer;
}

Etcetera...

-[Unknown]
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Unlimited choices for poll
« Reply #13 on: January 05, 2003, 10:58:25 PM »
Reply with quote

Quote from: Wiziwig on January 05, 2003, 10:50:16 PMUm yeah. ok,. sure. clear as freekin mudd. Would you coderzs know how to speek anything other than geek.. you know,. for us little less knowledged folks who does just enough to make something seem more like er.. common sense.. ? naa. prolly not..  I know how hard it is to explain this stuff.. i have to do that all the time as a teacher...

Guilty as charged.  I really thought that was clear. (although I realize it wasn't very...)

-[Unknown]
Logged
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:Unlimited choices for poll
« Reply #14 on: January 05, 2003, 11:04:27 PM »
Reply with quote

Oh well. I almost have something here.. Might not be exactly as wished.. hard coded four choices, four questions each choice. But it's a start.. Someone else more talented at this than I could either help or take the project over and make it better.. I figured out the display function on this..

update. I give up. nearly had it. To many barriers for me for the moment.. considering that I work for a living, I dont have time to decypher geek speak.


Quote from: [Unknown] on January 05, 2003, 10:58:25 PMGuilty as charged.  I really thought that was clear. (although I realize it wasn't very...)

-[Unknown]
« Last Edit: January 06, 2003, 03:03:08 AM by Wiziwig » Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Unlimited choices for poll « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.064 seconds with 21 queries.