New: Check multiple options in polls!

Only forum where polls are allowed. You may announce a new poll in the matching support forum.

Moderators: white, Hacker, petermad, Stefan2

$Sample question: Which type of plugins do you use?

Packer plugins (e.g. BZIP2)
102
33%
File system plugins (e.g. SFTP)
102
33%
Lister plugins (e.g. SynUS)
103
34%
 
Total votes: 307

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

New: Check multiple options in polls!

Post 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.
Author of Total Commander
https://www.ghisler.com
User avatar
André Martin
Senior Member
Senior Member
Posts: 245
Joined: 2003-02-05, 15:46 UTC
Location: Dresden, Germany

Post by *André Martin »

That's great! It works perfectly! Thanks!
Browse the web with the HTTP SmartBrowserPlugin
Check your mails with the POP3/SMTP EmailPlugin!
User avatar
Maxwish
Senior Member
Senior Member
Posts: 370
Joined: 2003-02-05, 19:13 UTC
Location: .NL

Post by *Maxwish »

you're a coding guru

**edited**
:x a typo in such a small sentence! damn I need coffee :x
Last edited by Maxwish on 2003-02-17, 14:44 UTC, edited 1 time in total.
User avatar
fnheiden
Senior Member
Senior Member
Posts: 234
Joined: 2003-02-16, 12:06 UTC
Location: Dresden, Germany
Contact:

Post by *fnheiden »

Works like a charm :) Thanks!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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. :)
Author of Total Commander
https://www.ghisler.com
Reva
Junior Member
Junior Member
Posts: 29
Joined: 2003-02-12, 12:38 UTC

Post by *Reva »

Christian, Are you planning to post the MOD source somewhere? I'm planning to use it for my friends forum. thx.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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.
Author of Total Commander
https://www.ghisler.com
Reva
Junior Member
Junior Member
Posts: 29
Joined: 2003-02-12, 12:38 UTC

Post 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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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).
Author of Total Commander
https://www.ghisler.com
Reva
Junior Member
Junior Member
Posts: 29
Joined: 2003-02-12, 12:38 UTC

Post 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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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.
Author of Total Commander
https://www.ghisler.com
Reva
Junior Member
Junior Member
Posts: 29
Joined: 2003-02-12, 12:38 UTC

Post 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.
User avatar
PeaceMaker
Senior Member
Senior Member
Posts: 287
Joined: 2005-12-31, 22:32 UTC
Location: Warsaw, Poland
Contact:

Post by *PeaceMaker »

Great job!!!
[face=tahoma]LICENSE NUMBER: #101897 Single user license (since: 6th February 2004)
CURRENT VERSION: Total Commander 9.00 beta 12 (released: 31st August 2016)
[/face]
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2PeaceMaker
Why do you reply to a thread from 2003?
Author of Total Commander
https://www.ghisler.com
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

I think he had it on his todo list ;)
Post Reply