rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: funjay on September 03, 2010, 07:41:46 AM

Title: Is there any way to filter the file by the comment?
Post by: funjay on September 03, 2010, 07:41:46 AM
ex. the file with "ban" comment will be hided to some users
but some user with upload or delete can see it.
is it possible?
thanks.
Title: Re: Is there any way to filter the file by the comment?
Post by: rejetto on September 05, 2010, 04:47:28 PM
yes, it's possible.
i didn't test this, but you can try

right click on the root/home > properties > diff template

[file]
{.if|{.or|{.%item-comment% != ban.} | {.get|can upload.} | {.get|can delete.}/or.}
|{:{.$file|back=1.}:}.}
Title: Re: Is there any way to filter the file by the comment?
Post by: funjay on September 06, 2010, 04:04:15 AM
thanks for youre reply.
and i add the code into diff template
it does not work, and all the files are listed twice. but the folder is normal.
thanks.
and one user without upload and delete also see the files with comment "ban"
Title: Re: Is there any way to filter the file by the comment?
Post by: rejetto on September 06, 2010, 10:40:59 AM
there was an error, it was not [+file] but [file]
now i fixed the script.
re-try.
Title: Re: Is there any way to filter the file by the comment?
Post by: funjay on September 08, 2010, 01:02:28 AM
thank you very much, it works.
thanks.