Xen Media Gallery (Media Gallery for XenForo) [Paid] [Deleted]

Status
Not open for further replies.
Category view permissions are implemented in the next 2.0 release:

upload_2014-1-17_15-58-29.webp

The work for category view permissions was already in mind. But it was going to be waiting for some other changes I had in mind for a future major release.

However, I appreciate the importance of this function for many.

There is only one draw back:

I would have liked for category permissions to recurse automatically into child categories, but it will take quite a lot of time to do that.

Therefore, as the option description states, you have to explicitly define the permissions for each category. If you have a large list of nested categories that you require to have restrictive view permissions, it would certainly take a bit of effort to get done completely. But at least it should be the kind of thing you only have to do once.

And in the future, it shouldn't be a major issue because it will be redesigned to use a more powerful category system.
 
Hundreds of categories for dozens of usergroups would indeed be a lot of work to set.
I imagine that the default will be for all user groups, so probably no work to many who use the categories as they currently work ie visible to all. For anyone else then yes, there will be some work to do. Chris has said that this will be improved in the future but at least for now he's given us something to use here rather than nothing at all. :)
 
This is what happens if the user was long deleted and you attempt to delete the user album that was imported from [xfr] User Albums. Interesting to note that the album is also empty

Capture.webp
 
This is what happens if the user was long deleted and you attempt to delete the user album that was imported from [xfr] User Albums. Interesting to note that the album is also empty

View attachment 65124
To correct and clarify something... The album being empty is irrelevant. There is another album which the user was deleted and the photos within remain. Deleting it is also impossible.
 
Not sure what you mean by "gallery sidebar"?

This?

upload_2014-1-19_16-6-46.webp

You have the flexibility to add a block anywhere you like on the site. The following code applies to XenPorta or Widget Framework or indeed any template via template modification or template edit:

http://xenmediagallery.com/threads/editing-the-preview-images-on-forum-home.669/#post-3674

HTML:
    <xen:include template="xengallery_media_block">
        <xen:set var="$blockPhrase">Name of block</xen:set>
        <xen:set var="$blockId">SomeUniqueID</xen:set>
        <xen:set var="$type">new</xen:set> // You can set this to be "rand" for a random selection.
        <xen:set var="$maxSlides">20</xen:set> // Any number. Number of images to be loaded (not all are visible).
        <xen:set var="$categories">1,2,3,4,5</xen:set> // Comma separated list of categories
        <xen:set var="$isSidebarBlock">true</xen:set> // Sets the styling so it will look like a sidebar block
        <xen:set var="$slideWidth">200</xen:set> // Sets the width of the slides
        <xen:set var="$captions">false</xen:set> // Whether media title appears on hover or not.
    </xen:include>

This gives you the true flexibility to put the media you want to show anywhere on your site.
 
Not sure what you mean by "gallery sidebar"?

This?

View attachment 65154

You have the flexibility to add a block anywhere you like on the site. The following code applies to XenPorta or Widget Framework or indeed any template via template modification or template edit:

http://xenmediagallery.com/threads/editing-the-preview-images-on-forum-home.669/#post-3674

HTML:
    <xen:include template="xengallery_media_block">
        <xen:set var="$blockPhrase">Name of block</xen:set>
        <xen:set var="$blockId">SomeUniqueID</xen:set>
        <xen:set var="$type">new</xen:set> // You can set this to be "rand" for a random selection.
        <xen:set var="$maxSlides">20</xen:set> // Any number. Number of images to be loaded (not all are visible).
        <xen:set var="$categories">1,2,3,4,5</xen:set> // Comma separated list of categories
        <xen:set var="$isSidebarBlock">true</xen:set> // Sets the styling so it will look like a sidebar block
        <xen:set var="$slideWidth">200</xen:set> // Sets the width of the slides
        <xen:set var="$captions">false</xen:set> // Whether media title appears on hover or not.
    </xen:include>

This gives you the true flexibility to put the media you want to show anywhere on your site.
No dice. Tried using this on [bd] Widget Framework
 
No dice. Tried using this on [bd] Widget Framework

It works for other people.

Could you let me know the exact settings you have used, and the exact template code for the widget?

In addition to my code, actually, you may need to add:

<xen:set var="$albums">1</xen:set>

For it to show media from albums. And of course the comma separated list of categories would need to exist in your installation.
 
Last edited:
To correct and clarify something... The album being empty is irrelevant. There is another album which the user was deleted and the photos within remain. Deleting it is also impossible.
Thanks for reporting this.

In the next release it will be possible to delete these albums which belong to users that have been deleted.
 
It works for other people.

Could you let me know the exact settings you have used, and the exact template code for the widget?

In addition to my code, actually, you may need to add:

<xen:set var="$albums">1</xen:set>

For it to show media from albums. And of course the comma separated list of categories would need to exist in your installation.
Not sure if you're referring to me here?

