YAFLogo

shefali
  • shefali
  • 60.8% (Friendly)
  • YAF Forumling Topic Starter
15 years ago
Hi friends.

I am using yetanotherfourm in my application..

I have one problem..actually according to this forum policy it is managing separate users for each board means that for going to each board the member has to separately login..but I want that same user id and password should be enough to jump through any board.

Can you plz tell me how shd I do that ..I dont want separate user account for each board..

Sponsor
jshepler
15 years ago
I'm thinking that you misunderstand what YAF calls a board. In YAF, a board is a collection of forums, a forum is a collection of topics and a topic is a collection of posts. A website can have 1 and only 1 board (the BoardID in web.config/app.config). Take this site for example. This board has the following forums: YAF Announcements, Forum Announcements, Feature Requests, Bugs & Problems, YAF & Portals, General, Source Code, etc.

If I'm wrong and you do understand what YAF boards are, then I apologize. In that case, as long as your other websites have their web.configs configured to use the same membership application name, the same database connection string and same BoardID, then all the boards should share the same users.


not jsheLPer

shefali
  • shefali
  • 60.8% (Friendly)
  • YAF Forumling Topic Starter
15 years ago
I properly understand "What a board is".

But if this is the case and only one board can be created per website so why the facility of adding a new board is provided in this software. The administrator can add a board easily.

And if I really want to have more than one board in my website than what should I do??Is it possible??

Ederon
  • Ederon
  • 100% (Exalted)
  • YAF Developer
15 years ago
Multiboard functionality is not refined and may be little bit confusing ATM. We are figuring it out too. Mek might have more to say on this topic.
When I post FP:Ederon in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting.
jshepler
15 years ago

I properly understand "What a board is".

But if this is the case and only one board can be created per website so why the facility of adding a new board is provided in this software. The administrator can add a board easily.

And if I really want to have more than one board in my website than what should I do??Is it possible??

shefali wrote:

Only host admins can add boards (and change host settings, which affect all boards) - which the built-in admin is. Only a host admin can set another user as a host admin. A "board admin" cannot add boards, does not get access to the host settings, and cannot make anyone a host admin.

You could try using the location tag to specify a different boardId for different paths. I don't know if that would work or not, but it would be the first thing I would try.

I'm curious though. I can't conceive of a need to have more than 1 board per site. Why do you need to?


not jsheLPer

mddubs
  • mddubs
  • 100% (Exalted)
  • YAF Developer
15 years ago
Multiple boards would be great!!! At the very least, I'm sure a lot of people could find use in a separate 'Administrators' board. I have 4 planned, and the ability to have a different theme for each (slightly modified colors) is an excellent way to identify which one you're in so you don't get confused. I'm really looking forward to some stable functionality!
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 🙂 )

jshepler
15 years ago

Multiple boards would be great!!! At the very least, I'm sure a lot of people could find use in a separate 'Administrators' board. I have 4 planned, and the ability to have a different theme for each (slightly modified colors) is an excellent way to identify which one you're in so you don't get confused. I'm really looking forward to some stable functionality!

mddubs wrote:

You can already have an Administrators forum that non-admins wouldn't ever see. And, you can already set a different theme per forum. I haven't tested the forum theme override to see if it actually works, but it's there in the forum settings page.


not jsheLPer

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

You can already have an Administrators forum that non-admins wouldn't ever see. And, you can already set a different theme per forum. I haven't tested the forum theme override to see if it actually works, but it's there in the forum settings page.

jshepler wrote:

Multiple boards allow you to separate boards across physical files/directories so you can utilize your membership role permissioning that you spent all that time implementing! No need to duplicate all of your permissions in YAF.

No need to hide categories or develop funky permissions. Each board can have it's own set of categories, you can't subcategory on a single board. So yes, with YAFs ability to subforum you could sort of implement a complex scenario, but multiboards would allow you to do it correctly.


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

jshepler
15 years ago
Ok, that makes sense...

Setting up all the membership role permission for various sub-directories involves the location tag, right? Have you tried setting a different boardId in the appropriate location tags?

The yaf:forum tag has a boardId property and I'm assuming that you would have a different page in each appropriate sub-folder that hosts the yaf:forum tag where you would set a different boardId. Does this not work?


