Go Back   FlashFXP Forums > > > >

WarC's scripts ioA, Warchive, ZR-Tools

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-24-2005, 07:08 PM   #1
fL4sh.r0x
Member
ioFTPD Foundation User
 
fL4sh.r0x's Avatar
 
Join Date: Sep 2005
Posts: 32
Default How new day and new week in same site?

Hi,
how i have to set new day and new week in the same site?
Ex:

XXX/Week47-05
xxx/2505

in ioFTPD.ini:

Newday = 0 23 * * EXEC ..\scripts\ioA\ioA.exe NEWDATE
Newday = 0 23 * 0 EXEC ..\scripts\ioA\ioA.exe NEWDATE

The 1st is newday, the 2nd newweek

How to fix it? New week spamm everyday

Tnx
fL4sh.r0x is offline   Reply With Quote
Old 11-24-2005, 07:20 PM   #2
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

If you really need to announce the new week, you'll most probably have to get your sitebot to make the difference and choose when to send the announce.

WarC: I'll try to add that to ioBanana without changing the way newdate is logged. However, it might be nice to be able to add a custom parameter to the logline in the future.
Harm is offline   Reply With Quote
Old 11-24-2005, 09:03 PM   #3
fL4sh.r0x
Member
ioFTPD Foundation User
 
fL4sh.r0x's Avatar
 
Join Date: Sep 2005
Posts: 32
Default

Harm, how to make the difference and choose when to send the announce by sitebot?
Make me an ex.
fL4sh.r0x is offline   Reply With Quote
Old 11-25-2005, 11:42 AM   #4
WarC
Senior Member
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 426
Default

if you want you can set so it doesnt log it at all. Format of line is :
"<area>|<description>|<physical path>|<vfs path>|<todaylink>|<uid>|<gid>|<offset of day>|<log or not>|<mode>"

this way today would be announced but week never. I know its not a perfect fix but its alteast something
WarC is offline   Reply With Quote
Old 11-25-2005, 03:25 PM   #5
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

domy_3: I'm going to use regular expressions or something similar for this matter.
Harm is offline   Reply With Quote
Old 11-26-2005, 01:34 AM   #6
fL4sh.r0x
Member
ioFTPD Foundation User
 
fL4sh.r0x's Avatar
 
Join Date: Sep 2005
Posts: 32
Default

I've this conf in my ioA:

Newdate_0 = "MP3|NEWDATE MP3|D:\MP3\%M%D|/MP3/%M%D|D:\HOME\MP3-TODAY|2|102|0|1|777"
Newdate_1 = "MP3|YESTERDAY MP3|D:\MP3\%M%D|/MP3/%M%D|D:\HOME\MP3-YESTERDAY|2|102|-1|0|755"
Newdate_2 = "MVID|NEWWEEK MVID|E:\MVID\Week%W-%y|/MVID/Week%W-%y|D:\HOME\MVID-LASTWEEK|2|102|0|1|777"

But everyday:
<00:00:39> <XXX> [MVID][NEWDAY] /MVID/Week47-05
<00:00:39> <XXX> [MP3][NEWDAY] /MP3/1126

New week only every sunday night or not?
fL4sh.r0x is offline   Reply With Quote
Old 11-26-2005, 04:14 AM   #7
WarC
Senior Member
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 426
Default

if you read my post about format above you can clearly see you have log enabled for it.
Newdate_2 = "MVID|NEWWEEK MVID|E:\MVID\Week%W-%y|/MVID/Week%W-%y|D:\HOME\MVID-LASTWEEK|2|102|0|1|777"

set that 1 to a 0 and it wont log it.
It will always run weekly everyday but not create it.
WarC is offline   Reply With Quote
Old 04-15-2006, 11:28 AM   #8
zOrP
Senior Member
 
Join Date: Jan 2005
Posts: 282
Default

thats not the problem..

I think he wants announce on both..

Announce for mp3 everyday, and for mvids every week.. :x
is that possible ?
zOrP is offline   Reply With Quote
Reply

Tags
day, newdate, newday, site, week

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 01:40 AM.

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