I just moved over from a paid Forum to this because of lack of support/documentation. After reading a few posts I was able to integrate YAF with my site in less than 2-3 hours. Thanks..I still have one small issue I need resolved.
Heres what I am doing...
1. I have a up and running ASP.Net 2.0 web application.
2. I create the YAF as a subfolder and copied all the config and database settings correctly.
3. I want to be able to log a user in automatically from the ASP.net site to YAF.
4. I was able to do this with a user who I registered manually.
5. How do I register a user using Code who is not in the YAF database?
I am pretty sure there is a method out there which I am missing.
heres my code for others to review:
Dim user As BusinessLogicLayer.UserBO = GetLoggedInUser()
Dim sPassword As String = user.Password
Dim userName As String = user.Username
Dim userID As Object = yaf.DB.user_login(1, userName, sPassword)
Dim idName As String = String.Format("{0};{1};{2}", userID, 1, userName)
If Not userID Is DBNull.Value Then
If (Request.QueryString("ReturnUrl"

<> Nothing) Then
FormsAuthentication.RedirectFromLoginPage(idName, True)
Else
FormsAuthentication.SetAuthCookie(idName, True)
'yaf.Forum.
Response.Write("authen"

Response.Redirect("../DiscussionForum/Default.aspx"

End If
Else
End If
What method do I call to register a user who doesnt have an account in YAF?
thanks a million for a wonderful app..
Sid