Go Back   FlashFXP Forums > ioFTPD Forum > ioFTPD > Scripting > Harm's scripts

Harm's scripts ioBanana, Readd script, ioVote

Reply
 
Thread Tools Rate Thread
Old 09-05-2005, 02:23 AM   #1
Member
 
Join Date: Sep 2005
Posts: 61
Default [Fixed] ioB2 colours error

Hi. I am trying to edit skin, in IOBANANA section i write set ioBmsg(activity) "\[[c]%colour[b]BW[b][c]\]
and the result in channel looks like this:
[%colourBW] Up:
How can i fix this?
oldhouse is offline   Reply With Quote
Old 09-05-2005, 05:51 PM   #2
Member
 
Join Date: Dec 2003
Posts: 91
Default

Try

"\[[c]%colour[b]BW[b][c]\]" (closing " was missing)
or

"\[[c]%colour [b]BW[b][c]\] and check if it replaces cookie then

os
oslike is offline   Reply With Quote
Old 09-06-2005, 12:35 PM   #3
Member
 
Join Date: Sep 2005
Posts: 61
Default

that's not the problem since brackets are closed at the end of the line...
oldhouse is offline   Reply With Quote
Old 09-06-2005, 06:55 PM   #4
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 2,022
Default

That's a bug. ioBmsg(activity) is never parsed for the %colour, %section and %sitename variables.

If you want to fix yourself, find this in ioBanana.tcl:

set output $ioBmsg(activity)

then some lines below:

ioB:tsend chan $chan $output

Above that line, add one with:

set output [ioB:basicreplace "BW" $output]

Save, .rehash your sitebot, and marvel.
Mouton is offline   Reply With Quote
Old 09-07-2005, 02:14 AM   #5
Member
 
Join Date: Sep 2005
Posts: 61
Default

Thx. Solution is ok for bw command but same problem persist with all other commands in that section, like uploaders, idlers, and downloaders.

According to your suggestions i added these lines too:
set output [ioB:basicreplace "SPEED" $output] under "speed" section.


set output [ioB:basicreplace "UPLOADERS" $output]
set output [ioB:basicreplace "DOWNLOADERS" $output]
set output [ioB:basicreplace "IDLERS" $output]
in "usage" section.

Hope it will be fixed in new version.
oldhouse is offline   Reply With Quote
Old 09-07-2005, 01:37 PM   #6
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,462
Default

Actually, this was by design. I don't use those cookies for those announces so I've never added support for them. Now that I can see there's a need for it, you can be sure it'll be added soon.

PS: In fact, I've just added support for the %sitename and %colour cookies for almost all announces. The only ones left are those that do not support any cookies. I will wait for a few more changes before releasing a new version though.
Harm is offline   Reply With Quote
Old 09-08-2005, 01:56 AM   #7
Member
 
Join Date: Sep 2005
Posts: 61
Default

Nice to hear. Thx.
oldhouse is offline   Reply With Quote
Old 09-11-2005, 10:51 PM   #8
Junior Member
ioFTPD Foundation User
 
Join Date: Nov 2003
Posts: 28
Default

I miss seeing what bw is doing in the !uploaders or !leechers (now !up and !dn) cmds. older version of iobanana use to display list of users and their bw on the site. Now with the new version is still displays the users of course but instead gives a total BW instead of a break down of who's using what in terms of bandwidth. Will we ever see the breakdown again?
ko0ky is offline   Reply With Quote
Old 09-12-2005, 01:47 AM   #9
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,462
Default

The !who command is still available. I might add a per-user bw cookie in the future. It was removed because I noticed the reply to the !up and !dn commands was pretty long when there was a lot of users online. I need to figure out how to avoid spamming the channel first.. or perhaps I will allow the users to use the cookie but won't add it to the default skins. Stay tuned If you have any idea/comment about this, let me know.
Harm is offline   Reply With Quote
Reply
Create a free account to browse our forums without ads



Thread Tools
Rate This Thread
Rate This Thread:

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 10:34 PM.