More Group Sites
School Rankings
Jobless Net
Better Home
Enviro++


Help | Subscribe/Unsubscribe | Rules | Other Group Sites: Better Education | Better Education Forum
Welcome Guest Search | Active Topics | Members | Log In | Register

A free asp.net forum - Yet Another Forum.NET Options · View
hong
Posted: Sunday, April 12, 2009 6:50:08 AM

Rank: Administration
Groups: Administration

Joined: 11/23/2008
Posts: 335
Points: 711
Location: Australia
A free asp.net forum - Yet Another Forum.NET

Yet Another Forum is one of the best free asp.net forums. It supports:
- Multiple boards and forums
- asp.net 2.0
- SQL Server 2005
- many more features
Sponsor
Posted: Sunday, April 12, 2009 6:50:08 AM
hong
Posted: Sunday, April 12, 2009 7:08:30 AM

Rank: Administration
Groups: Administration

Joined: 11/23/2008
Posts: 335
Points: 711
Location: Australia
Using Multiple Boards With A Single Installation

1. Install Yet Another Forum.NET to a folder in your website application, for example, ~/forum1/.
2. Configure the forum as per the instructions or seek help from http://forum.yetanotherforum.net.
3. Once the forum runs, create a new board.
4. For the new board, copy the default.aspx page to a new folder such as ~/forum2/.
5. Change the BoardID of the YAF:Forum control in the default.aspx.
Code:
<yaf:forum runat="server" BoardID="2" id="forum" />

6. Add a web.config or default.config file to that folder (~/forum2/) and specify the appropriate BaseUrl key:
Code:
Code:<?xml version="1.0"?>
<configuration>
  <appSettings>
    <add key="YAF.BaseUrl" value="~/forum2" />
  </appSettings>
</configuration>


Please note:
1. The BaseUrl retrieves its value using the WebConfigurationManager from a dictionary cache using the HttpContext.Current.Request.FilePath as the key.
2. Creating board is only available in the boards if you are logged in as the original Administrator account, not if you are just an admin. Only a host admin can add boards and change host settings. The host settings affect all boards. Only a host admin can set another user as a host admin. A board admin cannot add boards, access to the host settings and make anyone a host admin.
3. Each board would have a different user profile, avatars, email address and separate board statistics.
4. YAF 1.9.3 supports same users on different boards.

hong
Posted: Wednesday, April 15, 2009 9:39:13 AM

Rank: Administration
Groups: Administration

Joined: 11/23/2008
Posts: 335
Points: 711
Location: Australia
Viewing second YAF board on same webhost as a member giving exception "user isn't registered"


If you use Yet Another Forum.NET 1.9.1.8 (YAF) and set multiple boards on the same host, members have to logout from one board in order to login into another board. Otherwise exception "user isn't registered" is raised.

Here is the stack:
Line 232: {
Line 233: if(User.IsAuthenticated)
Line 234: throw new ApplicationException(string.Format("User '{0}' isn't registered.",User.Name));
Line 235: else
Line 236: throw new ApplicationException("Failed to find guest user.";

Stack Trace:

[ApplicationException: User 'test' isn't registered.]
yaf.pages.ForumPage.ForumPage_Load(Object sender, EventArgs e) in c:\YAFForum\pages\ForumPage.cs:234
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Page.ProcessRequestMain() +750

It seems that Board 1 sets an authenticated cookie and Board 2 reads that cookie, finds the member's name, but then can't resolve it since there is no such a member in that database. First you need to check whether the <forms> authentication tags are the same (same cookie name) in the web.config files. If same, try different authentication form names. See the following example:

Code:
application ./web.config
    <!--must include authentication-->
    <authentication mode="Forms">
            <!--<forms name=".YAFNET_Authentication" timeout="525600" />-->
        </authentication>

forum 1, default.config
    <authentication mode="Forms">
            <forms name=".YAFNET_Authentication1" timeout="525600" />
        </authentication>


forum 2, default.config
    <authentication mode="Forms">
            <forms name=".YAFNET_Authentication2" timeout="525600" />
        </authentication>

forum 3, default.config
    <authentication mode="Forms">
            <forms name=".YAFNET_Authentication3" timeout="525600" />
        </authentication>


hong
Posted: Wednesday, April 15, 2009 10:11:27 AM

Rank: Administration
Groups: Administration

Joined: 11/23/2008
Posts: 335
Points: 711
Location: Australia
Multiple boards on the same web host - "different users on different boards" vs. "same users on different boards"

Different users on different boards
Each board has different user profile, avatars, email address and separate board statistics.

Same users on different boards
Same User ID and password are used for each board.

“Same users on different boards” is not available from YAF 1.9.1.8. However this feature seems to be working with YAF 1.9.3.

hong
Posted: Tuesday, April 21, 2009 4:31:24 PM

Rank: Administration
Groups: Administration

Joined: 11/23/2008
Posts: 335
Points: 711
Location: Australia
Add Avatar Collection to YAF

If you put the pictures in the avatar collection in <Your Domain>/Forums/Images/Avatars, "Select your Avatar from our Collection: [ Click Here to Select an Avatar ]" won't work. You need to make a sub-directory and put all the avatars in there. By creating different directories with different categorised names, you can present your avatars to forum users by type, eg. animals, cars, plants, scenery.
hong
Posted: Sunday, October 18, 2009 11:35:53 AM

Rank: Administration
Groups: Administration

Joined: 11/23/2008
Posts: 335
Points: 711
Location: Australia
I used to have 3 boards, each with its own image banner. After adding the fourth board, all the image banners were replaced by the default YAF logo. I found an easy way to fix the issue - just changing the id of the image banners from the default "imgBanner" to a different name, eg. "myimgBanner".
hong
Posted: Tuesday, May 18, 2010 8:24:02 PM

Rank: Administration
Groups: Administration

Joined: 11/23/2008
Posts: 335
Points: 711
Location: Australia
Problem: YAF logs out users automatically after a couple of minutes of idle time

I extended the session timeout for forms authentication section in web.config file. But it didn't help.

It seems that the app is getting recycled. A couple of minutes is too short, but depends on your hosting company.

Now I'm trying adding a machine key using ASP.NET machine Key Generator.

Quote:
This is an application that will generate a valid machineKey block with random, secure, hard-coded keys that you can paste inside the <system.web> in your web.config or machine.config file.

Hard-coded encryption and validation keys are needed if you have a web farm/web garden, if you use passwordFormat=Encrypted with ASP.NET 2.0's Membership provider, or if you have certain ViewState issues.


I think YAF uses passwordFormat=Encrypted with ASP.NET 2.0's Membership provider. The machineKey approach could be the solution to the problem.

I hope the problem will go away.

Users browsing this topic
Guest


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.

Main Forum RSS : RSS

ASPNET Theme created by Boskone (Dan Ferguson)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.
This page was generated in 0.111 seconds.