home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / MODS412.ZIP / AUTOVOTE.MOD < prev    next >
Text File  |  1990-09-18  |  5KB  |  117 lines

  1. Sysop #1 @5209
  2. Thu Sep 13 10:22:15 1990
  3. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  4. =-                                                                       -=
  5. -=                            AutoVote Mod                               =-
  6. =-     For 4.xx systems                         Updated for 4.12!        -=
  7. -=                            9/13/90 - V2.0                             =-
  8. =-                        Written by: The Duke                           -=
  9. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  10.               (A 'My First Mod' production)
  11.  
  12.   Description:  Have you ever seen your new users trying to figure out how
  13.                 to use the voting booth?  Or, after adding, deleting, and
  14.                 modifying questions, do your users have problems working
  15.                 their way around trying to find only the new
  16.                 questions?  If so, then this mod is for you!
  17.  
  18.                 This mod will automatically give all the voting questions
  19.                 that the current user has not answered yet, all by only
  20.                 pressing 1 key.
  21.  
  22.                 Of course, if you are one that has removed the voting
  23.                 section for various reasons, then you may stop reading
  24.                 now!
  25.  
  26.   Disclaimer  : First of all, to me this is a original mod.  I have NEVER
  27.                 seen, or heard of this mod previously.  If it has been
  28.                 previously written, I will hereby relinquish my first
  29.                 born to the previous author.
  30.                 Also, continuing with the disclaimer, if this mod causes
  31.                 your new CD-ROM to become a glass coaster, or for acts of
  32.                 God to bestow upon your house, that are not covered by
  33.                 Nationwide, then I cannot be held responsible.  This mod
  34.                 works great on my system (WWIV 4.11) and even though it only
  35.                 took 5 minutes to write, (this Doc File took longer!) it
  36.                 should not cause any problems... So.. Without further ado...
  37.  
  38.       Note: For 4.12 systems, see the end notes, as file changes are
  39.         nessessary!
  40.  
  41.  
  42. -----------
  43. - The Mod -
  44. -----------
  45. (< Legend >)
  46.  
  47. + Add line
  48. % Change Line
  49. = Leave as is
  50.  
  51. - STEP 1  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  52.  
  53.    In BBSUTIL1.C:
  54.  
  55. In the variable section of void vote(), add: loop to the list of int's.
  56.  
  57. =  void vote() /* Line 1277*/
  58. =   {
  59. %   int i,i1,i2,f,map[21],mapp,abort,n,done,loop;
  60. +   char s[81],s1[81],s2[81],sodc[10],*ss;
  61.  
  62. - STEP 2  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  63.  
  64.   Lower in BBSUTIL1.C:
  65.  
  66. Change/Add the following code in void vote(), according to the legend:
  67.  
  68. =  print_quest(f,mapp,&map[0]);
  69. =  done=0;
  70. =  do {
  71. =    nl();
  72. =    nl();             /* Below is line 1319 */
  73. %    prt(2,"Voting Booth: (Enter A to AutoVote, Question Number,");
  74. +    nl();
  75. +    prt(2,"               Q to Quit, or ? for list of questions): ");
  76. =    strcpy(odc,sodc);
  77. =    ss=mmkey(2);
  78. =    i=atoi(ss);
  79. =    if ((i>0) && (i<=mapp))
  80. =      vote_question(f,i,map[i]);
  81. +    else
  82. +      if (strcmp(ss,"A")==0) {
  83. +       for (loop=1; loop <= mapp; loop++)
  84. +          if ( (!thisuser.votes[ map[loop] ]) && (!hangup) )
  85. +              vote_question(f,loop,map[loop]);
  86. +       nl();
  87. +    prt(1,"AutoVote Complete.");
  88. +       done=1; }
  89. =      else
  90. =      if (strcmp(ss,"Q")==0)
  91. =       done=1;
  92.  
  93. - STEP 3  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  94.  
  95.  Just hit F9, and copy the new version into your BBS directory.
  96.  That was easy, wasn't it?  Not bad for a 5 minute mod, if I do say so
  97.  myself.
  98.  
  99.  
  100. - 4.12 Users  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  101.  
  102.   Please note that instead of in BBSUTIL1.C, it is the last function in
  103.   MSCCMD.C.  Also, in the first part of the mod, I added a "done=0;" to
  104.   the code.  Wayne removed this in 4.12, and it should be added back in
  105.   to make sure AutoVote works correctly.  Also note that the line numbers
  106.   specified will be incorrect.  Other than that, the mod works great!
  107.  
  108. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  109.  
  110.  
  111.   Conclusion:  All I ask, is that if you try this mod, please E-Mail me
  112.                at 1@5209 (Crimson Connection) to say that you have tried
  113.                it, and what you think about it.  Thats not too much is it?
  114.  
  115.                Remember, send mail to 5209!
  116.  
  117. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-