• src/sbbs3/readmsgs.cpp text.h text_defaults.c

    From rswindell@VERT to CVS commit on Mon Aug 14 03:18:05 2017
    src/sbbs3 readmsgs.cpp 1.99 1.100 text.h 1.26 1.27 text_defaults.c 1.33 1.34 Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv17189

    Modified Files:
    readmsgs.cpp text.h text_defaults.c
    Log Message:
    Implemented support for multiple-answer polls/ballots.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Mon Aug 14 12:49:50 2017
    Re: src/sbbs3/readmsgs.cpp text.h text_defaults.c
    By: rswindell to CVS commit on Mon Aug 14 2017 03:18 am

    readmsgs.cpp text.h text_defaults.c
    Log Message:
    Implemented support for multiple-answer polls/ballots.

    Are JavaScript bindings for this available? Or will that be added later?

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Mon Aug 14 12:56:12 2017
    Re: Multiple-answer polls
    By: Nightfox to Digital Man on Mon Aug 14 2017 12:49 pm

    Re: src/sbbs3/readmsgs.cpp text.h text_defaults.c
    By: rswindell to CVS commit on Mon Aug 14 2017 03:18 am

    readmsgs.cpp text.h text_defaults.c
    Log Message:
    Implemented support for multiple-answer polls/ballots.

    Are JavaScript bindings for this available? Or will that be added later?

    Already there. See postpoll.js for an example of how to create a multiple-answer poll. The same "votes" header property used in a ballot is used in a multi-answer poll (but for a different purpose).

    digital man

    Synchronet/BBS Terminology Definition #40:
    R0DENT = Derogatory reference to a young BBS user of the 1990's
    Norco, CA WX: 80.6øF, 55.0% humidity, 6 mph SE wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Mon Aug 14 15:28:59 2017
    Re: Multiple-answer polls
    By: Digital Man to Nightfox on Mon Aug 14 2017 12:56 pm

    Are JavaScript bindings for this available? Or will that be added
    later?

    Already there. See postpoll.js for an example of how to create a multiple-answer poll. The same "votes" header property used in a ballot is used in a multi-answer poll (but for a different purpose).

    I'm mostly interested in how to answer a multi-answer poll. What different purpose does the votes property have for a multi-answer poll? Can the votes property have a bit set for each user's answer?

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Mon Aug 14 21:58:40 2017
    Re: Multiple-answer polls
    By: Nightfox to Digital Man on Mon Aug 14 2017 03:28 pm

    Re: Multiple-answer polls
    By: Digital Man to Nightfox on Mon Aug 14 2017 12:56 pm

    Are JavaScript bindings for this available? Or will that be added
    later?

    Already there. See postpoll.js for an example of how to create a multiple-answer poll. The same "votes" header property used in a ballot is used in a multi-answer poll (but for a different purpose).

    I'm mostly interested in how to answer a multi-answer poll. What different purpose does the votes property have for a multi-answer poll?

    In a poll message, the "votes" property specifies the maximum number of answers/votse per ballot (0 is the equivalent of 1).

    Can the votes
    property have a bit set for each user's answer?

    Exactly, that's how it works now with single-answer polls too. Just with a multiple-answer poll, the user can toggle multiple answers (up to the maximum specified by the pollster).

    digital man

    Synchronet "Real Fact" #73:
    SyncTERM (created by Deuce) contains portions of Synchronet and SEXYZ code. Norco, CA WX: 63.6øF, 86.0% humidity, 5 mph SE wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Tue Aug 15 08:40:48 2017
    Re: Multiple-answer polls
    By: Digital Man to Nightfox on Mon Aug 14 2017 09:58 pm

    In a poll message, the "votes" property specifies the maximum number of answers/votse per ballot (0 is the equivalent of 1).

    Can the votes
    property have a bit set for each user's answer?

    Exactly, that's how it works now with single-answer polls too. Just with a multiple-answer poll, the user can toggle multiple answers (up to the maximum specified by the pollster).

    I'll work on updating SlyVote to support that. I should be able to this week/weekend.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com