|
|
 Rank: YAF Camper

Joined: 4/20/2006 Posts: 10 Location: Switzerland
|
Thanks for your help vavkin. I was realy happy to see that someone was trying to help me out. I changed the code like you said on edituser.ascx.cs and Security.cs like you said to. I uploaded the modyfied files and unfortunately I am still having the same problems. Thanks in advance for any more help.
|
|
|
 Rank: YAF Forumling
Joined: 3/31/2006 Posts: 1
|
Maybe try (in Security.cs): Code: public static void UpdateForumUser(int nBoardID, MembershipUser user) { //DB.user_setinfo(nBoardID, user); int nUserID = DB.user_aspnet(nBoardID, user.UserName, user.Email, user.ProviderUserKey); DB.user_setrole(nBoardID, user.ProviderUserKey, DBNull.Value); if ((user.UserName != null) && (user.UserName != "Guest") && (Roles.GetRolesForUser(user.UserName).Length == 0)) { DB.user_setrole(nBoardID, user.ProviderUserKey, "Registered Forum Users"); } else { foreach (string role in Roles.GetRolesForUser(user.UserName)) DB.user_setrole(nBoardID, user.ProviderUserKey, role); } }
|
|
|
 Rank: YAF Camper

Joined: 4/20/2006 Posts: 10 Location: Switzerland
|
Thanks for your help Straygor. But once again it's not working. I have a gut feeling that the problem has something to do with the tables in the DB. aspnet_Roles and yaf_Group look to hold the same information, same for the tables aspnet_Users and yaf_User. Maybe data is put into one table and read from the other. This is a sort of wild guess. I am not an experienced enough coder to see if it is the problem. I just hope that someone has the same problem and is kind enough to share his or her solution. 
|
|
|
 Rank: YAF Camper

Joined: 2/21/2006 Posts: 13 Location: USSR, Moscow
|
I have ran aspnet_regsql, but there is "Invalid password" again... Can anybody explain how to register aspdotnet db step-by-step Deus To Vult! 
|
|
|
 Rank: YAF Forumling

Joined: 4/22/2006 Posts: 5 Location: Dushanbe, Tajikistan
|
Institoris wrote:I have ran aspnet_regsql, but there is "Invalid password" again... Can anybody explain how to register aspdotnet db step-by-step It's very easy to register DB with aspnet_regsql. The only thing you need to ensure is that you use aspnet_regsql of proper version. If you have both 1.1 and 2.0 versions of .NET installed alongside it's possible that you had used wrong version of this ustility. I got the very same error when I tried to install 1.9.2 first time. In default installation your password must be not less than 7 symbols in length and at least one of them must be a non-alphanumeric symbol, as it stated in machine.config. So, try to use other password first, which meets these requirements.
|
|
|
 Rank: YAF Camper

Joined: 2/21/2006 Posts: 13 Location: USSR, Moscow
|
There was "Invalid password", cause i used invalid pasword... Deus To Vult! 
|
|
|
 Rank: YAF Forumling
Joined: 5/4/2006 Posts: 1 Location: Arizona
|
Skip wrote:vavkin wrote:On the page default.aspx?g=admin_edituser&u=<User number> user roles cannot be saved. In the file edituser.ascx.cs instead of the line Roles.AddUserToRole(User.UserName, roleName) you should type in Roles.AddUserToRole(Name.Text, roleName) As it's necessary to save the roles of the editable user not the current user Hello. I am having problems with the User in usergroups. No matter what group I assigne the user to, when the user logson he or she has no acces to any forum, and in the admin user page the chckbox for the group the user is assigned to is unchecked. I was happy to see this bit of code on the forum and thought that it might be the solution to my problem. Alas changing the code in the edituser.ascx.cs didn't work for me. Anyone have an other idea Thanx in advance I haven't seen any posts regarding this issue so I'm assuming that you haven't solved it as of yet. I ran into the same problem and haven't had a lot of time to familiarize myself with the code, but I made the following changes which appear to be working for me. I first added a new method to the DB.cs class Code: static public string group_getStartGroup() { using (SqlCommand cmd = new SqlCommand("select name from yaf_group where flags & 4 = 4")) { cmd.CommandType = CommandType.Text; string groupName = (string)ExecuteScalar(cmd); return (groupName != null ? groupName : string.Empty); } }
Then I modified the Save_Click method in EditUser.cs, note the Name.Text change. Code: bool isChecked = ((CheckBox)item.FindControl("GroupMember")).Checked; DB.usergroup_save(Request.QueryString["u"],GroupID,isChecked); if (isChecked && !Roles.IsUserInRole(Name.Text, roleName)) Roles.AddUserToRole(Name.Text, roleName); else if (!isChecked && Roles.IsUserInRole(Name.Text, roleName)) Roles.RemoveUserFromRole(Name.Text, roleName);
Finally, I handled the CreatedUser event for the CreateUserWizard1 control (don't forget to hook up this event) Code: protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e) { string startRole = DB.group_getStartGroup(); startRole = startRole == string.Empty ? "Guest" : startRole; Roles.AddUserToRole(CreateUserWizard1.UserName, startRole); }
The cause of this problem (as you may have guessed by the code above) is that the aspnet.UsersInRoles table is not being updated/populated. There are a few other member update problems within the admin interface that are related to the ASP.NET Membership. If these aren't resolved by the time I get a chance to look at them, I'll post what changes I make here.
|
|
|
 Rank: YAF Camper
Joined: 8/5/2004 Posts: 23 Location: France
|
Do you envisage a YAF version for DNN4 ? If yes, can you give us a date please ?
|
|
|
 Rank: YAF Forumling

Joined: 5/12/2006 Posts: 9 Location: Germany
|
Cornelius wrote:Do you envisage a YAF version for DNN4 ? If yes, can you give us a date please ? I managed to get it running fully integrated with DNN 4.0.3 . Will upload the module when I finished testing. -Ulrich
|
|
|
 Rank: YAF Forumling
Joined: 5/13/2006 Posts: 1 Location: Luik, Belgium
|
Hi,
Is there any version of yaf dot .net 2 that can be run for production ?
Thanks, Focalizer
|
|
|
 Rank: YAF Camper

Joined: 3/11/2006 Posts: 13 Location: WA
|
Bugs for Yaf 1.9.2:
- newly registered does not have even read access to any forum - new user created by admin from Admin control panel could not log in --- more to come
|
|
|
 Rank: YAF Forumling
Joined: 4/17/2006 Posts: 3 Location: Irvine, Ca
|
I am getting "Invalid Password" on the Create Forum panel. I have run aspnet_regsql.exe, but I still get the error. Any ideas? http://www.baseballclubhouse.com/
|
|
|
 Rank: YAF Forumling
Joined: 6/1/2006 Posts: 1 Location: Boston, MA
|
Has anyone tried to use this version in a subdirectory? I don't see the same yafnet section in the config file for the root element. If I add it manually, I still get errors where the app is looking for pages outside the subdirectory I'm using. Any tips for setup?
|
|
|
 Rank: YAF Camper
Joined: 8/5/2004 Posts: 23 Location: France
|
guygoodman,
Try to change value in web.config for "minRequiredPasswordLength".
|
|
|
 Rank: YAF Forumling
Joined: 4/17/2006 Posts: 3 Location: Irvine, Ca
|
Cornelius, thanks "minRequiredPasswordLength" was the problem. Is there an official fix for new users not getting set to registered users? http://www.baseballclubhouse.com/
|
|
|
| Users browsing this topic |
|
Guest
|