Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Online Role Updates
Previous Previous
 
Next Next
New Post 10/1/2008 9:58 AM
User is offline SupaHoopsa
95 posts
10th Ranked


Online Role Updates 

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).

 

 
New Post 10/1/2008 4:32 PM
User is offline Sebastian Leupold
16121 posts
www.deutschnetnuke.de
1st Ranked












Re: Online Role Updates 

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.


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group European Network of DotNetNuke Professionals

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 10/2/2008 1:37 AM
User is offline SupaHoopsa
95 posts
10th Ranked


Re: Online Role Updates 

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?

 
New Post 10/22/2008 8:03 AM
User is offline SupaHoopsa
95 posts
10th Ranked


Re: Online Role Updates 

Can anyone help with this?

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

 
New Post 10/22/2008 11:38 AM
User is offline Baatezu
216 posts
9th Ranked


Re: Online Role Updates 

 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 Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  Online 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.

 


Icthus Technologies
Building Faith on the Internet
www.icthustech.com
DotNetNuke Training by Engage Software
Specializing in customized training, architecture and module solutions for large scale implementations lead by DNN Core Team Member Christopher Hammond.
engagesoftware.com
Smart-Thinker
DNN Modules for Social Networks for as low as $69 for 6 modules! We also maintain the DotNetNuke Directory - http://DNNDir.com
www.smart-thinker.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP