PDA

View Full Version : BTRIAL SCRIPT - site trial / !trial


bounty
01-22-2004, 11:23 AM
new link: http://www.ioftpd.com/scripts/script.php?id=55


have fun
bounty

bounty
01-22-2004, 11:26 AM
this is a trial script ONLY

this script is stand alone so it can work with all sitebots

this isn't a QUOTA SCRIPT

i'll make also a quota script if needed

have fun
bounty

alturismo
01-22-2004, 11:35 AM
it definately is needed :D :D :D

zpr
01-22-2004, 01:29 PM
^^^agreed^^^

bounty
01-22-2004, 03:36 PM
here is the 1st update ;)

DL link & changelog on 1st post

have fun
bounty

bounty
01-26-2004, 05:12 PM
here is the 2nd public release

DL link & changelog on 1st post

have fun
bounty

phoenixfr
01-26-2004, 05:19 PM
waiting for quota/trial script in itcl :p
good work B0unty and as usual thx 4 sharing.

bounty
01-26-2004, 05:23 PM
Originally posted by phoenixfr
waiting for quota/trial script in itcl :p
good work B0unty and as usual thx 4 sharing.

i'm busy on bquota ;)

bounty
01-31-2004, 04:50 PM
Btrial 2.1 just released ;)

DL link & changelog on 1st post

have fun
bounty

rAWfOX
01-31-2004, 05:19 PM
cool...

A little request for this, is it possible to get it to work with a sitering?

Lets say:

trial is 6gb for lets say 4 sites... the user uploads 2gb on site 1, 2 gb on site 2 and 2 gb on site 2 and he passed the trial.

and same goes to quota...

:D

if not, the user gets deleted on all sites....


/me hides and hopes the bounty isnt on rAWfOX

;)

bounty
02-01-2004, 11:15 AM
Btrial 2.2 just released

DL link & changelog on 1st post

have fun
bounty

Coffee
02-06-2004, 03:06 AM
installed script, and looks to work ok, only updating the userinfo seems to take a long time?

is this right?

greetz Coffee

bounty
02-06-2004, 04:40 AM
Originally posted by Coffee
installed script, and looks to work ok, only updating the userinfo seems to take a long time?

is this right?

greetz Coffee

updating the userinfo seems to take a long time? can you explain more what your problem please ?

Coffee
02-06-2004, 05:06 AM
have figured it out, not sure what went wrong, but zipscript created bad files so thats why they didnt count. Thx for fast reply

greetz Coffee

bounty
02-06-2004, 05:38 AM
Originally posted by Coffee
have figured it out, not sure what went wrong, but zipscript created bad files so thats why they didnt count. Thx for fast reply

greetz Coffee

ah yes btrial use allup values stats found in a userID file in /users dir
so if another script modify stats it will be also modified in btrial

pmac123
02-21-2004, 10:43 PM
[22:27] <xxx> [22:27] Tcl error [proc_btrial]: couldn't open "C:/ioFTPD/users/": permission denied

This happens when I use btrial..The main issue is that the TrialIdTable doesnt auto create somehow. But when i make it manually and add the users the file doesnt update.
Then when i add the user manually to the file and do !trial test i get the above response from the eggbot. Is there a certain version ioFTPD that must be used?

Coffee
02-24-2004, 04:34 AM
For some reason trial script isnt putting users in iND grp when passed trial. It just keeps counting and says passed

have to manualy move them and delete them from the trial file

greetz

Ren
02-24-2004, 05:14 AM
u did edit the script's so that it moves them to the iND group not the IND group ?

Coffee
02-24-2004, 07:06 PM
yup

big1
02-25-2004, 06:40 PM
thanke you very much for this script it working fine

MrX
02-27-2004, 04:18 PM
Where can i download this scripts (btrial Bquota).

Mouton
02-27-2004, 08:31 PM
u wait till bounty comes back and post it in ioftpd.com/scripts or until someone sends me the latest version so i can post it in the 'bounty-is-dead scripts' section in there.

_rage_ thegod
03-08-2004, 01:33 PM
Originally posted by Coffee
For some reason trial script isnt putting users in iND grp when passed trial. It just keeps counting and says passed

have to manualy move them and delete them from the trial file

greetz

same problem here, and YES i changed to iND instead of IND, and YES the group itself is also called iND.

bounty
03-10-2004, 09:41 AM
btrial 2.4 is out

new link on 1st post

have fun
bounty

_rage_ thegod
03-10-2004, 10:21 AM
looking good so far :)

ReCaR
03-10-2004, 11:10 AM
Thanks again 4 fixing Btrial script so fast after detecting bug !!!

Great w0rk Bounty !

Coffee
04-28-2004, 04:43 AM
<edited>

Found error

zpr
05-30-2004, 02:42 AM
too bad u r away b0unty...

anyway, i modyfied btrial.tcl and bquota.tcl only because if you !trial/!quota user script doesnt show any username, just stats/numbers (conflict starts when two users do !quota himself same time :) )

btrial.tcl:
set btannounce(TIMER) "\[User: %bold%user%bold\] - \[Time Remaining: %bold%timer%bold\]"

bquota.tcl:

set bqannounce(TIMER) "\[User: %bold%user%bold\] - \[Time Remaining: %bold%timer%bold\]"

now, bquota.tcl works, bot shows [User: some_user] etc....

