[ZendTo] Re: Library of files on a 'per user' basis
Jules
Jules at Zend.To
Fri Jan 27 10:09:38 GMT 2012
On 26/01/2012 17:30, Marlon R Deerr wrote:
> Sounds good. Got a couple questions:
>
> 1. Must we then manually create these library subfolders for each user
> we wish to have access to their own library?
Yes, unless you trust them all enough that you can give them write
access to the top-level library directory.
> 2. What happens if there are files in the top directory as well as a
> user's specific library directory. Will that user see all sets of files?
No, the user-specific dir will over-ride the contents of the top dir.
Otherwise you can end up with 2 different files in different places
having the same name, at which point the user cannot tell which one to
pick. I ain't opening that can of worms. :-)
> 3. I obviously want to keep my existing preferences.php file. Is there
> any new options in the updated version that I need to incorporate in my
> existing preferences.php file?
Copy your old one, install the new one, diff from your old one to the
new one and incorporate your changes into the new one. (Or else do it
the other way round and copy the new settings into your old one). To get
the library to work you need
// If you want to be able to optionally send files from a "library"
// directory of frequently used files, set this to TRUE.
// This will enable a user to either upload a file or pick one from
// the library. The description used with the libary file will be
whatever
// the last user set it to for that library file.
'usingLibrary' => FALSE,
// This is the location of the library directory referred to above.
// You might want to set up a WebDAV directory in your Apache web
// server configuration, so that administrators can easily manage the
// files in the library. Default points to /var/zendto/library.
// The library should contain the files you want users to see in the
// "new dropoff" form.
// If you create subdirectories in here named the same as a username,
// that user will see just the files in their subdirectory instead;
// over-riding the files in the libraryDirectory itself.
// If there are no files present, the library drop-down will not be
// shown in the web user interface.
// So by leaving libraryDirectory itself empty, but putting files in a
// user's subdirectory, you can create a setup where only that user will
// see any sign of there being a library.
'libraryDirectory' => NSSDROPBOX_DATA_DIR."library",
and then change "usingLibrary" to TRUE.
Jules.
>
>
> Thanks,
> Marlon
>
> -----Original Message-----
> From: zendto-bounces at zend.to [mailto:zendto-bounces at zend.to] On Behalf
> Of Jules
> Sent: January-26-12 10:34 AM
> To: ZendTo Users
> Subject: [ZendTo] Re: Library of files on a 'per user' basis
>
> I've added per-user libraries. See the beta section of the downloads
> page to get it!
>
> What happens now is this:
> If there is a sub-directory of the library directory named the same as
> the logged-in username, that directory is used. If not, then the
> top-level library directory is used.
> I then gather a list of all the files in that directory.
> If there are no files in that directory, the drop-down list is not shown
> in the user interface at all.
> If there are files, those are presented as a drop-down list.
>
> The results are:
> 1. You have a "default" set of files in the top dir.
> 2. You can have a few users who have empty subdirectories and so never
> see that the "library" functionality exists at all.
> 3. You can have an empty "default" top dir, but subdirectories for a few
> users. Then most of your users will never see the "library"
> functionality exists, and only those few users who do have a
> subdirectory will see it.
>
> Use case for my site: we have 1 guy in our central IT service whose job
> it is to send software media out to people all over campus.
> He used to have to write CDs and DVDs and put them in the post!
> Now he sends them as ISO images using ZendTo.
> He is fed up of uploading the same files to different users over and
> over again, so wants to use the "library".
> I leave the top-level library directory empty, apart from just a
> subdirectory for him.
> *Only he* ever sees that the library exists at all, so all the other
> users of the service on campus don't get confused by a thing they
> can't/don't use anyway.
> Result ==> Happy users, and happy guy in IT service !
>
> I've released this as a beta. I've just put the DEB and the RPM on the
> web site, you'll have to upgrade by downloading the relevant file and
> then CentOS / RedHat / Fedora
> rpm -Uvh zendto-4.09-1.noarch.rpm
> Ubuntu / Debian
> sudo dpkg --install zendto_4.09-1.deb And beware you don't hose
> your /opt/zendto/config files by mistake!
>
> If you don't have a recent version, and you use MySQL, you will need to
> run the 2nd "mysql" command given in /opt/zendto/sql/README.MySQL to add
> the necessary tables that the "library" uses.
>
> Jules
>
> --
> Julian Field MEng CITP CEng
> www.Zend.To
>
> Follow me at twitter.com/JulesFM
> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
>
> 'It's okay to live without all the answers' - Charlie Eppes, 2011 'All
> programs have a desire to be useful' - Tron, 1982 'That is the land of
> lost content,
> I see it shining plain,
> The happy highways where I went,
> And cannot come again.' - A.E. Houseman
>
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
>
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
Jules
--
Julian Field MEng CITP CEng
www.Zend.To
Follow me at twitter.com/JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
'It's okay to live without all the answers' - Charlie Eppes, 2011
'All programs have a desire to be useful' - Tron, 1982
'That is the land of lost content,
I see it shining plain,
The happy highways where I went,
And cannot come again.' - A.E. Houseman
More information about the ZendTo
mailing list