Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryA new security roleA new security role
Previous
 
Next
New Post
12/25/2005 2:19 PM
 

This is undoubtly the best gallery module available for DNN that I have found and I would really like to say Great job guys!

Right now though it is either public or private with no wiggle room in between. I would very definitely like to use this on as a private album on a private family site and I don't want end users editing/deleting other users albums. It's already very, very close to exactly what I need. In my world, I want any authenticated user to be able to add an album from the root folder. Only the owner of that album can add more albums to his/her existing album and access maintenance for his/her existing albums but anyone can add an image to any album while only the image owner or the ower of the album should be able to edit that particular image

A Private gallery does not work because it is limited to a specific user. So, I have toyed with the menus that get added using a method I added in Authorization as:

Public Function HasMaintenancePermission(ByVal DataItem As Object) As Boolean
  If HasAdminPermission() OrElse IsGalleryOwner() OrElse CType(DataItem, IGalleryObjectInfo).OwnerID = LoggedOnUserID Then
     Return True
  End If
  Return False
End Function

Public Function HasItemMaintenancePermission(ByVal DataItem As Object) As Boolean
  If HasAdminPermission() OrElse IsGalleryOwner() OrElse CType(DataItem, IGalleryObjectInfo).OwnerID = LoggedOnUserID Then
     Return True
  End If
  Return False
End Function

So these methods control what options get added perfectly when I am on the root project however when I get to a sub album I am not getting an edit on the image for the owner which I want. I have it in both menus but obviously I am not testing the image object correctly in the HasItemMaintenancePermissions? Any thoughts here?

But the killer for me to roll this out is, after an album is added, the maintenance screen is shown and the user has full permissions to delete or edit anything. I need to stop this but just can't find where or how it is called. Can anyone point me in the right direction on how to stop the maintenance listview after the add of an album? This would work just fine for me if I can control this.

It would work even better for me if this type of granularity could be rolled into the standard product so I would not have to modify the code everytime a new version is rolled out ..~grin~...

Thanks in advance for any help.

 

 

 
New Post
12/26/2005 10:35 PM
 

OK. So the lead guy is not here today? Actually, I got my menus working perfectly with a few additional tweaks. And I changed the redirect after the add of a new album but I would much prefer to redirect to the newly added album. This is what I am doing now. Any help on how I can get to the new album instead?

 

           mGalleryAlbum.CreateChild(txtName.Text, txtTitle.Text, txtDescription.Text, txtAuthor.Text, txtClient.Text, txtLocation.Text, GetCategories(lstCategories), mUserID, approvedDate)
                ''tmc:12/16/2005                Response.Redirect(GetURL(Page.Request.ServerVariables("URL"), Page, "", "action="))
                Dim url As String
                Dim parentPath As String = ""
                parentPath = FriendlyURLEncode(mGalleryAlbum.GalleryHierarchy)
                Dim params As String() = New String(1) {"path=" & parentPath, "currentstrip=" & mCurrentStrip.ToString}
                url = NavigateURL(TabId, "", params)
                Response.Redirect(url)

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryA new security roleA new security role


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out