Zero2Cool
2012-07-02T15:45:36Z
My little project of making a ASP.NET website with YAF linked forums was going smooth, until I got to the part of making YAF a child page of the site.

If you go to this link  you'll see a header with the links below.

Home - Forum - GameDay Chat - Latest News - Links

All of them work as desired, except Forum. The Forum link (YAF Default.aspx renamed to Forum.aspx) breaks out into it's own parent page rather than being a child page like, GameDay Chat - Latest News - Links.

I tried adding Site.Master to Forum.aspx and that failed because Forum.aspx is not a content page.




My goal here is to have my own Header/Footer throughout the site, as well as my own custom pages that I'll develop as needed/wanted.

Sponsor
tha_watcha
2012-07-02T16:36:38Z
Take a look at my asp.net sample app that has yaf included as a control, or did you already used that?

http://forum.yetanotherf...lkthrough.aspx#post51411 

That should give you a good starting point.
UserPostedImage
Zero2Cool
2012-07-02T17:44:06Z
This looks to be exactly what I'm aiming to develop.

I'm uploading the bin (DLL's only), forum, and Styles directories as well as the ASPX pages right now.


Edit, okay it's working as desired. I tried it out before all the files were uploaded and it still worked. I'm thinking all I may have needed was the Forum.aspx from your sample?


Also, what would be required to update this to the latest version (when released)? Same process as if it were in the root, but simply put the files in /forum instead and put the DLL's in /bin?
tha_watcha
2012-07-02T23:09:30Z
Originally Posted by: Zero2Cool 


Edit, okay it's working as desired. I tried it out before all the files were uploaded and it still worked. I'm thinking all I may have needed was the Forum.aspx from your sample?



Yes and also the app.config

<add key="YAF.BaseScriptFile" value="forum.aspx" />
  <add key="YAF.ForceScriptName" value="forum.aspx" />


Originally Posted by: Zero2Cool 


Also, what would be required to update this to the latest version (when released)? Same process as if it were in the root, but simply put the files in /forum instead and put the DLL's in /bin?



Correct its the same process.


UserPostedImage
Zero2Cool
2012-07-03T13:35:52Z
Functionality wise, I have everything done. Now I'm working on some CSS issue stuff. Thanks a lot, I really appreciate it.

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