Thread: ioVOTE
View Single Post
Old 09-11-2005, 11:59 PM  
Gumbas
Junior Member
 
Join Date: Mar 2005
Posts: 11
Exclamation

Quote:
Originally Posted by Harm
Here is a little script for those who want a voting system.
Code:
###; ioVOTE.itcl v0.2 (22/03/2004) by Harm
###; ioFTPD 5.8.4r+

Install:
========

1. Copy everything in .\ioFTPD\scripts\.

2. Add those to your ioFTPD.ini:

[Scheduler]
VoteResults = 0 0 1 * TCL C:\location\of\your\scripts\ioVOTE.itcl LOG

[FTP_Custom_Commands]
vote = TCL C:\location\of\your\scripts\ioVOTE.itcl VOTE
addvote = TCL C:\location\of\your\scripts\ioVOTE.itcl ADDVOTE
logvote = TCL C:\location\of\your\scripts\ioVOTE.itcl LOG

[FTP_SITE_Permissions]
vote = !A *
addvote = M
logvote = M

3. Edit the paths in ioVOTE.itcl carefully.

4. Use SITE CONFIG REHASH.

5. Add those to your ioBanana.tcl or your dZSbot.tcl:

set variables(VOTE) "%user %group %topic"
set variables(VOTETOPIC) "%topic"
set variables(VOTERESULT) "%number %votes %option" 

set disable(VOTE) 0
set disable(VOTETOPIC) 0
set disable(VOTERESULT) 0

6. Add "VOTE VOTETOPIC VOTERESULTS" to the 'set msgtypes(RACE)' list in ioBanana.tcl or dZSbot.tcl.

7a. If you're using ioBanana, add those to your ioBanana skin:
set announce(VOTE) "-:[b]:[b] [c]$ioss(color1)vote[c] [b]:[b]:- [b]%user[b]@%group added a new poll: [b]%topic[b]. Go vote people!"
set announce(VOTETOPIC) "-:[b]:[b] [c]$ioss(color1)vote[c] [b]:[b]:- Vote results for: [b]%topic[b] are:"
set announce(VOTERESULT) "-:[b]:[b] [c]$ioss(color1)vote[c] [b]:[b]:- Number %number, [b]%option[b] got [b]%votes[b] votes."

7b. If you're using dZSbot, add those to your dZSbot.tcl:
set announce(VOTE) "-%sitename- \[VOTE\] + %bold%user%bold@%group added a new poll: %bold%topic%bold. Go vote people!"
set announce(VOTETOPIC) "-%sitename- \[VOTE\] + Vote results for: %bold%topic%bold are:"
set announce(VOTERESULT) "-%sitename- \[VOTE\] + Number %number, %bold%option%bold got %bold%votes%bold votes."

8. Rehash your sitebot.
It is available to foundation members.
Hello I can't find 'set msgtypes(RACE)' list in ioBanana.tcl and I not fully undrestand what to do in this point 6 please help.

"6. Add "VOTE VOTETOPIC VOTERESULTS" to the 'set msgtypes(RACE)' list in ioBanana.tcl or dZSbot.tcl."

I'm using ioBanana v20 and ioB_dZS skin
Gumbas is offline   Reply With Quote