Go Back   FlashFXP Forums > > > >

Harm's scripts ioBanana, Readd script, ioVote

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-05-2005, 02:23 AM   #1
oldhouse
Member
 
Join Date: Sep 2005
Posts: 60
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
oslike
Member
 
Join Date: Dec 2003
Posts: 90
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
oldhouse
Member
 
Join Date: Sep 2005
Posts: 60
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
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
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
oldhouse
Member
 
Join Date: Sep 2005
Posts: 60
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
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
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
oldhouse
Member
 
Join Date: Sep 2005
Posts: 60
Default

Nice to hear. Thx.
oldhouse is offline   Reply With Quote
Old 09-11-2005, 10:51 PM   #8
ko0ky
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
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
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

Tags
channel, fix, result, [%colourbw], [[c]%colour[b]bw[b][c]]

Thread Tools
Display Modes 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

Forum Jump


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

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