rejetto forum

Filtering files to guests...

0 Members and 1 Guest are viewing this topic.

Offline Awesoft

  • Occasional poster
  • *
    • Posts: 34
    • View Profile
I'd like to know how to filter some files to the guests... and make them only visible for my account list.
For example, hide the files named "private.exe" to the guests... or hide the files with extension ".exe".. or hide the folders called "private".

Thank you in advance.
« Last Edit: June 20, 2011, 02:51:25 AM by Awesoft »


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2068
    • View Profile
to do that , it's not necessary to define a filter for files

You will just have simply to add the following lines to hide exe files for guests:.

[file.exe]
{.if|%user%|{.section|file.}.}

 Or in the template for the whole directory of VFS.
 Or in the vfs as diff template for the concerned directory and his sub-folders.
 Or in a hfs.diff.tpl file on the hard disk in the concerned folder.

If you want to push farther the reflection and unhide exe file only for some users:
Create a group of users named "can see exe", associate this group to the persons authorized to see exe files, and put these lines in the template on the place of others than I supplied higher


[file.exe]
{.if|{.member of|can see exe.}|{.section|file.}.}

 ;)
« Last Edit: June 20, 2011, 08:17:13 AM by Mars »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
did you try the "list protected items only for allowed users" ?