Welcome Guest Search | Active Topics | Members | Log In | Register

6 Pages<12345>»
YAF 1.9.2 (ASP.NET 2.0 Technology Preview)
Skip Offline
#31 Posted : Wednesday, April 26, 2006 4:18:42 AM(UTC)

Rank: YAF Camper

Joined: 4/20/2006(UTC)
Posts: 10
Location: Switzerland

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
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. Cool
Straygor Offline
#32 Posted : Wednesday, April 26, 2006 6:44:26 PM(UTC)
Rank: YAF Forumling

Joined: 3/30/2006(UTC)
Posts: 1

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
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);
            }
        }


Rolling Eyes
Skip Offline
#33 Posted : Thursday, April 27, 2006 2:07:23 AM(UTC)

Rank: YAF Camper

Joined: 4/20/2006(UTC)
Posts: 10
Location: Switzerland

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
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. Rolling Eyes
Institoris Offline
#34 Posted : Friday, April 28, 2006 11:19:43 PM(UTC)

Rank: YAF Camper

Joined: 2/20/2006(UTC)
Posts: 13
Location: USSR, Moscow

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
I have ran aspnet_regsql, but there is "Invalid password" again...
Can anybody explain how to register aspdotnet db step-by-stepQuestion
Deus To Vult!
ooptimum Offline
#35 Posted : Saturday, April 29, 2006 5:20:08 PM(UTC)

Rank: YAF Forumling

Joined: 4/22/2006(UTC)
Posts: 5
Location: Dushanbe, Tajikistan

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Institoris wrote:
I have ran aspnet_regsql, but there is "Invalid password" again...
Can anybody explain how to register aspdotnet db step-by-stepQuestion

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.
Institoris Offline
#36 Posted : Sunday, April 30, 2006 6:33:58 PM(UTC)

Rank: YAF Camper

Joined: 2/20/2006(UTC)
Posts: 13
Location: USSR, Moscow

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
There was "Invalid password", cause i used invalid pasword...
Deus To Vult!
rdemartino Offline
#37 Posted : Friday, May 05, 2006 12:23:19 AM(UTC)
Rank: YAF Forumling

Joined: 5/4/2006(UTC)
Posts: 1
Location: Arizona

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
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.
Cornelius Offline
#38 Posted : Saturday, May 06, 2006 2:30:40 AM(UTC)
Rank: YAF Camper

Joined: 8/5/2004(UTC)
Posts: 23
Location: France

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Do you envisage a YAF version for DNN4 ? Razz
If yes, can you give us a date please ?
connex Offline
#39 Posted : Thursday, May 11, 2006 9:08:13 PM(UTC)

Rank: YAF Forumling

Joined: 5/11/2006(UTC)
Posts: 9
Location: Germany

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Cornelius wrote:
Do you envisage a YAF version for DNN4 ? Razz
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
Focalizer Offline
#40 Posted : Friday, May 12, 2006 10:50:18 PM(UTC)
Rank: YAF Forumling

Joined: 5/12/2006(UTC)
Posts: 1
Location: Luik, Belgium

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hi,

Is there any version of yaf dot .net 2 that can be run for production ?

Thanks, Focalizer
kwa Offline
#41 Posted : Sunday, May 28, 2006 5:54:47 AM(UTC)

Rank: YAF Camper

Joined: 3/10/2006(UTC)
Posts: 13
Location: WA

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
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
guygoodman Offline
#42 Posted : Tuesday, May 30, 2006 6:08:57 AM(UTC)
Rank: YAF Forumling

Joined: 4/17/2006(UTC)
Posts: 3
Location: Irvine, Ca

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
I am getting "Invalid Password" on the Create Forum panel.
I have run aspnet_regsql.exe, but I still get the error.
Any ideas?Sad
akabak Offline
#43 Posted : Thursday, June 01, 2006 12:11:56 AM(UTC)
Rank: YAF Forumling

Joined: 5/31/2006(UTC)
Posts: 1
Location: Boston, MA

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
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?
Cornelius Offline
#44 Posted : Thursday, June 01, 2006 5:21:48 AM(UTC)
Rank: YAF Camper

Joined: 8/5/2004(UTC)
Posts: 23
Location: France

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
guygoodman,

Try to change value in web.config for "minRequiredPasswordLength".
guygoodman Offline
#45 Posted : Friday, June 02, 2006 1:18:15 PM(UTC)
Rank: YAF Forumling

Joined: 4/17/2006(UTC)
Posts: 3
Location: Irvine, Ca

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Cornelius, thanks "minRequiredPasswordLength" was the problem. Smile


Is there an official fix for new users not getting set to registered users? Confused
Users browsing this topic
Guest
6 Pages<12345>»
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 RC4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.424 seconds.