YAFLogo

SilhouetteBS
13 years ago
Does anyone know if the instructions in this wiki article are still accurate for YAF 1.9.4? Embedding YAF inside an existing asp.net site 
Sponsor

SilhouetteBS
13 years ago
Does anyone have any information on this for 1.9.4?
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
13 years ago
That Wiki entry is outdated and doesn't pertain to v1.9.4. What information are you looking for?

Just merge v1.9.4 web.config and use the membership provider you have -- if you don't have one, use YAF's. The only extra thing is the YAF.AppRoot -- which you may need to modify for YAF in the AppSettings. More information on that is in the app.config file.

SilhouetteBS
13 years ago
Originally Posted by: Jaben 

What information are you looking for?


The information I'm looking for is how to implement YAF into an existing asp.net site so that I can attach it to a master page so it will take on the look and feel of the rest of the website. Just like forum.yetanotherform.net does.
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
13 years ago
Originally Posted by: SilhouetteBS 

Originally Posted by: Jaben 

What information are you looking for?


The information I'm looking for is how to implement YAF into an existing asp.net site so that I can attach it to a master page so it will take on the look and feel of the rest of the website. Just like forum.yetanotherform.net does.


Sure. Since YAF is a standard (albeit, very advanced) user control, you can just stick it on any page. Inside a master page content area or not.

Take a look at this topic:

http://forum.yetanotherforum.net/yaf_postst4465_YAF-and-masterpages.aspx 

It includes a master page kit that I released a while ago that might help get you pointed in the right direction.

Also, do a search for "MasterPage" on this forum and you'll find a plethora of examples. πŸ‘
SilhouetteBS
13 years ago
Originally Posted by: Jaben 

That Wiki entry is outdated and doesn't pertain to v1.9.4.


If the Wiki is outdated, shouldn't it be updated or removed?
squirrel
13 years ago
Originally Posted by: SilhouetteBS 

Originally Posted by: Jaben 

That Wiki entry is outdated and doesn't pertain to v1.9.4.


If the Wiki is outdated, shouldn't it be updated or removed?



From what I understand, the Wiki is supported by the members as well as developers -- a project such as this, as large as it is, is hard to maintain all aspects. Such is why there are community based forums here to help answer questions and deal with support issues as needed.

Bear in mind this is a free product that is only supported by it's members and their generous donations. I am currently in the middle of migrating a Snitz Forum over to YAF and when we have finished testing of the scripts that were created by members of the forums, I will be updating a section in the Wiki to help others who are on the same path of conversion I am. We can all contribute - it's the least we can do when using a free, community supported application.

What could be done is a notation added to the Wiki that would make note of the topics and information Jaben posted above, which I will try to do once I have completed my last task I mentioned.
If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
guest
13 years ago
Cause the wiki is outdated. I need help integrating Yaf to basic existing Asp.Net website.

Good to know that I am new to Yaf.

I am at this point :

- Create my project in 3.5 Framework actually including only a master page, a default.aspx page, some css, images and javascript
- Before publishing, i put all Yaf files at ~/Yaf directory
- IIS settings, i put Yaf directory as an application
- Installed correctly, forum is working
- Now published my website in root directory
- Removed Yaf directory as application from IIS settings
- Removed web.config from root directory and replaced by the one in ~/Yaf directory
- Updated in app.config
- Got error when opening my default webpage (without forum):
Quote:


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: Impossible d'ouvrir le fichier configSource 'URLRewriter.config'.

Source Error:


Line 6:
Line 7:
Line 8:
Line 9:
Line 10:

Source File: C:\inetpub\wwwroot\web.config Line: 8



I suppose two web.config files have to be merged correctly but without any recent documentation about this, what's the way to do this ?

I tried too removing the line 8 and got more errors.

As you can see, i didn't tried already to integrate forum in my existing web page.

Thanks for help.
Kamyar
  • Kamyar
  • 100% (Exalted)
  • YAF Developer
13 years ago
To set up YAF in a subfolder, please take a look at this post  and this post .
If at first you don’t succeed, call it version 1.0
guest
13 years ago
I'm not trying to install Yaf in a subfolder, this working already.

I'm trying integrating it as a service on my existing aspx page with a master page.

http://forum.yetanotherforum.net/yaf_postst4465_YAF-and-masterpages.aspx 

return error :
Quote:

Compilation Error

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

Compiler Error Message: CS0246: The type or namespace name 'yaf' could not be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 1: <%@ Page Language="C#" MasterPageFile="~/YAFMaster.master" Title="My Title Here" %>
Line 2: <%@ Register TagPrefix="yaf" Namespace="yaf" Assembly="yaf" %>
Line 3: <%@ Register TagPrefix="yc" Namespace="yaf.controls" Assembly="yaf" %>
Line 4:

Source File: c:\inetpub\wwwroot\default_master.aspx Line: 2



I'm trying to make it work on my side, thanks for help anyway πŸ™‚
SilhouetteBS
13 years ago
Jaben - I noticed that you recently embedded YAF into the new YAF.net site. Did you by any chance write down instructions for doing this? If so, could you please update the documentation?
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
13 years ago
Originally Posted by: SilhouetteBS 

Jaben - I noticed that you recently embedded YAF into the new YAF.net site. Did you by any chance write down instructions for doing this? If so, could you please update the documentation?


Sorry, no -- my integration is slightly more complex than it might appear. I've been doing this for a while. :)

But I plan to make a simple integration guide here, very soon.
SilhouetteBS
13 years ago
Originally Posted by: Jaben 

But I plan to make a simple integration guide here, very soon.


I look forward to it!
midwestSS
13 years ago
im trying to do something semi similar
http://wiki.yetanotherforum.net/embeddedYaf.ashx 

and not sure if it will apply to me trying to do that with this site
http://www.musiknet.net/SilveradoSSForum/default.aspx 

that site is a sharepoint site., and while im not worried about point authentication at this time.. to be able to log in to that site would be nice
the page you see there doesnt let you log in.. but www.silveradoss.net does..
i edited the setup so that what the sharepoint page displays is YAF in a subforum, edited the app.config file for that
http://silveradoss.net/sharepoint/  is that page, and that works fine, when not trying to display it in a sharepoint web page.
http://silveradoss.net/sharepoint/ , it logs me off the main site www.silveradoss.net.. if i re log into the main site, it logs me off the sharepoint sub forum..
both the main site, and the sub forum site are using the same database for YAF
SilhouetteBS
13 years ago
Originally Posted by: Jaben 

But I plan to make a simple integration guide here, very soon.


Any word on when the simple integration guide will be available Jaben?
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
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