YAFLogo

gizmodo
  • gizmodo
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
5 years ago
I just got YAF 2.2.3 setup and integrated with my site that is hosted on GoDaddy. Everything is working except for two things.

1. Users can upload an avatar just fine, but the forum will not show them. I see a 404 for the following request:

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /forum/resource.ashx

The web.cofig file contains the following entries:

<system.web>
    <httpHandlers>
      <add verb="GET" path="Resource.ashx" type="YAF.YafResourceHandler, YAF" />
    </httpHandlers>
</system.web>

<system.webServer>
    <handlers>
	  <add name="YafHandler" preCondition="integratedMode" verb="GET" path="Resource.ashx" type="YAF.YafResourceHandler,YAF" />
    </handlers>
</system.webServer>

2. If I select CKEditor as the editor I get a javascript error:

Uncaught TypeError: Cannot read property '1' of null

at Object.detect (ckeditor.js:228)

at Object.load (ckeditor.js:228)

at w (ckeditor.js:245)

at ckeditor.js:245

at b (ckeditor.js:484)

at Object.loadPart (ckeditor.js:486)

at q (ckeditor.js:245)

at a. (ckeditor.js:245)

at a.q (ckeditor.js:10)

at a.CKEDITOR.event.CKEDITOR.event.fire (ckeditor.js:12)

I don't really need to use CKEditor, but it is the only editor that I see the option to attach files to a post. So, I either need to get this fixed or figure out how to attach files using a different editor.

Sponsor

gizmodo
  • gizmodo
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
5 years ago
I figured out the issue with Resource.ashx. The site I integrated YAF into is an MVC site, so MVC routing was causing the issue. In RouteConfig.RegisterRoutes I added the following line:

routes.IgnoreRoute("forum/Resource.ashx");

I am still trying to figure out the lack of attachments and why CKEditor won't load.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
5 years ago
Regarding the attachments if you enable attachments for each forum you should see the little paperclip icon in the editor. That button allows you to add attachments. You can see it here in the forum.
gizmodo
  • gizmodo
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
5 years ago
I must be blind. I don't see that setting. Under Hosting I have set the max number of attachments 10. I don't see anything in the Image Attachment & Resize Settings that deals with enabling attachments.
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
5 years ago
Originally Posted by: gizmodo 

I must be blind. I don't see that setting. Under Hosting I have set the max number of attachments 10. I don't see anything in the Image Attachment & Resize Settings that deals with enabling attachments.

Its little bit more complicated!

You need to go to Admin > Users and Roles > Access Masks > Make sure that the Member Access Mask have the Upload Flag set. If you assign the Member Access Mask to the Member Role, for each Forum, then all users can upload and attach files.

gizmodo
  • gizmodo
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
5 years ago
Very nice! I have my paperclip! Thanks.
bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
5 years ago
I'm attempting to compile it for .NET Framework 4.6.1.

Some things like omu value injector are outdated and require a changed forum code - they simply don't fit into a new version.

Ingo, is it possible to update outdated libraries?

It's very difficult to fit in when you have it integrated into something, and the something works with 4.6.1 only by a reason.

Another question to Ingo: when a new release that runs with .NET Framework 4.6.1 or 4.6.2 is being planned. How many months?