infinitep
2008-08-11T21:15:21Z
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
2008-08-12T02:10:48Z
Have you checked your mask settings?
.....the man in black fled across the desert..........and the gunslinger followed.....
infinitep
2008-08-12T19:21:38Z
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
2008-08-14T02:00:50Z
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
2008-08-14T15:27:23Z
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
2008-08-14T15:31:22Z
heres my providers from my web.config

do membership and rolemanager also need to inherit from yaf?


<connectionStrings>
<add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;Database=yaf;Integrated Security=True;User Instance=False" providerName="System.Data.SqlClient" />
<add name="yafnet" connectionString="Data Source=.\SQLEXPRESS;Database=yaf;Integrated Security=True;User Instance=False" providerName="System.Data.SqlClient" />
</connectionStrings>

<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider"
connectionStringName="ConnectionString"
applicationName="/"
type="System.Web.Security.SqlMembershipProvider" />
</providers>
</membership>
<roleManager enabled="true">
<providers>
<clear/>
<add name="AspNetSqlRoleProvider"
connectionStringName="ConnectionString"
applicationName="/"
type="System.Web.Security.SqlRoleProvider"/>
</providers>
</roleManager>
<profile enabled="true" defaultProvider="AspNetSqlProfileProvider" inherits="YAF.Classes.Utils.YafUserProfile">
<providers>
<clear />
<add name="AspNetSqlProfileProvider"
connectionStringName="ConnectionString"
applicationName="/"
type="System.Web.Profile.SqlProfileProvider"/>
</providers>
</profile>

[url=http://craigwhiteman.blogspot.com.au/]Capt. ArkCAW HonourNRespect- Need an Ark? I Noah Guy![url]
infinitep
2008-08-18T23:13:32Z
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
2008-08-19T02:31:52Z
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
2008-08-19T05:37:52Z
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
2008-08-19T06:05:11Z
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
2008-08-19T07:22:19Z
infinitep wrote:

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?



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
2008-08-19T07:23:10Z
mddubs wrote:



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



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
2008-08-20T21:44:40Z
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
2008-09-08T03:17:05Z
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
2008-09-08T04:03:09Z
phaedoHD wrote:

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



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 🙂 )

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved