PDA

View Full Version : How new day and new week in same site?


fL4sh.r0x
11-24-2005, 07:08 PM
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

Harm
11-24-2005, 07:20 PM
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.

fL4sh.r0x
11-24-2005, 09:03 PM
Harm, how to make the difference and choose when to send the announce by sitebot?
Make me an ex.

WarC
11-25-2005, 11:42 AM
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 :)

Harm
11-25-2005, 03:25 PM
domy_3: I'm going to use regular expressions or something similar for this matter.

fL4sh.r0x
11-26-2005, 01:34 AM
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?

WarC
11-26-2005, 04:14 AM
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.

zOrP
04-15-2006, 11:28 AM
thats not the problem..

I think he wants announce on both..

Announce for mp3 everyday, and for mvids every week.. :x
is that possible ?