This forum uses cookies. Click X button to hide this message. What is stored? 
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

New: Check multiple options in polls!
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander Polls (English) Printable version
View previous topic :: View next topic  

Sample question: Which type of plugins do you use?
Packer plugins (e.g. BZIP2)
33%
 33%  [ 102 ]
File system plugins (e.g. SFTP)
33%
 33%  [ 101 ]
Lister plugins (e.g. SynUS)
33%
 33%  [ 102 ]
Total Votes : 305
Total users voting: 120

Author Message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34649
Location: Switzerland

PostPosted: Sun Feb 16, 2003 7:50 am    Post subject: New: Check multiple options in polls! Reply with quote

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
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
André Martin
Senior Member
Senior Member


Joined: 05 Feb 2003
Posts: 245
Location: Dresden, Germany

PostPosted: Sun Feb 16, 2003 8:32 am    Post subject: Reply with quote

That's great! It works perfectly! Thanks!
_________________
Browse the web with the HTTP SmartBrowserPlugin
Check your mails with the POP3/SMTP EmailPlugin!
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Maxwish
Senior Member
Senior Member


Joined: 05 Feb 2003
Posts: 370
Location: .NL

PostPosted: Mon Feb 17, 2003 3:49 am    Post subject: Reply with quote

you're a coding guru

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


Last edited by Maxwish on Mon Feb 17, 2003 8:44 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
fnheiden
Senior Member
Senior Member


Joined: 16 Feb 2003
Posts: 228
Location: Dresden, Germany

PostPosted: Mon Feb 17, 2003 4:58 am    Post subject: Reply with quote

Works like a charm Smile Thanks!
_________________
http://www.mp3tag.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34649
Location: Switzerland

PostPosted: Mon Feb 17, 2003 7:58 am    Post subject: Reply with quote

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. Smile
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Reva
Junior Member
Junior Member


Joined: 12 Feb 2003
Posts: 29

PostPosted: Thu Nov 27, 2003 4:33 am    Post subject: Reply with quote

Christian, Are you planning to post the MOD source somewhere? I'm planning to use it for my friends forum. thx.
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34649
Location: Switzerland

PostPosted: Thu Nov 27, 2003 2:50 pm    Post subject: Reply with quote

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
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Reva
Junior Member
Junior Member


Joined: 12 Feb 2003
Posts: 29

PostPosted: Thu Nov 27, 2003 11:39 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34649
Location: Switzerland

PostPosted: Fri Nov 28, 2003 2:15 pm    Post subject: Reply with quote

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
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Reva
Junior Member
Junior Member


Joined: 12 Feb 2003
Posts: 29

PostPosted: Mon Dec 01, 2003 6:02 am    Post subject: Reply with quote

Thanks a lot, Its working great..Smile

F.Y.I : In version 2.0.6 of phpBB this line
Quote:
$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.
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34649
Location: Switzerland

PostPosted: Mon Dec 01, 2003 2:54 pm    Post subject: Reply with quote

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
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Reva
Junior Member
Junior Member


Joined: 12 Feb 2003
Posts: 29

PostPosted: Mon Dec 01, 2003 10:16 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
PeaceMaker
Senior Member
Senior Member


Joined: 31 Dec 2005
Posts: 287
Location: Warsaw, Poland

PostPosted: Sat Sep 15, 2007 8:41 am    Post subject: Reply with quote

Great job!!!
_________________
LICENSE NUMBER: #101897 Single user license (since: 6th February 2004)
CURRENT VERSION: Total Commander 9.00 beta 12 (released: 31st August 2016)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34649
Location: Switzerland

PostPosted: Sun Sep 16, 2007 3:11 am    Post subject: Reply with quote

2PeaceMaker
Why do you reply to a thread from 2003?
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
m^2
Power Member
Power Member


Joined: 12 Jul 2006
Posts: 1413
Location: Poland

PostPosted: Sun Sep 16, 2007 3:16 am    Post subject: Reply with quote

I think he had it on his todo list Wink
_________________
Image: http://img201.imageshack.us/img201/2110/pcbsdec7.jpg
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander Polls (English) All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group