YAFLogo

infinitep
  • infinitep
  • 72.8% (Friendly)
  • YAF Lover Topic Starter
16 years ago
with a clean install of 1.9.3 beta and using an existing aspnetdb integration guest users and admin can see the test forum however logging in as existing normal member can not see any forums only categories.
[url=http://craigwhiteman.blogspot.com.au/]Capt. ArkCAW HonourNRespect- Need an Ark? I Noah Guy![url]

Sponsor
test2005
16 years ago
Have you checked your mask settings?
.....the man in black fled across the desert..........and the gunslinger followed.....

infinitep
  • infinitep
  • 72.8% (Friendly)
  • YAF Lover Topic Starter
16 years ago
yes its set to member access and has read permission.
[url=http://craigwhiteman.blogspot.com.au/]Capt. ArkCAW HonourNRespect- Need an Ark? I Noah Guy![url]

test2005
16 years ago
In that case check the default settings for the board in question. Maybe it's set to Admin mask only!
.....the man in black fled across the desert..........and the gunslinger followed.....

infinitep
  • infinitep
  • 72.8% (Friendly)
  • YAF Lover Topic Starter
16 years ago
I'm thinking it's a bug, if I create a new user thru yaf it works.

Like I said guest and admin work. Admin user was already in my database so Im thinking its something to do with the integration.

If I view users under admin settings no users show at all regardless where I create them.

Is anyone else having this problem when trying to integrate with an existing site?


[url=http://craigwhiteman.blogspot.com.au/]Capt. ArkCAW HonourNRespect- Need an Ark? I Noah Guy![url]

infinitep
  • infinitep
  • 72.8% (Friendly)
  • YAF Lover Topic Starter
16 years ago
heres my providers from my web.config

do membership and rolemanager also need to inherit from yaf?

connectionStringName="ConnectionString"

applicationName="/"

type="System.Web.Security.SqlMembershipProvider" />

connectionStringName="ConnectionString"

applicationName="/"

type="System.Web.Security.SqlRoleProvider"/>

connectionStringName="ConnectionString"

applicationName="/"

type="System.Web.Profile.SqlProfileProvider"/>


[url=http://craigwhiteman.blogspot.com.au/]Capt. ArkCAW HonourNRespect- Need an Ark? I Noah Guy![url]

infinitep
  • infinitep
  • 72.8% (Friendly)
  • YAF Lover Topic Starter
16 years ago
bump... is anyone else having this problem. This is all thats holding me up from going live now. Please help.
[url=http://craigwhiteman.blogspot.com.au/]Capt. ArkCAW HonourNRespect- Need an Ark? I Noah Guy![url]

Mek
  • Mek
  • 100% (Exalted)
  • YAF Developer
16 years ago
To me it sounds like your user you've created isn't getting mapped to group within YAF, therefore not receiving permissions.

I'd suggest creating a new user in your app, add them to a group. Then check yaf_user table, and yaf_group to see if entries for these new items appear (you have to load YAF in order for it to sync).

Whether someone is a member (in yaf) is held in the table YAF_UserGroup. Looking at the tables mentioned will help you garner where the issue lies.

Something else that you may find useful is the MembershipHelper class in YAF.Classes.Util, as you could technically call the SYNC routine yourself after creating the user and see if everythings working as it should.


UserPostedImage

"It's a case of RTFM.. the only problem being we don't have a manual!"

When I post FP:Mek in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Ederon 🙂 )

mddubs
  • mddubs
  • 100% (Exalted)
  • YAF Developer
16 years ago
Same problem. A clean install of YAF 1.9.3 beta using my existing membership database. Existing users who already belong to my 'Members' role can't view any forums when they first log in.

Work-around: YAF -> Admin page -> Users -> Find all users -> Edit each one -> User Roles Tab -> Check 'Members'.

I figured there was a more permanent solution which I think I just found (but haven't verified).

YAF -> Admin Page -> Roles -> Edit 'Members' Role -> Check IS START.


UserPostedImage 

www.bunkerhollow.com  | www.careercomputing.com 

When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek 🙂, who stole this off Ederon 🙂 )

infinitep
  • infinitep
  • 72.8% (Friendly)
  • YAF Lover Topic Starter
16 years ago
Ok so my exisiting users are being added to yaf_User when they login, but not to yaf_UserGroup. I havent tried calling the sync method, but should I have to or is this a bug?
[url=http://craigwhiteman.blogspot.com.au/]Capt. ArkCAW HonourNRespect- Need an Ark? I Noah Guy![url]

Mek
  • Mek
  • 100% (Exalted)
  • YAF Developer
16 years ago

Ok so my exisiting users are being added to yaf_User when they login, but not to yaf_UserGroup. I havent tried calling the sync method, but should I have to or is this a bug?

infinitep wrote:

Depends on how you "integrated" YAF I suppose.. but Jabens really the person to talk to regarding when the sync is called. I just nodded and smiled throughout that discussion.

Checking out the helper methods won't hurt and maybe get you going even if its a bug (whatever works and all that).


UserPostedImage

"It's a case of RTFM.. the only problem being we don't have a manual!"

When I post FP:Mek in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Ederon 🙂 )

Mek
  • Mek
  • 100% (Exalted)
  • YAF Developer
16 years ago

YAF -> Admin Page -> Roles -> Edit 'Members' Role -> Check IS START.

mddubs wrote:

Yup you need one Role with Is Start really regardless of your setup or version.


UserPostedImage

"It's a case of RTFM.. the only problem being we don't have a manual!"

When I post FP:Mek in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Ederon 🙂 )

MSUArrowCS
16 years ago
Hi ..

I experienced this issue on an integration effort. I am pretty sure the root cause has something to do with the Membership provider on the original (non-YAF) site, but I cannot verify that. Regardless, my workaround was to call some YAF registration methods from my original site's registration. I had a CreateUserWizard control and caught the CreateUser event. I did the account setup for my site and then called the following:


        MembershipUser oUser = Membership.GetUser(username);
        if (oUser != null && oUser.IsApproved == false)
        {
            oUser.IsApproved = true;
            Membership.UpdateUser(oUser);
        }

        /* Add the user as a YAF user also ... from YAF's Registration Code */
        MembershipUser user = Membership.GetUser(username);

        // [YAF] setup inital roles (if any) for this user
        RoleMembershipHelper.SetupUserRoles(YafContext.Current.PageBoardID, username);

        // create the user in the YAF DB as well as sync roles...
        int userID = RoleMembershipHelper.CreateForumUser(user,
                                    YafContext.Current.PageBoardID);

The caveat to this is that since it probably means YAF and your site's membership profile aren't getting along, some of the YAF controls, like registration and changing password, won't affect your 'main' login info ... but in my site, this was not a concern - I want my users using my original controls for login/logout/register, etc.

HTH,

BR

phaedoHD
16 years ago
i'm having this same problem. When an existing user (from before yaf was installed) visits the forum they are added to yaf correctly except they are not assigned in a group, so they can't view the forums.

Under the "Roles" i have "Registered (Linked)" set to Start.

So is this actually a bug somewhere or am i doing something wrong?

As noted earlier if i individually go to the users admin panel and assign the specific user a role, then everything works. However, this isn't really an option once I put this on the "live" version of my site as it has about 30,000+ members.

So should i just add some code somewhere that assigns the user to a group wherever it is currently adding them to yaf when they visit the forum and are authenticated?

Another option i was thinking of doing it just writing some code that auto-adds all my members to yaf, so they don't even need to visit the forum to be added. Is there already something someone has made that does this?

mddubs
  • mddubs
  • 100% (Exalted)
  • YAF Developer
16 years ago

As noted earlier if i individually go to the users admin panel and assign the specific user a role, then everything works.

phaedoHD wrote:

That's what IsStart does. Assign whatever role makes it work when you do it individually as IsStart, and that will assign all users that role automatically instead of you doing it manually.


UserPostedImage 

www.bunkerhollow.com  | www.careercomputing.com 

When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek 🙂, who stole this off Ederon 🙂 )