not jsheLPer

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

Have you tried setting a different boardId in the appropriate location tags?

jshepler wrote:

You can't specify a control or attribute of a control through membership permissions. Files and directories only.

The yaf:forum tag has a boardId property and I'm assuming that you would have a different page in each appropriate sub-folder that hosts the yaf:forum tag where you would set a different boardId. Does this not work?

jshepler wrote:

Yes, that's how multiboards work but there are bugs.


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

jshepler
15 years ago

Have you tried setting a different boardId in the appropriate location tags?

mddubs wrote:

You can't specify a control or attribute of a control through membership permissions. Files and directories only.

jshepler wrote:

I don't mean in the permissions area. The location tag allows you to override various web.config settings for specific paths. I'm thinking something along the lines of:


    <location path="~/someSubFolder">
        <appSettings>
            <remove key="BoardID"/>
            <add key="BoardID" value="3"/>
        </appSettings>
    </location>

not jsheLPer

mddubs
  • mddubs
  • 100% (Exalted)
  • YAF Developer
15 years ago
Very interesting. So don't specify a BoardId in your YAF:Forum control and it will default to that app setting key, which I guess you could change dynamically based on your permission using the location tag? So you could change them but then each user/role would only be able to access 1 board, right?

Great idea for being able to dynamically change boards (if that works), but I don't think it'll get you that multiple board functionality.


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

jshepler
15 years ago

Very interesting. So don't specify a BoardId in your YAF:Forum control and it will default to that app setting key, which I guess you could change dynamically based on your permission using the location tag? So you could change them but then each user/role would only be able to access 1 board, right?

Great idea for being able to dynamically change boards (if that works), but I don't think it'll get you that multiple board functionality.

mddubs wrote:

Hmm.. Well, the membership goes by application name - which would be the same - so it would share the same membership users. Yaf's users table has a boardId column, so yeah, each board would have a seperate yaf user, but they would all have the same ProviderUserKey. You wouldn't need to log in a seperate account for each board.

That actually might be desirable. Each board would have a different user profile - different avatars, different email address, different everything. Even seperate board statistics. But still a single login.


not jsheLPer

mddubs
  • mddubs
  • 100% (Exalted)
  • YAF Developer
15 years ago
I'm not sure what you're going on about now, but I don't think it would work because of what I said above. Also, changing the config key could have some unexpected results with multiple users.

The assumption is, of course, a single login for each user.


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

jshepler
15 years ago

I'm not sure what you're going on about now, but I don't think it would work because of what I said above. Also, changing the config key could have some unexpected results with multiple users.

mddubs wrote:

What I'm going on about is yaf doesn't do the authentication - asp.net membership does. The aspnet_Users table would have 1 row for mddubs and so you would have a single login and a single set of roles & permissions (not yaf permissions). The yaf_User table would have multiple rows for mddub, one for each board, and so would have seperate profiles, board stats and yaf permissions.

Maybe an example would help. In the aspnet_Users table, you would have a single row for mddubs with a UserID of "FD8CE4CD-D024-4766-9F24-159B7905736E". Let's say your site has 5 boards - boardIDs 1 through 5. After visiting each of your boards for the first time, the yaf_User table would have 5 rows for you:


UserID      BoardID     ProviderUserKey                        Name
----------- ----------- -------------------------------------- -----------
5           1           FD8CE4CD-D024-4766-9F24-159B7905736E   mddubs
6           2           FD8CE4CD-D024-4766-9F24-159B7905736E   mddubs
7           3           FD8CE4CD-D024-4766-9F24-159B7905736E   mddubs
8           4           FD8CE4CD-D024-4766-9F24-159B7905736E   mddubs
9           5           FD8CE4CD-D024-4766-9F24-159B7905736E   mddubs

You would have one login with one set of roles/permissions (not yaf permissions), but 5 yaf users. This is just theory right now, because I don't know that YAF will do this - it might just overwrite the one row each time. Lemme check the code real quick.....

Yeah, the stored procedure yaf_user_aspnet takes the BoardID and ProviderUserKey and checks if the row already exists in yaf_User and if not, inserts it. So YAF would insert 5 new rows for the same membership user with the 5 different BoardIDs.


not jsheLPer