How to install and Integrate YET Another Forum to Your Website.

Dhiraj5079
Posted by in CMS category on for Advance level | Points: 150 | Views : 26289 red flag
Rating: 5 out of 5  
 1 vote(s)

If you are a website owner or webmaster and you do not have a forum attached to the website ,then believe me ,you are compromising with your website's interactivity quotient.A forum is something which hugely influences a website popularity from SEO perspective as well.If your website is developed in .NET Technology then one of the best option for you is Yet Another Forum (http://www.yetanotherforum.net), here onwards referred as YAF.
In this article I will be discussing how to install YAF to your production server and Integrate it seamlessly with your
existing website.

Target Audience :Webmasters,Web Project Managers and .NET Developers

Steps to install YAF on your server:


  1. Download YAF from http://www.yetanotherforum.net.   Note that current version available is YAF 1.9.4 and my article is based on this version. For future versions the installation and Integration instructions may change.
  2. Create a virtual directory in IIS pointing to  D:\YAF-v1.9.4-FINAL-SRC\YetAnotherForum.NET. Above is the assumed path where you have downloaded YAF. 
  3. SQL Server database is required for installing the YAF. SO keep SQL Server installed on the machine. Then Create an empty SQL Server  database for YAF named yafnet(say). 
  4. If Web.Config is not present in the forum root,copy one of the samples provided in the "webconfigs" folder into the root of   the web application and rename it to web.config. 
  5. Setup a valid connection string in db.config as per the format provided by YAF. 
  6. Configure the SMTP settings in mail.config as per your hosting environment and as per the format provided by YAF. 
  7. Then try to open http://localhost/YetAnotherForum.NET/install/Default.aspx    and install the forum as per instructions appearing on the installation wizard. It will create/update the forum database and create admin user. Note that all the passwords should have a special charector in it.
  8. After the installation the URL will come something like   http://localhost/yaf/default.aspx if the above page opens without any error that means your installation is complete. 
  9. Then you need to copy your installation folder to the root of your website. 
  10. Suppose you want the forum to appear on the Default.aspx Page, Then Merge the Default.aspx page from the forum with Default.aspx page from your website.Also you need the merge the web.config file from the forum    to web.config file of existing website. 
  11. Now run the default.aspx page of the website and forum should appear on the page.  

Conclusion


When you have completed all the above steps it is only 25% of game. The real game starts when you go for customizing the forum code to use it as per different requirements from your website. I have recently done YAF code customization for our company's website but that is specific to the website and differs widely from application to application. 

However, If you find any issue in code customization,feel free to drop a line to me.
You can find my contact Details by clicking my blog link below.
Page copy protected against web site content infringement by Copyscape

About the Author

Dhiraj5079
Full Name: Dhiraj Kumar
Member Level: Starter
Member Status: Member
Member Since: 3/10/2010 7:33:08 AM
Country: India

http://dhiraj5079.blogspot.com/
Dhiraj Kumar is a passionate .NET enthusiast and Microsoft Certified Technology Specialist. Currently working at What's on India,Mumbai , India.

Login to vote for this post.

Comments or Responses

Posted by: Bhanubysani on: 6/20/2011 | Points: 25
iam facing error in testing Mail (SMPT) Sending Test...plz provide changings in mail.config file......
Posted by: Yemulss on: 11/21/2011 | Points: 25
Hello,

We are developing a forum website in asp.net 2008 SP1 (.Net Framework 3.5 SP1) through yet

another forum (yaf) version 1.9.5.5. We want to customize the registration steps i.e. we

want to add an additional steps like given below steps:

1. Get User Information (fname,lname) etc.
2. Make online payment
3. Register with the Site

We were trying the customize the page "register.ascx" inside "pages" directory but we couldn't. We were also commented the whole code behind the register page but instead it works fine. We couldn't be able to code in debug mode. We are not getting any idea from were it is initiating.

Regards
sham yemul, www.Intellisoft.co.in

Login to post response

Comment using Facebook(Author doesn't get notification)