Skip to content
vzrus edited this page Sep 13, 2011 · 11 revisions

To use this you should compile MP solution with extra projects added.

1.Prepare YAF source code.

1.1. Getting YAF source code.

YetAnotherForum.NET - is your future distribution folder.

If your use a codeplex version: Mercurial Clone URL: https://hg01.codeplex.com/yafnet

In distribution source code like YAF-v1.9.6-BETA1-SRC http://yafnet.codeplex.com/releases/72897/download/278004

1.2. What to replace in YAF.

In folder FilesToReplaceInYAFFiles there are files which you should replace in YAF source code. The folder YAF.Providers contains profile provider code tweaks and /YAF/install/mssql/providers contains sql scripts for it. You can use your custom profile provider - but it should not be bound to Membership provider or bound to MojoPortal Membership only. In this case you don't need the files.

Now can compile and install it and make sure that it works with a test standalone installation.

2.Merging it.

After you compiled YAF and are sure that everything works.

3. Renamings and relocations.

The folder YetAnotherForum.NET should be renamed to 'YAF' by module config default settings.

Later you can change the folder name in .config. Put the new 'YAF' folder into MP 'Web' folder. Don't add it to MP solution!


  • YAF solution http://i28.fastpic.ru/big/2011/0912/08/0eacf888ad3a151fbcba0e140d022808.png

  • Renamed folder in YAF solution http://i27.fastpic.ru/big/2011/0912/17/0ad61b0039c113b95e7b9aff7ca15617.png

  • Relocated folder in MP solution http://i31.fastpic.ru/big/2011/0912/c0/fb316aa85ee431102b441f20667e76c0.png

Ready.

4. Put YAF-and-MojoPortal-Add-Ons folder into MP main solution folder.

http://i31.fastpic.ru/big/2011/0913/10/9f929426caf6777531f3b938199a0c10.png

Warning! Dont include YAF folder into MP solution.

5. Merge configs

http://i28.fastpic.ru/big/2011/0913/71/7295e80e7b9bd7ecbd1d82219abad971.png

  • look for example working config in the folder (Web.sample.config). Just replace you connection strings. For further details go to MP site. Fix merged web.config Set this value in web.config
    It will be required to enter while you install YAF. Change connection strings (1 for YAF and the second for MP) Don't use user.config in the folder - it's for reference only.

6.Remove unneeded files.

Remove old YAF Web.config, db.config and app.config from the folder. Move all assemblies from bin folder to MP bin folder and remove YAF bin folder and other things to not publish unused files.

7. Add projects to MP solution.

Add new projects to MP solution and fix assemblies references of your projects in MP solution - they should point to assemblies in MP bin folder. Compile it.

8. Before install and module install.

YAF stores passwords encripted - make it for MP admin too before install just in case.

9. Now you can simply add the module to MP as usual module, when you first time go to module setting it'll redirect you to YAF install page. You should install YAF.

*Be careful with Admin name which you shoud enter while installing. You should remember you MP host admin email which should be an existing MP admin name. Use existing user name when required. Like admin@admin.com, don't create a new admin user. After install you login under the name in MP again. Now you're YAF host admin.

10. Post install actions.

Click on Host on the upper panel. Check Enable Display Name: on Features tab.

11. In the left accordian menu find User and Role -> Roles setting. Assign required privileges.

12. Ready.

Warning!

Don't put 2 YAF modules on a page. It's useless. Don't use 2 modules and many YAF boards so far - it's not tested well so far.