•  Jaben
  • 100% (Exalted)
  • YAF Developer Topic Starter
YAF v1.9.3 FINAL (Dated 4/22/2009)

Note for users upgrading from v1.9.3 Beta/RC1/RC2: ALL app.config settings names have changed. (They are now prefixed with YAF. ) Also, the default membership provider configuration has changed. You won't be able to login without updating the web.config settings.

Changes Since RC2:

Jaben: Separated .NET v2.0 & .NET v3.5 Binaries.
Jaben: bbobb Russian language file update. Some additional Data Layer compatibility changes thanks to bbobb.
Mek: Added Herman_Herman's new persian.xml translation.
Jaben: Refactored the post message code -- fixed issue with editing/recreating a poll. Works properly now.
Jaben: Fixed bug with choice_add procedure -- when you add a new choice to a poll it would fail.
Jaben: Problems Enzo found on older compilers.
Jaben: Fixed issue with TimeZones when no DB is present once and for all.
Jaben: Refactored BoardSettings -- allowing board settings to be created without a DB present.
Jaben: Create Mail now optionally uses the "TO USER" language localization when creating emails.
Jaben: Fix for provider issue where "created" (Joined) field is not being set... this causes a few issues.
Jaben: Added UrlReferrer security switch to board settings... can be turned off if desired.
Jaben: Added search features... Now handles back button properly. View all posts by user added to profile page.
Jaben: Added [Enter] key support to the goto page form.
Jaben: Added Provider Upgrade procedure -- just called on forum upgrade.
Jaben: Added "Ignore User" system to posts -- thanks to "jshepler" for the code.
Jaben: Finally refactored the "FormatUserBox" code into a separate control. Plus I further refactored the code into functions. Quite a bit cleaner now.
Jaben: Added nUnit Test Project.
Jaben: Fixed issue with Categories being visible if there were no available forums in them.
Jaben: Fixed issue with forum_sort function if a "StartAt" forumId was supplied. This was a problem when searching sub-forums: it wasn't really adding the start at forum to the data table of forums.
Ederon: Moderators now cannot assign moderator access mask to another users. This is reserved to admins.
Jaben: Patch from bbobb for SQL data layer changes.
Mddubs: Multiboard fixes by calling the WebConfigurationManager for the BaseUrl key. For each separate board page, add a web.config in that directory and specify the correct YAF.BaseUrl key.
Mddubs: Remove the space before the comma when user belongs to multiple groups/roles.
Ederon: Picture attachment display treshold is now admin setting (see host settings).
Jaben: lithuanian localization thanks to RavenDev on the forum.
Jaben: bbobb changes: centralized all DB code into DB.cs file.
Jaben: Moved DBSize and ForumInstalled properties to the DB class. Add infomessage enum.
Jaben: Added proper error handling if the user cannot be located in the Membership. (Before it just swallowed the exception.)
Ederon: Fixed few calls in BoardSettings. May need additional attention to make it bullet-proof.
Ederon: Unique index in Forum table is ParentID and Name instead of CategoryID and Name, to allow forums with same name on different levels.
Jaben: bbobb provided fix for bug with sproc MessageReported.
Mddubs: Hide entire change email row instead of just disabling the email text box.
Mddubs: Host Settings -> Allow Email Change.
Mddubs: Fixed preview image once a rank image is added.
Jaben: Category cache is now refreshed when you modify the forums.
Jaben: Added MaxPostSize -- and truncation of displayed post if it's too large... set to 32k by default.
Jaben: MessageReported tables entries are now deleted when a topic is deleted. DisplayPost won't show PM/EMail links for guest posters.
Jaben: Replace rules cache needs to be board-based since custom BBCode can vary as well as options (possibly in the future).
Jaben: Fixed -- ForumJump cache was NOT Board based causing some multi-board "PostBack" issues.
Jaben: Added "YAF" prefix to all YAF application setting.
Micsotho: Ensured a null replace rule cannot be added (attempting to fix a null reference exception).
Jaben: Fixes/updates for Telerik Rad Editor -- Thanks to Mark Hufford.
Jaben: Updated Hebrew language file thanks to danielgindi and others.
Jaben: Updated German language thanks to MrData.
Jaben: Moved YafControlSettings into Config assembly so BoardID is universally available. Also made YafControlSetting a singleton similar to YafContext so the instance was also available everywhere.
Jaben: Made UrlBuilder board-based -- to fix issues with multiboard.
Jaben: Localized Time Zone Selection information and made it pretty simple to modify.
Jaben: Had enough of the ugly Profile page. Made it AJAX tabs and cleaned up the moderate section.
Jaben: Fix for bug: "In the Stored Procedure yaf_prov_role_exists, it takes the application as a parameter, but doesn't do a check against it (I don't think our version has been modified!)" found by Reptophile.
Mek: Bad Word in TopicLine issue resolved.
Mek: Fixed Bad Word issues in Active Topics and Moved sprocs.
Mek: Fixed BBCode SQL Error when using alternative ObjectQualifier.
Mek: EditUsersInfo fix to include UserFlags.IsApproved being saved.
Jaben: Added a "flow" to reported posts, spam and approving posts... Now it redirects back to moderate if section is empty. Also added CSS style buttons -- why? Because I like them better. :)
Mddubs: Added Gray theme. Added Modern Smiley Pack emoticons.
Micsotho: Fixed Email Topic -- since emails are sent out as plain text, URL should not have been escaped
Mddubs: Removed wb.SubString() which wasn't being assigned anywhere and was essentially doing nothing.
Mddubs: Corrected the formatting, the labels were too big and the text boxes were too small.
Mddubs: Implemented an optional ShowToolBar config key if you want to hide the toolbar because you have your own menu controls on your integrated site.
Mddubs: In some instances the inbox css styles were all wacky. This fixed the problem.
Jaben: Finally made the "CollapsibleThemeImage" into a control to simply.
Jaben: YafContext now automatically inits as needed.
Micsotho: Fixed an error (DeletedRowInaccessibleException) that would occur if a user deleted the first message in a topic.
Jaben: Fixed bug with BBCode modules and INNER HTML that wasn't right, e.g.:
Jaben: Added a "Tooltip" to the spoiler mod as per a user request...
Jaben: Fixed issue where the inner HTML was not being displayed properly for the BBCode Modules. Also fixed an issue with IsPasswordCompliant from the SourceForge bugs.
Jaben: Fixed "Active Topics" RSS bug related to CategoryID.
Jaben: Fixed inconsistencies in how the profile links were being handled/displayed. Now opens links in new window for both WWW and BLOG -- also enabled NOFOLLOW if specified in the admin.
Jaben: Better protection for uploaded files: they no longer have their uploaded extensions which could obviously cause problems if you allow uploads of types like .aspx or .ascx, etc.
Jaben: Fixed OLD voting cookie error -- the name of the cookie was totally wrong. Still worked when vote by IP was selected -- but failed when unselected.
Jaben: Localized the Spoiler Mod -- and add a complete localization system to the BBCode modules.

Thanks to Mddubs, Mek, Micsotho, Ederon, JsHelper and Bbobb for their contributions to this release!

Languages may be out of date to the latest in english.xml. Help with this is appreciated.

Contributing to YAF
How can you support YAF, you ask? Just help a bit. Test the software and post bugs. Answer a few questions on this forum for other, less knowledgeable, YAF admins. If you really want to go crazy, write a little documentation in the wiki...

Bug Reports
Please post your v1.9.3 problem threads in this forum: http://forum.yetanotherf...2_Bugs-and-Problems.aspx 

Long time friend of YAF, Boskone has done work for YAF v1.9.3/DNN integration. Please look at this topic: http://forum.yetanotherf...-DNN483-integration.aspx 

YAF v1.9.3 FINAL doesn't requires Web Application Project as most of the main source is dynamic compilation. But if you do want to compile the whole source, please download Visual Studio 2008 Express .

SRC: Includes the compiled forum and forum page files with full source -- NOW INCLUDES ALL COMPILED BINARIES!
BIN v2.0: Includes the compiled forum and forum page files without the source for NET v2.0.
BIN v3.5: Includes the compiled forum and forum page files without the source for NET v3.5.

  •  mack
  • 100% (Exalted)
  • YAF Commander

The BIN version for .NET2.0 seem not working. It still reference to 3.5 version.

Server Error in '/forum' Application.

Could not load file or assembly 'System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Please fix,

  •  Jaben
  • 100% (Exalted)
  • YAF Developer Topic Starter
Sorry about that -- I'll take a look tomorrow, doc.
Nice to hear, I'll try to update just now :)

But one small thing: You may want to add a notice about the "nStuff.UpdateControls" for the src version. I'm sure you will get some posts about this because if it is not copied from /bin/version to /bin it will throw 1 waning and 2 errors during compile :)
Figured it out right in time before I clicked on send
- Sry for my english ;)

