Personal album filter

I am pleased to announce the release of my Personal album filter.

What this filter will do is to create an album for each user that registers so that each user has his own album to which he can upload. When a user submits the registration form, a new album will be created. This album is then assigned to the new user once verified. All of this is done automatically.

This plugin also comes with an option to disallow users from moving, copying, or renaming their personal albums. In this way administrators can easily keep track of the gallery and personal albums are actually personal.

filter-personal_album can be downloaded from http://www.archlinuxgallery.com/filter-personal_album.zip
«1

Comments

  • Congratulations! It is nice to see things like this showing up in the community.
  • Thanks :)

    Also I forgot to mention that this will only work with the development version (nightly builds and SVN after 1.2.6).
  • acrylian Administrator, Developer
    Great, I will add it to the plugins page. It would be great if you could setup a small plugin page for this so we can link to this in case you do future updates/improvements.
  • Ahh, I should've done that in the first place. I've added a page for the plugin (and will add a changelog if/when it needs updating): http://www.archlinuxgallery.com/index.php?p=pages&title=personal-album-filter

    Thanks again!
  • acrylian Administrator, Developer
    Also thanks, I will update the entry.

    EDIT: How come that your site is not accessible at all?

    EDIT2: Now it works again!
  • I've released an update that will (hopefully) make sure that the filters are triggered and makes personal album creation SEO friendly. The new version can be found on its plugin page.
  • (I originally posted this to the comments of the News page, but here's my situation...)

    I've tried to use this plugin and when I try to create a user I get the following:

    `Fatal error: Call to undefined function seoFriendlyURL() in /[path-to-zen]/plugins/filter-personal_album.php on line 84`

    I’ve looked at it and I’m not entirely sure why I’d be getting this error, please let me know what I can do to fix this. I’d love to try it out because it would help me out tremendously for a project that I am working on!

    Btw, does this make an album that is private and only visible to the user and the admins only?
  • acrylian Administrator, Developer
    Try enabling the plugin `filter-zenphoto_seo.php`
  • It is enabled.
  • zenphoto no longer uses that function (`seoFriendlyURL()`) if I'm not mistaken. I'll fix that as soon as I get out of class :)
  • Thanks! And do the created albums become private to just that user and the admins? And how would I go about doing that if not?
  • That should be fairly easy to do - by unpublishing an album, only users who are assigned to that album (and admins) can see it. I can add an option to automatically unpublish personal albums.
  • That would be a savior! :) I look forward to the fix!
  • I just uploaded the new version. You can find it from the plugin's page: http://www.archlinuxgallery.com/index.php?p=pages&title=personal-album-filter
  • Excellent! Works perfectly! I appreciate it, thanks!
  • Can a user, once they register and validate their email, upload pics? If not, can that be done?

    Also, I don't know what this is attributed to but when I tested it out with a new user to an email account of mine, I get a mostly-blank page with the following error:

    `Zenphoto Error: the requested object was not found.`
    `Page: PAGES:`
    `Return to Site`

    How do I fix this?
  • The new user's rights can be set via the `user_groups` plugin. To work with the filter, you will need to create a template with the rights you want. Then, under the options for the `register_user` plugin, you will need to set the default group to the template you just created.

    The link sent by registration is automatically generated by `register_user`. Why you're getting that error, though, I'm not sure.
  • I fixed the error somehow (can't remember what I did!).

    On to a problem though: say I have a client, and they register and validate themselves through their email link. What I want is for them to only see *their* album (i.e., client1album, *not* client2album) and upload only to their newly created album, what do the internal settings need to be?

    I created client1 and could see all the albums as soon as I logged in, despite unpublishing them. When they first log in, they should only see their album and be allowed to upload to it. How can I go about making that happen?
  • If the albums are unpublished, then your users must either have `Admin rights` or `Manage all albums rights`. If you want your user to upload, then simply give him `Upload rights`. You can automatically manage new user rights as I described above.
  • Will they only have the ability to see/upload to their albums? Is their an automatic way in the script to set a new user to only be allowed to both see and upload to their own album?

    What I did was sign up an account and saw all the albums, I don't want them to see all of the albums, only theirs.
  • All the user rights can be dictated through the above means. You can specify exactly which rights users are given upon registration. For more info on what each of these rights are (and determining which combination is best for your users), you can read here: http://www.zenphoto.org/2008/07/an-overview-of-zenphoto-users/
  • I want new registrants to be assigned no user group at all, I'd like the "user group" option to be completely blank when I review the user list. In my situation, they're being assigned to administrators when created.

    Also, I think it would be good to have this plugin take care of a few things for administrators. Basically it creates a personal album for a user, with the option to create it unpublished. Which is awesome. Shouldn't it automatically assign certain rights to a user upon creation though? For my purposes I'd want them to be assigned only "Album" and "Upload" rights. So basically, when they create an account, they can begin to immediately upload pictures to their album. And also, I don't have to worry that they'll have full access to the site's administration.
  • If you use a template as I said above, your users won't actually be a part of that group. Users can't be assigned to a template. Rather, when you use a template as I described above, it will simply give the user the template's rights and nothing more. This way, you can specify exactly which rights new users will have without giving them administrator rights. What you're describing is exactly what templates are for :)
  • Sorry, I see what you're saying, but how to you set what group/template new users are placed when they create their account?
  • The option is under the options for the `register_user` plugin.
  • It worked and is now how I need it. If only I had looked deeper and more attentively. Sorry for the hassle! I think it might be the stress of the project, lol. But thank you so much! I appreciate it!
  • Any time. :) Glad you got it working!
  • Just one last thing: is there a right I can check or uncheck that when they visit `[url]/zp-core/admin.php` they won't see the gallery stats? I just don't want them to know how many albums and images (and the Installation Information!) that the script is working with.
  • Users should only be able to see that page if they have `Overview rights`.
  • I have them set with only `Upload` and `Album` rights... Maybe there's an unknown issue?
Sign In or Register to comment.