Filesets

Permalink
Ok, registered users will be able to upload their own images via the Front End Upload Manager. Now, when the user logs into their account, they should be able to see only the images that they have uploaded, though, the images that they upload will go to a general page with everybody's images being shown. Is there a way to automatically create a fileset for each new user? And then add that fileset name to their own members page? Or is there an easier way to have this task done? I have searched C5 and cannot seem to find any add-ons for this type of situation? Thoughts?

Karen

 
JohntheFish replied on at Permalink Reply
JohntheFish
Is your posting about the concrete5 filemanager or is it about my addon Front End File Uploader? (I don't have you on the list of purchasers)
http://www.concrete5.org/marketplace/addons/front-end-file-uploader...

If it is about my addon, perhaps you could open a support request and provide a little more detail in the support request. If not, perhaps you could proivide a little more detail about your problem here.
utookmyusername replied on at Permalink Reply
It's not really about your add-on, and it was purchased through another username. My question is more about C5 and it automatically creating file sets, I guess, for the members pages. My client just wants the ability for the registered user to see what images they have uploaded when they are logged into their account and then being able to see everyone's images on one general page. I have created the file set name for the general page, but, not sure on how to proceed with creating file sets for each registered user so they can see what they have uploaded? I'm not sure...
JohntheFish replied on at Permalink Reply
JohntheFish
I don't think there is a way to do that without writing code.

There are 2 sides to it:
1. Creating a file set per user.
2. Selecting a user's file set to display.

An approach I have used in the past is based on the 'List Files from Set' addon. I have posted a template to view that as a thuumbnail gallery on the addon's own forum pages.

Not posted, but an easy change to make to the code, is to modify the controller to append a user ID to the fileset handle, consequently splitting it into a different fileset for each user, with a similar hack to the controller for the uploader that solves your profile page issue.

For your general page, if the hack to the uploader were to allocate files to 2 sets: the general set and the user specific set, then you would also have a fileset for the "everyone's pictures" display.

However, doing such hacked changes for multiple addons was getting a bit tiresome and was not a good solution. I tried to get other developers interested in a convention for using attributes to do this, but attracted no interest.

So for a better solution that would not involve changing block controllers, I made a change to the c5 core for c5.6. Now I can make a general purpose addon to do this sort of thing for any block without modifying the block itself. That addon is a work in progress.
utookmyusername replied on at Permalink Reply
Hey - ok, I have added the List From File Set add-on, but, it doesn't do what I want it to. I think that this may be more trouble than what it is worth. There has got to be something that will automatically create a new file set for a new user, and then display only the images that they have uploaded when they log into their account. That's just craziness! It seems to me that that would be a pretty popular add-on? I sure do appreciate your help on this! I am not going to start messing around with the core stuff, that's for sure...
JohntheFish replied on at Permalink Reply
JohntheFish
List files from set doesn't do what you want.

I noted it above as a good free starting point from which you can develop code to do the display side of what you want. You could also use the simple fancybox gallery as a starting point for the display.

You will need to develop/modify some code to achieve what you want.