SekUserGalleries is a gallery manager designed for users to upload and manage personal galleries.
- MODx Revolution 2.2.0-pl2 or later
- PHP5 or later
- Current beta version of sekUserGalleries requires sekFancyBox, which can be downloaded via Package Management, or from the MODx Extras Repository here: http://modx.com/extras/package/sekfancybox.
- Current beta version of sekUserGalleries requires sekFormTools, which can be downloaded via Package Management, or from the MODx Extras Repository here: http://modx.com/extras/package/sekformtools.
- Current beta version of sekUserGalleries requires sekSiteTools, which can be downloaded via Package Management, or from the MODx Extras Repository here: http://modx.com/extras/package/seksitetools.
- Login is recommended to manage users and can be downloaded via Package Management, or from the MODx Extras Repository, here: http://modx.com/extras/package/login (Login may have its own prerequisites).
SekUserGalleries was written by Stephen Smith, and first released on Mar 19th, 2012.
SekUserGalleries is on GitHub: https://github.com/insomnix/sekUserGalleries, report any issues or feature requests here: https://github.com/insomnix/sekUserGalleries/issues.
The sekUserGalleries is called through several snippets using the below tags ?(currently all snippets should be called on separate pages):
- sekUserGalleries.browse.galleries - This will display all the galleries.
- sekUserGalleries.users.gallery.view - Display the selected galleries albums. If no gallery is specified in the url, and the user is logged in and has permission to have a gallery, this will default to that user's gallery page.
- sekUserGalleries.users.gallery.manage - This page will allow the user to change their user settings for the gallery, if they are logged in and have permission.
- sekUserGalleries.album.view - View the images within the selected album.
- sekUserGalleries.album.manage - Add, edit, and remove albums to the gallery, if the user is logged in and has permission.
- sekUserGalleries.album.items.manage - Add, edit, and remove the album items. Currently set up to upload images only.
- sekUserGalleries.album.items.helper - This helper snippet does all the work for the [[album.items.manage]] snippet.
- sekUserGalleries.image.information - Simple snippet that gives additional information about an image, like the date the picture was taken, camera used, etc.
- sekUserGalleries.search - Search the albums title, description, and keywords, and display.
- sekUserGalleries.directory - Display how much space the user is currently using on the server (This uses the 1024 based measurement, MiB, GiB, etc).
Ensure that the page resource id for each snippet is entered into the Settings (see below Available Settings) to ensure the pages work correctly.
|sekusergalleries.load_jquery|| This will enable or disable JQuery from being loaded when sekUserGalleries is called on a page. If JQuery is being loaded from another extra used on the same pages as sekUserGalleries, or it is loaded in a template, this setting should be set to No/False.
|sekusergalleries.browsegalleries_resource_id|| The id of the page using the [[browse.galleries]] snippet.
|sekusergalleries.usersgallery_resource_id||The id of the page using the [[users.gallery.view]] snippet.||>0.0.1|
|sekusergalleries.editgallery_resource_id||The id of the page using the [[users.gallery.manage]] snippet.||>0.0.1|
|sekusergalleries.album_view_resource_id||The id of the page using the [[album.view]] snippet.||>0.0.1|
|sekusergalleries.album_manage_resource_id||The id of the page using the [[album.manage]] snippet.||>0.0.1|
|sekusergalleries.items_manage_resource_id||The id of the page using the [[album.items.manage]] snippet.||>0.0.1|
|sekusergalleries.items_helper_resource_id||The id of the page using the [[album.items.helper]] snippet.||>0.0.1|
|sekusergalleries.album_search_resource_id||The id of the page using the [[search]] snippet.||>0.0.1|
|sekusergalleries.image_info_resource_id||The id of the page using the [[image.information]] snippet.||>0.0.1|
|sekusergalleries.directory_stats_resource_id||The id of the page using the [[directory]] snippet.||>0.0.1|
|sekusergalleries.gallerycover_thumb_max_width|| Set the maximum pixel width of the gallery cover thumbnail image.
|sekusergalleries.gallerycover_thumb_max_height||Set the maximum pixel height of the gallery cover thumbnail image.|| 150
|sekusergalleries.gallerycover_display_max_width||Set the maximum pixel width of the gallery cover display image.|| 300
|sekusergalleries.gallerycover_display_max_height||Set the maximum pixel height of the gallery cover display image.|| 300
|sekusergalleries.image_thumb_max_width||Set the maximum pixel width of the thumbnail image.|| 150
|sekusergalleries.image_thumb_max_height||Set the maximum pixel height of the thumbnail image.|| 150
|sekusergalleries.max_file_size|| Maximum upload file size in bytes.
|sekusergalleries.min_file_size|| Minimum file size in bytes.
|sekusergalleries.orient_image|| Auto orient image.
|sekusergalleries.discard_aborted_uploads|| Discard aborted uploads.
The group settings uses modx's user group's and role's to manage the permissions for using the gallery. By default, anyone can view the galleries, but only a user with matching user group and role defined in the Group Settings can create, edit, or delete images and albums. To learn more about how Modx manages user groups view the User Groups section.
| User Group
|| Select a single user group from the drop down to define the permissions for the user's gallery.
|User Role|| This uses the Modx User Groups to manage the permissions. Select a role from the drop down.
|| Integer to define the amount of space the user, with the defined user group and role, can use.
|| The unit of measure for the amount of space allocated for the user. (MiB,GiB, etc)
|| The level of enforcement. Soft will allow users to continue to add files after the maximum amount of space is reached. Hard will prevent further uploads if the amount of space allocated is reached.
|| Set to Yes, only the user who owns the gallery can access the images. If set to No, anyone can view the files in the gallery.
A list of mime types that can be uploaded. A list of mime types can be found at FeedForAll.
| Mime Types Accepted
|| The mime type accepted for upload.
| Resized File Ext
|| Change file ext to, ie tiff to jpg.
Example Mime Types Accepted.
|Mime Types Accepted|| Resized File Ext
|Name|| One word name for the image size group.
|Description|| A brief description of the image group.
|Max Width|| Maximum width of the image.
|Max Height||Maximum height of the image.||>0.0.1|
|Image Quality|| Resized image quality, the lower the number the smaller the file size.
|Watermark Image|| The image to use as a watermark.
|Watermark Brightness|| The brightness of the watermark.
|Watermark Text|| Text to use as a watermark. This field is ignored if watermark image is used.
|Watermark Text Color|| Color of the watermark text. Format is 0,0,0
|Watermark Font|| Watermark font style.
|Watermark Font Size|| Watermark font size.
|Watermark Location|| Location to place the watermark.
|Primary|| Set only one image to primary.