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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Online Role UpdatesOnline Role Updates
Previous
 
Next
New Post
10/1/2008 11:58 AM
 

I want to create a scenario whereby a user can control which modules are displayed on their screen.

For each module I have created it's own role.

I have then created a new module that displays each role and allows the user to tick/untick the associated check box with each role.

When they click on save, I add any news roles and remove any redundant roles for that user.

 

However once I have done this, I wish to refresh the entire screen so that the changes are reflected immediately! - i.e. some new modules are displayed and others are no longer displayed depending on what the user has selected.

So my question is how do I do this screen refresh?

I know all my roles are updated correctly (by running the GetRolesByUser method).

 


Blue & White hooped blood runs through my veins!
 
New Post
10/1/2008 6:32 PM
 

AFAIK you cannot change role assignment on the fly, since roles are stored in a cookie. I suggest to use a different solution for your problem, e.g. individual user permissions instead of role permissions.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/2/2008 3:37 AM
 

If I use my module to change the roles and then click on my profile and then maybe manage services. If I then go back to my home page, the changes have been applied.

So therefore I can only assume that there must be a way of doing this????

I guess I will have to look at all the code behind "manage profile" to see what is happening there.

 

Can you possibly expand a little on your suggestion of using individual user permissions rather than role permissions?


Blue & White hooped blood runs through my veins!
 
New Post
10/22/2008 10:03 AM
 

Can anyone help with this?

There MUST be a way of dynamically changing user roles at runtime without the user having to logout????????


Blue & White hooped blood runs through my veins!
 
New Post
10/22/2008 1:38 PM
 

 I, personally, think you are going about this the wrong way by creating a role for each module. That sounds like much more work than it needs to be.

I'm making the assumption that your goal is to allow users to select what modules to display and what ones to not display.

This, to me, sounds like a good use of the collapse function of containers, the little + on the upper right; BUT I do understand kinda 'blocking' the module from loading, ect.

This is me quickly brainstroming (basically as I write) but I think I would add an option for each module you want them to have enable/disable access to with the options (Show, Hide, Remove). Show will show the module, Hide will hide everything in the module except the options, remove will hide everything including the options.

Store their selection in a cookie and on the modules Page_Load have it check for the cookie and act appropriately. This way you don't have to deal with roles, the module won't take up much processing so it won't slow the page noticibly. If you wrap everything (except the options) in a panel and set the visibility to false to hide the module, none of that module HTML will be sent to the user, ect.

I would suggest creating the cookies using some form of TabID and using ModuleID for the modules in the cookie. This way you could make a seperate module to place on the page that will check for TabID cookie and have the options for the modules there as well, or instead. Since you want to give your users a way to return Removed items without deleting all their cookies.

Additionally, you might want to check into using the database to store these options so they persist across computers. Same principle, but stored serverside instead of client side.

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Online Role UpdatesOnline Role Updates


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