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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumRegistering a user programmaticallyRegistering a user programmatically
Previous
 
Next
New Post
4/27/2006 11:55 AM
 
I have a website built in asp.net 2.0, it is not built using DotNetNuke.  I'm linking to to my DotNetNuke site (a directory in my current site) just to use the Forum module.  My users register on my existing site and I don't want them to have to register twice just to use the forum.  In my existing site, I want to add code to automatically register my users on my DotNetNuke forum.  Does anyone know what tables I need to update or what stored procedures I can use in the DotNetNuke database to accomplish this?

Thanks
 
New Post
4/27/2006 5:22 PM
 

Wow, this depends on your dataprovider as well as your membership/profile/roles provider used for DotNetNuke. Although not impossible you certainly have some work ahead.

 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
4/27/2006 6:13 PM
 
If I can't figure out how to do it the right way, I guess I could do a POST in the background to the forum registration page. That's a miserably terrible solution though:)
 
New Post
4/28/2006 10:07 AM
 
Not that anyone else would want to do this, but, it might be useful to someone.  I solved this by just adding a blank webform in my DotNetNuke website.  I'm sure someone has already done this since its so simple but I couldn't find any posts about it.  This is about as simple, and insecure, as it gets, anyone else should add some sort of safeguards to keep someone from randomly generating accounts, but this will accomplish registering from another page.  So far this basic approach is working fine for me, but that doesn't mean I'm not ignoring something important, so use with caution:

In the webform's Page_Load event, call this sub:
Private Sub AddCrossSiteUser()
Try
            Dim UserCtl As New UserController
            Dim User As New UserInfo

            User = UserCtl.GetUserByUsername(0, "defaultUser")

            User.Profile.FirstName = Request.Form("FName")
            User.Profile.LastName = Request.Form("LName")
            User.Membership.Username = Request.Form("UserID")
            User.Membership.Password = Request.Form("Password")
            User.Membership.Approved = True
            User.Membership.Email = Request.Form("Email")

            User.UserID = UserCtl.AddUser(User)

            Response.Write(User.UserID)
        Catch ex As Exception
            Response.Write("-1")
        End Try
    End Sub
 
New Post
6/8/2006 11:08 AM
 

Hi G...

I am trying to do something opposite to what you are doing. I am using DNN site as the main site and calling my web App in a different folder.

I am wondering, how were you able to add a blank webform in the DNN App,  can you please guide me how to add a webform.

Thanks for the support,

Chandu

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumRegistering a user programmaticallyRegistering a user programmatically


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