HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...Online Role UpdatesOnline Role Updates
Previous
 
Next
New Post
10/1/2008 9: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 4: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   European Network of DotNetNuke Professionals

 
New Post
10/2/2008 1: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 8: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 11:38 AM
 

 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 DotNetNuk...Using DotNetNuk...Administration ...Administration ...Online Role UpdatesOnline Role Updates


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft .NET. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.