Skip to content

vzrus/YAF-and-MojoPortal-Add-Ons

Repository files navigation

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


1.Prepare YAF source code.

1.Compiling YAF.

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. 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.

The folder 'YetAnotherForum.NET' should be renamed to 'YAF' by default .config settings. Later you can change the folder name and location in .config.
After you compiled YAF and are sure that everything works.
 
2.1. Put the new 'YAF' folder into MP 'Web' folder. Don't add it to MP solution!

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

3. Merge configs - 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  
 <add key="YAF.ConfigPassword" value="yourpass" /> 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.

4.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.

5. 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.Fix an output bild path to ../../../Web/Bin for both projects. It'll put your assemblies to MP /Bin folder.


Compile it.

6. Before install and module install.

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

6.1. 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 should login under the name into your MP site again. Now you're YAF host admin.

7.Post install actions.

Click on Host on the upper panel. Check Enable Display Name: on Features tab.It's not required when you create a second board.

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

9. 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.

    

About

YAF - Mojoportal integration module code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published