Go Back   FlashFXP Forums > > > >

Harm's scripts ioBanana, Readd script, ioVote

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-13-2004, 11:31 PM   #1
darko
Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: May 2004
Posts: 74
Lightbulb %tagline cookie (want tagline announced on newdir etc)

oi. is there such a thing as %tagline for themes? i know it displays imdb tagline now but i want users tagline to be shown. if this isnt possible with that cookie, is there an other fix?

thnx
darko is offline   Reply With Quote
Old 12-14-2004, 05:58 AM   #2
jeza
Senior Member
ioFTPD Scripter
 
jeza's Avatar
 
Join Date: May 2003
Posts: 530
Default

Code:
putlog.itcl :

if { [string last "/" [lindex $args 2]] != [expr [string length [lindex $args 2]] - 1] } {
  putlog "BLA: \"$user\" \"$group\" $args"
}


ioFTPD.ini :

OnNewDir		= %TCL ..\scripts\newdir\putlog.itcl "%[$unfo]"

dZSbot.tcl :

set msgtypes(RACE)		"IMDB ALLOCINE NFOURL NFO NEWDATE WIPE NEWDIR BLA DELDIR ...

set disable(NEWDIR)			1
set disable(BLA)			0

set variables(NEWDIR)		"%pf %user %group"
set variables(BLA)		"%pf %user %group %tagline"

set announce(NEWDIR)		"\[%bold%section%bold\] %color07%boldnew%bold%color %bold%path/%release%bold by %bold%user%bold"
set announce(BLA)		"\[%bold%section%bold\] %color07%boldnew%bold%color %bold%path/%release%bold by %bold%user%bold (%uline%tagline%uline)"

proc readlog {}

replace

		if { ! [info exists disable($msgtype)] } {continue}
		if { $msgtype == "NEWDIR" || $msgtype == "DELDIR" } {
			set path [lindex $line 5]
			if { $msgtype == "DELDIR" } { set path [string trimright $path "/"] }
			set var1 "{$path} [lrange $line 3 4]"


-->>>


		if { ! [info exists disable($msgtype)] } {continue}
		if { $msgtype == "BLA" } {
		  set path [lindex $line 7]
		  set var1 "{$path} [lrange $line 3 5]"
		} elseif { $msgtype == "NEWDIR" || $msgtype == "DELDIR" } {
			set path [lindex $line 5]
			if { $msgtype == "DELDIR" } { set path [string trimright $path "/"] }
			set var1 "{$path} [lrange $line 3 4]"
its for dzsbot
for banana u will figure it out if not the same
jeza is offline   Reply With Quote
Old 12-14-2004, 11:22 AM   #3
iam
Senior Member
 
Join Date: Mar 2004
Posts: 289
Default

nice, it's work fine
but this function not working after:

## RANDOMIZING OUTPUT
#
# Example:
# set random(NEWDIR-0) "-%sitename- \[%section\] + %user@%group creates a directory called %release"
# set random(NEWDIR-1) "-%sitename- \[%section\] + %user@%group makes a directory called %release"
# set random(NEWDIR-2) "-%sitename- \[%section\] + %user@%group does mkdir %release"
# TYPE --------^ ^
# ID --------^
#
# set announce(NEWDIR) "random 3"
# TYPE ---------^ ^ ^
# RANDOM ----------^ ^
# # OF IDS ---------^
iam is offline   Reply With Quote
Old 12-14-2004, 11:26 AM   #4
jeza
Senior Member
ioFTPD Scripter
 
jeza's Avatar
 
Join Date: May 2003
Posts: 530
Default

with this NEWDIR anounce is disabled

with this u use BLA instead of NEWDIR because NEWDIR doesnt have %tagline cookie

so u have to make random(BLA-0) ... i gues
jeza is offline   Reply With Quote
Old 12-14-2004, 01:12 PM   #5
iam
Senior Member
 
Join Date: Mar 2004
Posts: 289
Default

k good I will test
iam is offline   Reply With Quote
Old 05-20-2006, 05:19 PM   #6
ioUSER
Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Jul 2004
Posts: 98
Default

he should have written if its working now or not... but its working for sure :P
ioUSER is offline   Reply With Quote
Reply

Tags
%tagline, cookie, fix, shown, tagline

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Long filenames mullbank General Discussion 2 11-12-2004 03:02 PM


All times are GMT -5. The time now is 10:38 AM.

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