but in btrial.tcl it does not :( i get only:

[User: %user] etc...

dunno why :(

and second thing: would be really great if you could add !trials/!quotas commands to show all passed and failed users

cool scripts, TY!

regards

Nitr0
05-30-2004, 11:28 PM
It would be great, if we could custom our own trigger, like currently !quota, if there is like 5 ftps, it gets mixed up, but if we had like a custom trigger, example, !sitequota user, !site2quota user... it would be much easier and convient.

Also if you have few sections, how to make it so it would show all quota of all section in one line (so it wont show each section seperate and its quota but all together)?

Great Script!

Thanks in advance,
Nitr0

alturismo
05-31-2004, 03:11 AM
check for something like this

bind pub -|- !trial proc_btrial

there u can modify your trigger to what u like

bind pub -|- !site01trial proc_btrial
bind pub -|- !site02trial proc_btrial

same for quota script ...

for your "sections", its mentioned in case you use different
ratio sections, normally section 0 is all u need
if you only use 1 credit section like 1:3

PopWeasel
06-05-2004, 04:14 PM
Doesn't seem to be working properly:

1:25:46 PM > site gadduser trial testtrial testtrial *@*
1:25:46 PM 200 gadduser Command successful.
1:31:15 PM > site trial testtrial
1:31:16 PM 200 Command successful. :confused:
...
1:42:54 PM > site deluser testtrial
1:42:54 PM 550 Command failed. :confused:

Also, I see no TrialIdTable being created anywhere. I've double-checked everything and I think I've configured everything properly including the init.itcl part. Also rehashed and restarted ioFTPD. I'm also getting this error in SystemError.log:

06-05-2004 13:30:33 "..\scripts\BTrial.v2.5\BTrialCore.itcl" terminated abnormally
--------------------------- ErrorInfo ----------------------------
can't read "btrial(GROUP)": no such variable
while executing
"if { $group == $btrial(GROUP) } { set args "" }"
(procedure "BTrialCore" line 4)
invoked from within
"BTrialCore"
(file "..\scripts\BTrial.v2.5\BTrialCore.itcl" line 177)
------------------------------------------------------------------

Have I dont something wrong?
Btrial part of my init.itcl located in C:\ioFTPD\scripts:

################################################## ###############################
##### GLOBAL BTRIAL 2.5 INI #####
# setup here the path of btrial
set btrial(PATH) "../scripts/BTrial.v2.5"

# name of your trial group (case sensitive)
set btrial(GROUP) "trial"

# name of the default group if user passed succesfully his trial (case sensitive)
set btrial(PASSED) "iND"

# duration of trial (in days)
set btrial(DAYS) 7

# stats section you want use (you can set multiple stats sections between 0-9)
# syntax : set btrial(SECTION) "<sectionID#>:<sectionNAME>:<QUOTA MB> <sectionID#>:<sectionNAME>:<QUOTA MB>"
# exemple: set btrial(SECTION) "0:DEFAULT:4096 1:MP3:2048 2:0DAY:2048"
set btrial(SECTIONS) "0:DEFAULT:4096"

zpr
06-08-2004, 10:05 AM
hm why there is no scheduler for btrial?

script moves user from trial to dest_grp only after manually 'site trial user' on site :/

nothing happens if user passes his trial (schedule it could work) or user does !trial user in chann

regards

buffi
07-31-2004, 07:00 AM
Hi Allll,
I managed to get everything working.
But How can I make it going on that if a certain user passes the trial it automatically changes him from trial group to iND

thanks

Kazi
11-28-2004, 05:39 PM
i cant get this to work anylonger
it now accepts users into trial by GADDUSER....
but they dont pass into iND group and 'site trial' no longer works for some reason... i just get 200 command successful...

when i log in now i no longer see the trial users info or anything...

wtf!

Ren
01-16-2005, 11:10 PM
same here, was working fine and now nothing :(

esmandil
01-17-2005, 05:10 AM
I would suggest checking if TrialIdTable hasn't become corrupted. And also, you may get some insight from one of the logs.

MessyR
02-27-2005, 04:55 PM
works great here just the same issue about not moving user to iND group once passed is all :/

Just keeps saying user is still in trial even though i manually move to iND :/

ANy solutions?

MidasKing
03-06-2005, 06:10 PM
Hi Bounty...

Think I found a small error in BTrial 2.5 (maybe...)

I have two sections in my system...

Every a trial user reach the quota in only one section (0 or 1) was moved to the final group (without reaching the quota in the other section).

Well... I changed two lines in bTrialCore.itcl and, pparently, no more problems...

if { $passed == 0 && $trial_end == "yes" }{

to

if { $passed < "xyz" && $trial_end == "yes" } {

and

} elseif { $passed == 0 } {

to

} elseif { $passed > "xyz - 1" } {

where "xyz" is equal to the number of sections (in my case, 2).

Until the moment, everything seems to be correct.

Somebody had problem similar?


PS.:I don't understand nothing of programming in TCL and can be total wrong...:rolleyes: :rolleyes: :rolleyes:

.

buffi
07-18-2005, 09:41 AM
hmmmmmmmmmm,
where is the new link.

m4r3z
09-07-2005, 12:27 PM
Hi

Installed btrial and bquota some days ago, works great :)

But I cant add users like I did before, gadduser trial works, script and all moves users to group when done with trial.. but if I try to add a user to "friends", they show up in my group aka siteop
My only idea is that btrial dont let me add users in other than my own group, and trial group. is this right ? or is it a way to add ppl to what group I want. Since not all ppl are going to trial group..

brood
09-23-2005, 05:28 AM
If I del a user who's on trial, his user name stays in the userlist shown on irc.

Anybody knows what could be wrong?

thanks