Go Back   FlashFXP Forums > > > >

Suggestions Got a new idea or addition which would benefit IOFTPD? Post it here!

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-17-2004, 02:42 PM   #1
Mave_2
Member
 
Join Date: May 2003
Posts: 33
Smile Global Credits

hm why is it that you in io cant have different ratios in in sections and still have all creds counted together from all those in section 0 so you dont need to site transfer all the time

Would be great if a option could be added to ioFTPD were you can choose between Global credits or Sections Credits
so no site transfer is needed anymore between sections
but instead you have global credits togheter from different sections with different ratios in default section 0
Mave_2 is offline   Reply With Quote
Old 07-31-2004, 12:26 PM   #2
Paladium
Junior Member
 
Join Date: Jul 2004
Posts: 19
Default

I agree
currently we are able to seperate credits sections where we can put diffenrent ratio on it.
but why would we want to seperate the credits per section.
putting a 3rd section setting isn't needed but a solution like this would fit:
a option to not use credits per section but to use global credits and at the same time beeing able to use different ratio on the different sections
Gloabl Credits = (Section 0) x (Ratio Section 0) + (Section 1) x (Ratio Section 1)....
Paladium is offline   Reply With Quote
Old 05-12-2005, 02:22 AM   #3
foxmaster
Member
ioFTPD Foundation User
 
Join Date: Sep 2004
Posts: 31
Default

Is there any way to to get this done,, so we dont have to move the creditz from diffrent sections ??

Foxmaster
foxmaster is offline   Reply With Quote
Old 05-13-2005, 05:57 AM   #4
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

It's trivial to write script that moves credits from current section to specified section, after upload is complete. (eg. call script from message that is shown after upload completes)
darkone is offline   Reply With Quote
Old 05-13-2005, 09:59 PM   #5
iam
Senior Member
 
Join Date: Mar 2004
Posts: 289
Default

+1 for it
iam is offline   Reply With Quote
Old 05-13-2005, 11:18 PM   #6
EwarWoo
Senior Member
FlashFXP Registered User
ioFTPD Registered User
 
Join Date: Oct 2002
Posts: 462
Default

Quote:
Originally posted by darkone
It's trivial to write script that moves credits from current section to specified section, after upload is complete. (eg. call script from message that is shown after upload completes)
But the credits would still not be available globally without transferring, they'd only be available in the specified section, so you would still have to use site transfer all the time
EwarWoo is offline   Reply With Quote
Old 05-14-2005, 05:58 AM   #7
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

You're right.. perhaps it would be better to write script that changes the ratio on upload (there's a chance however, that on two concurrent uploads, one gets wrong ratio) otoh. One could also write script that moves credits on pre-RETR to section you're downloading from.
darkone is offline   Reply With Quote
Old 05-14-2005, 08:42 AM   #8
esmandil
Senior Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Oct 2004
Posts: 107
Default

As far as I can see, the easiest solution might be to have only one section, with 1:1 ratio or something, and use some onUpload script to add additional credits after each transfer, exact amount depending on filesize and section user is in.

I wouldn't call it trivial solution, though

Also, I don't use sections so I don't know how easy would it be to make it foolproof against user being in one dir and uploading to another...
esmandil is offline   Reply With Quote
Old 07-20-2005, 09:48 PM   #9
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

Make that in tcl, and map it to [pre] RETR, and you're in business:
Code:
filesize = file size of RETR-argument (or PWD + RETR-argument)
if current_section.credits >= filesize: return
loop on all sections:
  if section.credits >= filesize:
    section.credits -= filesize
    current_section.credits += filesize
    return
Quote:
Originally Posted by Paladium
I agree
currently we are able to seperate credits sections where we can put diffenrent ratio on it.
but why would we want to seperate the credits per section.
putting a 3rd section setting isn't needed but a solution like this would fit:
a option to not use credits per section but to use global credits and at the same time beeing able to use different ratio on the different sections
Gloabl Credits = (Section 0) x (Ratio Section 0) + (Section 1) x (Ratio Section 1)....
Mouton is offline   Reply With Quote
Reply

Tags
credits, global, section, sections, site

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
questions from the status window starz3r0 General Discussion 5 02-04-2005 06:28 AM


All times are GMT -5. The time now is 08:49 AM.

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