Page 1 of 2

New: Check multiple options in polls!

Posted: 2003-02-16, 13:50 UTC
by ghisler(Author)
I just wrote my first mod for phpbb to allow multiple answers in a poll! To enable this feature, just put a $ sign as the first character for the poll question, e.g.

$Which type of plugins do you use?

I chose this method because having a checkbox for this option would have required a lot of changes to the board, and even to the database! With my solution, it's quite a simple change.

I make this a test poll so you can try out this feature yourself.

Posted: 2003-02-16, 14:32 UTC
by André Martin
That's great! It works perfectly! Thanks!

Posted: 2003-02-17, 09:49 UTC
by Maxwish
you're a coding guru

**edited**
:x a typo in such a small sentence! damn I need coffee :x

Posted: 2003-02-17, 10:58 UTC
by fnheiden
Works like a charm :) Thanks!

Posted: 2003-02-17, 13:58 UTC
by ghisler(Author)
Thanks! Btw, yesterday I added some more code which also shows how many users participated in the poll in addition to the number of votes. :)

Posted: 2003-11-27, 10:33 UTC
by Reva
Christian, Are you planning to post the MOD source somewhere? I'm planning to use it for my friends forum. thx.

Posted: 2003-11-27, 20:50 UTC
by ghisler(Author)
I can if you want, but in the meantime there has been an official mod released which is much better than mine - check the phpbb site! If you still want to use my mod, let me know and I will post it here.

Posted: 2003-11-28, 05:39 UTC
by Reva
Christian, Are you referring to "Multivote_Mod" at http://www.phpbb.com/phpBB/viewtopic.php?t=79099&highlight= http://users.otenet.gr/~vil1st/multivote_mod/, I tried it once does not seem to work Properly with MSSQL or are you referring someother mod ? if not please post the post mod.
Thanks in advance.

Posted: 2003-11-28, 20:15 UTC
by ghisler(Author)
Yes, I was referring to the multi-vote mod, and yes, it requires changes to the database! Mine does not require changes to the database, but it's not as powerful - you cannot set how many answers you want.

I have put my mod here: multiple_answers_vote.txt

Note that I'm using phpBB 2.0.4, so it may not work with other versions (but there should be no problem to adapt it).

Posted: 2003-12-01, 12:02 UTC
by Reva
Thanks a lot, Its working great..:-)

F.Y.I : In version 2.0.6 of phpBB this line
$template->set_filenames(array(
'pollbox' => 'viewtopic_poll_ballot.tpl')
);
appears twice in viewtopic.php, I had to replace the second instance of this line to get the MOD working.

Thx again.

Posted: 2003-12-01, 20:54 UTC
by ghisler(Author)
Btw, is the update 2.0.4 -> 2.0.6 difficult? I didn't yet make it because the forum is working very well, and I don't want to risk to break it. I did add some security patches, though.

Posted: 2003-12-02, 04:16 UTC
by Reva
I'm not aware as I was runnning version 2.0.5 and the upgrade to 2.0.6 from 2.0.5 was damn simple, I managed to do it in 5 mins despite having 3 MODS.

Posted: 2007-09-15, 14:41 UTC
by PeaceMaker
Great job!!!

Posted: 2007-09-16, 09:11 UTC
by ghisler(Author)
2PeaceMaker
Why do you reply to a thread from 2003?

Posted: 2007-09-16, 09:16 UTC
by m^2
I think he had it on his todo list ;)