rejetto forum
May 26, 2012, 12:56:17 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Filtering files to guests...  (Read 353 times)
0 Members and 1 Guest are viewing this topic.
Awesoft
Experienced poster
***
Offline Offline

Posts: 30


View Profile Email
« on: June 19, 2011, 09:36:02 PM »

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 19, 2011, 09:51:25 PM by Awesoft » Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #1 on: June 20, 2011, 03:13:49 AM »

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.}.}

 Wink
« Last Edit: June 20, 2011, 03:17:13 AM by Mars » Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #2 on: June 20, 2011, 09:22:04 AM »

did you try the "list protected items only for allowed users" ?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 20, 2012, 07:42:38 AM
anything