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 ...User is not member rule solutionUser is not member rule solution
Previous
 
Next
New Post
11/4/2006 6:40 PM
 

 

I'm not sure why registered users gets in the way.  If you don't want registered users to see either module, then you don't have to assign it view/edit rights.

Also don't forget that you can automatically assign users to any number of roles when they register.  Just check the "Auto" checkbox in the role editor to accomplish this.

If just having users automatically in the registered users role is a problem, you could probably go into the DB and turn off auto-assignment of that role.  I'm not sure why the UI even blocks an administrator from turning off auto for that role.


DotNetNuke Modules from Snapsis.com
 
New Post
11/9/2006 3:54 PM
 

HI!

I am sitting with a similar situation.

  1. I want users to register to collect their details, where the registered role is assigned automatically
  2. I have one module which I only want registered users to see and another which only subscribers can see. So at no point can a user be part of both roles
  3. Registered users can then subscribe to a subscriber role but then needs to automatically unsubscribe from the registered role in order to allow only subscribers to see the one module.

Would this work perhaps, and if so how could this be acheived?

Thanks

 
New Post
11/10/2006 6:02 AM
 

I understand what you're suggesting, John. The only thing I cannot figure out in building such a solution is how to automatically remove the users from 'registered' users once they are added to the subscription role. any suggestions? Is my only option to write a sql query and schedule it?

 

 
New Post
11/11/2006 7:04 AM
 

Hi Jesper.

Well the answer to my own question is perhaps the solution we are both looking for.

The only way of doing this at the moment is to manually remove and add ther person to a role via the membership services on the individual level and role management on the administrators level.

It seems like i will have to write the code for automating the above. Its easy to do actually do the above i would suspect after looking at the tables where the userRole information is stored, my only question would be to is to know where there is an existing API to do this to avoid writing repetitive code?

Anybody out there that can perhaps point us in the right direction?

Many thanks

 
New Post
11/12/2006 5:55 PM
 

I don't think you need to worry too much about conforming with any code standards to achieve this. With the thoughts you're bringing in here I think we would be just fine to do some sort of 'update users set role1=false where role2=true' kinda thing and simply plug it into the scheduled jobs. I haven't had a look at the database structure yet, but I'm sure you're right that that is the way to go.

Do you want to have a go at it, or should I put some SQL code together? Maybe one of the core members would comment on that solution? Is it viable? We should probably be aware of any data structural changes made to the tables when updates are applied though.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...User is not member rule solutionUser is not member rule solution


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