BattCursor.Net  - Official homepage of that tool for vista laptops!
  •  jax
  • 78.8% (Friendly)
  • YAF Lover
Great news, just setting this up now as a fresh installation, everytime I try to setup the new admin user I'm told that the password is invalid... what would be a valid password?

  •  jax
  • 78.8% (Friendly)
  • YAF Lover
not to worry worked it out - I had no "special char" in the password
Hi all

I see that the setup instructions are still focused on YAF as the sole application in a root directory. This is a problem for the great many of us who use YAF in a subdirectory as a sub-application. The web.config assumes YAF as the authentication provider, but again for many of us the authentication provider the Microsoft Membership Provider, something YAF uses as well.

What would be the appropriate strategy for those of us using YAF in a configuration where YAF is in a subdirectory off of the root application, and where the authentication provider is already in place? What changes would need to happen in the YAF web.config and what changes would need to happen in the root web.config?

I know this is a lot to ask for. I am just trying to create an easier deployment experience. If you want, we can use my environment as a basis for building setup instructions for this kind of configuration. I just need some help building the documentation.


As a follow on...

I am going to try to get YAF working in my configuration and I will do my best to document this process. However I will need feedback on the various errors before I hack things about.

I have done the unzip and copied the /bin contents to my root folder. I modified the <root> key to "/forums", which is the subdirectory for my forums. I also modified the base URL key, since I have seen previously that this key impacts YAF's ability to build URL links properly. I don't know if this is still an issue, so let me know if I am adding to the problem or fixing a problem, or if there "should" be no problem.

Here are those two keys.

<add key="YAF.Root" value="/forums"/>

<add key="YAF.BaseUrl" value="~/forums" />

Now I will do the "Install".
When I go to do the "Install", I get the following error...

Server Error in '/' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:

Line 103: </pages>
Line 104:
Line 105: <roleManager enabled="true" defaultProvider="YafRoleProvider">
Line 106: <providers>
Line 107: <clear/>

Source File: C:\inetpub\wwwroot\forums\web.config Line: 105

I was expecting this, as I have seen this in the past. The problem is that I am not sure at this point what to do. This looks like a conflict between my current role provider, which is set to default, and the YAF role provider. In addition I think the role provider stuff has to be in the root web.config, but I am not sure about this.

So at this point I am stalled (unless I go hacking about on my own, which I am going to do, but kind of defeats the purpose of this experiment, so I will do my best to track my hacking.)



First Hack.

I have a single provider for my application. The application is called "Gunk". Here is the provider string from my root web.config.

<roleManager enabled="true" defaultProvider="Gunk">
<remove name="AspNetSqlRoleProvider" />
<remove name="AspNetWindowsTokenRoleProvider" />
<add applicationName="Gunk" connectionStringName="Gunk" name="Gunk" type="System.Web.Security.SqlRoleProvider, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

Clearly YAF cannot be the default provider if some other provider (be it Gunk or AspNetSqlRoleProvider) is default. So I am going to comment out the provider information in the YAF web.config and see what happens.

With the YAF roles section commented out in the YAF web.config, I was able to complete the install. Now I will test the forums to see what is broken because of my hack.
Next step

I go to my root application home page, where there is a link to the forums. I click on that link, which calls <webroot>/forums/ and should provide <webroot>/forums/default.aspx.

It does, but with the following error.

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Unknown server tag 'YAF:Forum'.

Source Error:

Line 18: <img src="~/images/YAFLogo.jpg" runat="server" alt="YetAnotherForum" id="imgBanner" /><br/>
Line 19: <form id="form1" runat="server" enctype="multipart/form-data">
Line 20: <YAF:Forum runat="server" ID="forum"></YAF:Forum>
Line 21: </form>
Line 22: </body>

Source File: /forums/default.aspx Line: 20

This indicates that the application cannot find the Forum control. This control is inherited from one of the DLL's, I think. So now I need to find out where that control is and make the YAF default page find it.

Who can help with this?


So I copied th App_Code folder down into the root of my website and I now have forums! However I don't know if I can safely delete the App_Code folder from <webroot>/forums. I hate to have loose directories hanging around doing nothing; the represent both clutter and potential future problems.

So we now know that the App_Code folder needs to be in the root along with the contents of the bin folder. This is not new information; we knew this already. But we need to add it to the configuration document. (I guess that would be the one I am now building.)

Don't destroy this thread!!! It has become a documentation thread. :)
Please note that the information regarding the App_Code folder is contained in the app.config file. However that comment is easily missed, and should really be a part of a setup document (ie the one I am building right now). 🙂

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