Welcome Guest Search | Active Topics | Log In | Register

6 Pages <12345>»
YAF 1.9.2 (ASP.NET 2.0 Technology Preview) Options · View
Skip
#31 Posted : Wednesday, April 26, 2006 9:18:42 PM

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. Cool
Straygor
#32 Posted : Thursday, April 27, 2006 11:44:26 AM

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);
            }
        }


Rolling Eyes
Skip
#33 Posted : Thursday, April 27, 2006 7:07:23 PM

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. Rolling Eyes
Institoris
#34 Posted : Saturday, April 29, 2006 4:19:43 PM

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-stepQuestion
Deus To Vult!
ooptimum
#35 Posted : Sunday, April 30, 2006 10:20:08 AM

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-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
#36 Posted : Monday, May 01, 2006 11:33:58 AM

Rank: YAF Camper



Joined: 2/21/2006
Posts: 13
Location: USSR, Moscow
There was "Invalid password", cause i used invalid pasword...
Deus To Vult!
rdemartino
#37 Posted : Friday, May 05, 2006 5:23:19 PM

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.
Cornelius
#38 Posted : Saturday, May 06, 2006 7:30:40 PM

Rank: YAF Camper


Joined: 8/5/2004
Posts: 23
Location: France
Do you envisage a YAF version for DNN4 ? Razz
If yes, can you give us a date please ?
connex
#39 Posted : Friday, May 12, 2006 2:08:13 PM

Rank: YAF Forumling



Joined: 5/12/2006
Posts: 9
Location: Germany
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
#40 Posted : Saturday, May 13, 2006 3:50:18 PM

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
kwa
#41 Posted : Sunday, May 28, 2006 10:54:47 PM

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
guygoodman
#42 Posted : Tuesday, May 30, 2006 11:08:57 PM

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?Sad
akabak
#43 Posted : Thursday, June 01, 2006 5:11:56 PM

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?
Cornelius
#44 Posted : Thursday, June 01, 2006 10:21:48 PM

Rank: YAF Camper


Joined: 8/5/2004
Posts: 23
Location: France
guygoodman,

Try to change value in web.config for "minRequiredPasswordLength".
guygoodman
#45 Posted : Saturday, June 03, 2006 6:18:15 AM

Rank: YAF Forumling


Joined: 4/17/2006
Posts: 3
Location: Irvine, Ca
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 (5)
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.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.140 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET