creating a role

Jun 21, 2007 at 8:43 PM
After signing into web site as Administrator. I added a role (photo ) so members can post photo’s in a Album.
Then went in to manage users and check the role box ( photo ) selected member.
When the member signs in and clicks on Photo’s there is no add album.
When you create a role how do you get it to work?
Coordinator
Jun 21, 2007 at 10:06 PM
They are in the role photo, but the album isn't associated with the photo album. Follow the instructions on this post but replace "Blogger" with photo.
Jun 22, 2007 at 2:11 AM
Edited Jun 22, 2007 at 2:13 AM
When you create a role how do you get it to work?

So a member can they create their own album? Then will they only be able edit and remove their own??
Coordinator
Jun 22, 2007 at 3:30 AM
They can if you configure it correctly. Follow the instructions in the post listed above but put this in for the web.config section

<location path="photo/new.aspx">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
Jun 22, 2007 at 8:10 AM
Edited Jun 22, 2007 at 8:32 AM
I coped and pasted your post in the web.config and photo/contents.aspx

IsAdmin = User.IsInRole("Administrators")
If User.IsInRole("Blogger") = True Then
IsAdmin = True

<authorization>
<allow roles="Administrators"/>
<allow roles="Blogger"/>
<deny users="?"/>
</authorization>

now after member signs in and clicks on Photos it takes them to
http://localhost:XXXXX/New%20Folder/photo/contents.aspx?Albumid=31

They can edit or delete anyones album but not delete pictures or add new album?





Coordinator
Jun 22, 2007 at 4:16 PM
They can set it to a private album and then other people can't see it.
Jun 24, 2007 at 12:03 AM
Edited Jun 24, 2007 at 12:11 AM
z2bass
They can set it to a private album and then other people can't see it.
This does not solve my problem.

I am a new be to this code an having trouble under standing why put create a role option box for administrator to check in the /New%20Folder/admin/ManageUsers.aspx if it does not work?
Why do we have to thru all the other post you have gave me?

I would like members to be able to:
1. create new album
2. Up load pictures to it
3. Edit & delete their own post
Coordinator
Jun 24, 2007 at 2:19 AM
They can, but you have to configure it correctly. To do so, you will have to assign the roles to the specific task. The things I have outlined should work. If they don't want anyone else to see their photos, they can set the album to private.