Go Back   FlashFXP Forums > > > >

Harm's scripts ioBanana, Readd script, ioVote

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-13-2004, 09:53 AM   #1
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default ioVOTE

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.
Harm is offline   Reply With Quote
Old 09-11-2005, 11:59 PM   #2
Gumbas
Junior Member
ioFTPD Foundation User
 
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
Old 09-12-2005, 01:38 AM   #3
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

All of these are getting old. Take some time to upgrade ioBanana and ioVOTE first. The versions currently available on the website are easier to setup. Also, make sure your board account is linked to your account on inicom's customer portal (if needed, mail support@inicom.net). This will show us that you really are a foundation member.
Harm is offline   Reply With Quote
Reply

Tags
%number, add, set, tcl, vote


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:18 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)