rejetto forum

Is there any way to filter the file by the comment?

funjay · 5 · 8749

0 Members and 1 Guest are viewing this topic.

Offline funjay

  • Occasional poster
  • *
    • Posts: 21
    • View Profile
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.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
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.}:}.}
« Last Edit: September 06, 2010, 10:40:34 AM by rejetto »


Offline funjay

  • Occasional poster
  • *
    • Posts: 21
    • View Profile
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"


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
there was an error, it was not [+file] but [file]
now i fixed the script.
re-try.