Welcome Guest Search | Active Topics | Log In | Register

2 Pages 12>
integration registered users can not see forums Options · View
infinitep
#1 Posted : Tuesday, August 12, 2008 8:15:21 AM
Rank: Member


Joined: 5/28/2008
Posts: 26
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.
test2005
#2 Posted : Tuesday, August 12, 2008 1:10:48 PM

Rank: YAF MVP



Joined: 2/12/2005
Posts: 927
Location: Italy
Have you checked your mask settings?
.....the man in black fled across the desert..........and the gunslinger followed.....

infinitep
#3 Posted : Wednesday, August 13, 2008 6:21:38 AM
Rank: Member


Joined: 5/28/2008
Posts: 26
yes its set to member access and has read permission.
test2005
#4 Posted : Thursday, August 14, 2008 1:00:50 PM

Rank: YAF MVP



Joined: 2/12/2005
Posts: 927
Location: Italy
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
#5 Posted : Friday, August 15, 2008 2:27:23 AM
Rank: Member


Joined: 5/28/2008
Posts: 26
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?
infinitep
#6 Posted : Friday, August 15, 2008 2:31:22 AM
Rank: Member


Joined: 5/28/2008
Posts: 26
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>
infinitep
#7 Posted : Tuesday, August 19, 2008 10:13:32 AM
Rank: Member


Joined: 5/28/2008
Posts: 26
bump... is anyone else having this problem. This is all thats holding me up from going live now. Please help.
Mek
#8 Posted : Tuesday, August 19, 2008 1:31:52 PM

Rank: YAF Developer



Joined: 7/12/2005
Posts: 1,324
Location: on Dock Street
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.



"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 Smile )
mddubs
#9 Posted : Tuesday, August 19, 2008 4:37:52 PM

Rank: YAF Developer



Joined: 8/7/2008
Posts: 164
Location: Chicagoland
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.
infinitep
#10 Posted : Tuesday, August 19, 2008 5:05:11 PM
Rank: Member


Joined: 5/28/2008
Posts: 26
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?
Mek
#11 Posted : Tuesday, August 19, 2008 6:22:19 PM

Rank: YAF Developer



Joined: 7/12/2005
Posts: 1,324
Location: on Dock Street
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).




"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 Smile )
Mek
#12 Posted : Tuesday, August 19, 2008 6:23:10 PM

Rank: YAF Developer



Joined: 7/12/2005
Posts: 1,324
Location: on Dock Street
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.


"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 Smile )
MSUArrowCS
#13 Posted : Thursday, August 21, 2008 8:44:40 AM

Rank: YAF Forumling


Joined: 8/21/2008
Posts: 3
Location: Starkville, MS
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:

Code:

        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
#14 Posted : Monday, September 08, 2008 2:17:05 PM
Rank: Advanced Member


Joined: 11/22/2007
Posts: 30
Location: Seattle
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
#15 Posted : Monday, September 08, 2008 3:03:09 PM

Rank: YAF Developer



Joined: 8/7/2008
Posts: 164
Location: Chicagoland
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.
Users browsing this topic
Guest
2 Pages 12>
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.136 seconds.

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