I've got the $albums variable and that works fine. $categories works for a comma separated list, it just doesn't work with "all".

I'm on RC2, which I've only installed once. Maybe you've updated RC2 since then?
 
Chris Deeming updated Xen Media Gallery (User Albums, Photos, Videos, Importers) with a new update entry:

Stable release of Xen Media Gallery 2.0

Xen Media Gallery 2.0 has been released.

For the benefit of those who have not yet had a chance to look at Xen Media Gallery 2.0, here's the final change log:
  • XenForo 1.2+ compatible only
  • Category view permissions
  • Ability for a user to create albums
    • Privacy settings:
      • Private (default)
      • Shared
      • People You Follow
      • Members Only
      • Public
      • Usergroup permission that can override all of the above (all media, all albums fully visible)
    • Albums can be liked/rated/integrated with alerts system (alerts when an album is shared with you, etc.)
    • Currently, only the album owner can add/remove media from albums. The album owner cannot currently be changed.
    • Permissions to control:
      • Whether or not an album can be shared (or will always remain private)
      • Basic create/update/edit/delete
      • What type of media can be added to albums, image uploads, video embeds.
    • Award trophies, show notices, user promotions etc. based on album count and media count.
  • Completely redesigned Admin CP interface
    • All Gallery related options available in the Xen Media Gallery section of the Applications navigation menu. Quick access to:
      • Categories
      • Permissions
      • Options
      • Rebuilds
    • All new tabbed layout for options pages.
  • New Custom Fields system.
    • Previous "Caption" feature migrated to a default "Caption" custom field.
    • Custom fields can be a rich text editor, multiple choice, text fields etc. (Just like user fields and resource fields).
    • Custom field values can be displayed in a number of locations:
      • Below Media
      • Below Information (tab and sidebar)
      • Extra Information tab
      • An entirely new tab
    • Individual fields can be enabled for media in specified categories and can be toggled on/off for use in media contained in albums.
    • All usual custom field features.
  • Member tagging system for images
    • Permissions to create member tags and view existing member tags.
    • Activate tagging, click and drag over the images to draw around a face. Type the name of a member.
    • The tagged member gets an alert if they have permission to view the media (the alert is suppressed if not).
    • Responsive!
  • Content tagging for media
    • Type keywords to tag media.
    • Auto complete suggests existing tags as you type.
    • A new block is available for gallery sidebar and forum home sidebar. This is a configurable tag cloud showing the most popular tags. More on blocks later...
    • Existing tags for the media are in the "Information" tab in the media (next to the comments tab).
    • Existing tags and tags from the tag cloud link to a page of media items tagged with the selected tag.
  • New toolbar on media pages
  • New appearance for media indexes
    • New design for media container
    • Much more responsive
    • Use of high quality icons in place of text labels for a cleaner look.
  • New design for media pages.
    • Some markup and styling improvements
    • Fully responsive videos
    • Tabbed layout below the media for easy access to comments, custom tabs and information
  • Watermark images (Requires ImageMagick PECL Extension)
    • Upload a watermark in Admin CP options
    • Specify size, position, margin of watermark image
    • Globally disable watermarking
    • Permission controlled watermarking
      • Allow users to bypass the watermark creation
      • Allow users to remove watermarks from their own media or any media
      • Allow users to add watermarks to their media or any media
  • Number of new media features:
    • Launch lightbox on the media page, allows you to easily navigate through images and videos in the same category or album.
    • Use image as an avatar
    • Add / Remove Watermark
    • Crop image
    • Tag members in image
    • Flip an image
    • Rotate an image
  • Brand new quota system
    • General upload quotas
      • Total allowed storage per user in MB
    • Image upload quotas
      • Maximum image dimensions (images above this size are resized)
      • Maximum file size per image
      • Maximum items per upload
  • The newest thing here is the "Total allowed storage per user" setting. This allows you to restrict each user to a specific amount of storage each.
  • All of the above are global by default. If they are globally switched off in the options, they become permission based. You can control all of the above on a per user or per user group basis.
  • You can now specify a width and a height for thumbnails. Due to the improved responsive design of the gallery, this is no longer a fixed width/height like it was previously. But the aspect ratio as defined by the height and width is maintained as the browser window resizes. Ultimately, this allows much more flexibility in the shape of the thumbnails. Meaning if you wanted square, landscape or even portrait thumbs, that is now possible.
  • On the subject of thumbs, there have been great improvements with regards to embedded media. Previously the embedded media was loaded in the thumbnail. Now, a thumbnail image is generated as the media is embedded. This can be done in one of two ways:
    • PHP Callback
      • These are quite simple to create with basic PHP skills
      • Usually involve fetching the thumbnail from within the embedded media's URL...
      • ...or communicating with the service's API to get the image URL.
    • URL template
      • If the service has thumbnails which have a predictable URL, e.g. fake example http://img.youtube.com/{id}.jpg, then this can be used in place of a PHP call back.
    • The default embed sites have all been configured to fetch thumbnails using a PHP callback. If you do not specify a URL or PHP callback for other media sites, then no thumbnail is generated.
  • The length of the media title and media description is customisable in options.
  • The title and description can be automatically generated for both images and videos.
  • There is a new permission that controls the maximum amount of time a user is allowed to edit their media.
  • Inline moderation is now available on all media items for moderation purposes. Cut down functionality is available to users too from their own media page, enabling users to perform inline moderation actions on their own media.
  • A count of the number of unviewed media shows above the Media navigation tab. This count is updated periodically (based on cache time defined in the options).
  • The navigation tab action cab be altered:
    • Media home
    • Album home
    • New Media page
  • EXIF information is collected from compatible devices during upload and stored and displayed in the Information tab on the media page.
  • If available, EXIF information is used to automatically rotate and flip an image.
  • Most blocks such as Statistics, New/Random media, Tag cloud etc. can be used with Xen Porta and Widget Framework
    • XenPorta
      • A Raw HTML block is included in XenPorta. You can populate that with the relevant template code to make it appear wherever you want.
    • WidgetFramework
      • Widget Framework includes an "Advanced template renderer". Again, this can be used to call the relevant template code to make that appear wherever you like in the widget framework.
  • Redesigned Add Media page that allows you to choose a category, choose an album, create an album, upload an image or embed a video in one step without reloading the page.
  • You can upload images by URL.
  • Album comments
  • Reply link on comments (automatically populates @ Username)
  • Importers for:
    • XFR User Albums
    • Xen Medio Free and Xen Medio Pro
    • sonnb Xen Gallery

Read the rest of this update entry...
 
Last edited:
Installation and setup:
  • Installation should be typically straight forward:
    • Download the ZIP file
    • Upload the files from the "upload" directory to the root of your XenForo installation
    • Once you do this, access to the gallery will be disabled until the upgrade is complete
    • Log on to your Admin CP, select Xen Media Gallery and browse for the XML file that was in the ZIP file and click Upgrade
  • After install, check for outdated templates. You will almost definitely need to revert any outdated templates.
  • Configure the add-on options in Admin CP > Applications > Gallery Options
  • Configure the new add-on permissions in Admin CP > Applications > Gallery Permissions
  • Run the following rebuilds in Admin CP > Applications > Gallery Rebuilds:
    • Rebuild Xen Media Gallery Thumbnails
    • Rebuild Xen Media Gallery User Media Counts
    • Rebuild Xen Media Gallery Category Media Count
    • Rebuild Xen Media Gallery User Media Quotas
    • Rebuild EXIF Data
  • Explore the new features such as custom fields, albums, importers, new design.
 
I have a small issue with creating/editing categories. I used the "[xfr] User Albums => Xen Media Gallery" importer, rebuilt indexes, and all went well. However whenever I try to create or edit a category from the admin panel (xengallery/categories), I get the following error:

Mysqli prepare error: Unknown column 'view_user_groups' in 'field list'
Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 632
Zend_Db_Adapter_Abstract->update() in XenForo/DataWriter.php at line 1628
XenForo_DataWriter->_update() in XenForo/DataWriter.php at line 1597
XenForo_DataWriter->_save() in XenForo/DataWriter.php at line 1393
XenForo_DataWriter->save() in XenGallery/ControllerAdmin/Media.php at line 249
XenGallery_ControllerAdmin_Media->actionCategorySave() in XenForo/FrontController.php at line 347
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /****/admin.php at line 13
 
Ok, I'm finally getting in the game with this bad boy. LOTS of options to sort through but I did have a question I can't quite put my finger on: Is there a way to have the gallery auto-add, or somehow ask if a user wants to add the media they're uploading to the standard forum to their individual media gallery? So that it wouldn't have to be uploaded a second time.
 
I have a small issue with creating/editing categories. I used the "[xfr] User Albums => Xen Media Gallery" importer, rebuilt indexes, and all went well. However whenever I try to create or edit a category from the admin panel (xengallery/categories), I get the following error:
Could you re-download the 2.0 files from the website and do an upgrade.

I have added in a last minute change to fix this bug and by default set categories from this importer to be imported as visible to all usergroups. It may be that categories imported from [xfr] User Albums are not imported as visible to all so you may have to go through these categories and do that.
 
Ok, I'm finally getting in the game with this bad boy. LOTS of options to sort through but I did have a question I can't quite put my finger on: Is there a way to have the gallery auto-add, or somehow ask if a user wants to add the media they're uploading to the standard forum to their individual media gallery? So that it wouldn't have to be uploaded a second time.
Bryan is right, but there has been a similar suggestion made in the past.

Here it is: http://xenmediagallery.com/threads/...button-insert-from-forum-post-to-gallery.301/
 
Status
Not open for further replies.
Back
Top Bottom