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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Users across portalsUsers across portals
Previous
 
Next
New Post
3/16/2007 12:54 PM
 

I know there are a few people out ther who have products that allow users to use multiple portals - if any of them would like to tell me what I need to do to achieve that it would be great - here is my problem:

I have my users and they are created normally - after creation they are assigned to a company (this is a specific table in my database that I have built) - the company is given access to different portals depending on the products they have bought - however as you can imagine I want to enter and maintain user info in only one area and have it the same for all portals across the purchased products.

Where do I need to change things ?  I was looking at the different stored procs but not sure if that is really all i need to change

Can anybody tell me what places in code and which stored procs are going to 'care' about which portal the user belongs to etc. - that way I can make sure this will work as I need it to

TIA 


Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
New Post
3/16/2007 4:37 PM
 
I won't be able to help you on the stored procedures, because I havent' bothered to look that far.   The information I am providing depends on the version you are using.  Some of the older versions, such as 4.0.x this won't work with.  All the needs to be done with a user to add them to multiple portals is to add the user id and the portal you want them in to the UserPortal Table.  There is other information that you can add but that is all that is required.  I haven't checked to find out which stored procedure does this but it is easy to create a few lines of code that will take care of it for you without having to change the core stored procedures.  By doing this you will then need to assign roles to the portals you added the user to unless you have the same user roles across all portals, such as admin.  We needed to do this where I work and I produced a module with a small interface to do this for me but it is relatively quick and painless to build it. 
 
New Post
3/16/2007 4:42 PM
 

thanks that sounds encouraging - can you share your code - or describe what the module does ?

can send it to me email if you like dylan.barber@earthlink.net or share on IM msn use the email to find me

Thanks


Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
New Post
3/16/2007 5:25 PM
 

I can do both.  Sharing the code may take me a couple of days.  The code I wrote for it was a few projects back and I have to dig through my archives to find it but once I do i will be glad to share it with you.  What the module does is pretty basic.  For the situation I am in at work, it works perfectly.  We added the module to the user page.  When added the module supplies two buttons, "add a new user", and "modify an existing".   By clicking on add you get the very basic information to add, username, display name, first name, last name and email, if I remember correctly.  Then you get a checkbox list of all of you portals based on their portal name.  Enter the information on the user to register them and then select any of the portals that you want them added to.  Once you hit submit, it enters the new user, with no roles, on all of the portals you selected. 

If you hit modify an existing, you get a checkbox list of all of the portals, and the user information specified above, then you can select any portals you want to add the user to, or remove them from.  Hitting submit will update the portals to reflect the new assignments. 

I couldn't find an elegant role to add the user with permissions because each of the portals we have has unique user roles.  If you did want to add a user and your portals all have the same role, then you could modify this to add the role at the same time without too much effort.  I think you might be able to add a user to all your portals in the admin role at once too.  Once the user is added you just need to go to each portal login and set roles.  We usually have 15 or more but I don't usually need to add a user to more the 2 or 3 portals at a time so the permissions is a bit of a pain but not bad. 

The module if pretty basic, I didn't put much effort into making it look pretty but it wouldn't take much to do so.  We just needed a quick solution and the only people that use it are programmers and we didn't really care about looks.  It does have standard setting controls so you could allow other users to manipulate it if you put it on a different page but we just wanted 3 of us to have access and so we put it where only the 3 of us can get at it. 

I will try to find and get you the code in the next couple of days.  I will send it to you in a zip package.  I don't usually create the dll's so you will have the actual source and can change it at will.  One word of caution, it is written in C#. 

 
New Post
3/16/2007 5:35 PM
 

Actually that description gives me enough to go on - I think I can get it from that - feel free to send if you want but that should get me down the right track for now \

 

 

Thanks - ps feel free to grab me on IM I always like talking to other DNN developers


Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Users across portalsUsers across portals


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