This is a forum to suggest new features for mojoPortal.
Meanwhile, work for YAF and MojoPortal integration coming to a ready to publish stage.
This is published because of some inpatient users =) No real dead line but it would be presumably published already soon.
i17.fastpic.ru/big/2011/0312/ba/fea2ac68112b320b2685d00808d680ba.png
http://i17.fastpic.ru/big/2011/0312/cd/77e82c837b53b80d366a642d38f265cd.png
http://i17.fastpic.ru/big/2011/0312/cd/5d94b2a8840ecb0050d1e8acacd99fcd.png
http://i17.fastpic.ru/big/2011/0312/e4/067ebae4ab5502d4569299e929d970e4.png
http://i17.fastpic.ru/big/2011/0312/90/14e1dbd131dc4440be1ab3fb881ac190.png
http://i17.fastpic.ru/big/2011/0312/1c/d66aa4d111548b622685d12ada6d221c.png
Thanks for the update Bob.
I am anxious to try this. I installed YAF for several friend about 10 years ago. They all loved it. I can imagine it is 10 times better now.
Is really soon =
days, weeks or months?
Rick
Hi, Rick.
I can't say exactly, because it heavily depends on YAF current state too. Recent release required some integration files changes and even in the latest YAF release some unpleasant things were found.
But anyway a sort DIY kit and HOW-TO will be published until the end of the month,
if I don't encounter any horrible bugs. Currently I'm testing latest version on my site and I want that both communities get it as soon as possible. I'm tired to wait when it will be PA too.
It's not a piece of cake despite the fact it's rather easy at the first glance.
Best, bob.
Hi Bob
Wow... Looks like things are moving now.
I just joined your forum today. Very busy place!
If I can be of assistance in testing, LMK when you are ready!
Thanks so much for your efforts!
Oh, no, it works more then 3 months on my site with PostgreSQL. The problem is that YAF chnges too fast and new incompatabiliies resurging every time.
Currently there're some problems with profiles, some roles brutality, url rewriting. But it's usable. The code is derived from my code, but Mek worked with it a long time, so I can share my code only, as I don't want it to be a mistery and I think it will be beneficial for both communities. And it will boost compatability work. So I'll publish code snippets here and the code which was written by me only. And I don't have much time so I will publish it by portions.
Part2. How-to YAF.
You should compile YAF from source code and be sure that it works fine. All required files are in YetAnotherForum.NET folder wich should be put into MojoPortal solution Web/ folder and renamed to YAF for simplicity - it should correspond to the folder name in the configs above.
No need to add the folder to MP solution. Simply take all dlls from /YAF/bin folder and put them into MP /bin folder.
After you merge configs you should delete or move configs from the YAF folder and clean up the folder from unnecessary files.
After this you should add 2 projects to MP solution - a web application containing 2-3 controls(MP module controls) and a library where resides MojoUrlRewriter.
After compiling all the required files will be automatically moved to their locations in Mojo folders. But you should put the folder into mojoportal solution main folder. There can be problems with outdated links, but technically you can simply replace them by fresh ones which are now in MP /bin folder.
If mojoPortal version changes and setup will be launched the module will be hooked and installed. After you added module and changed its properties you'll be redirected to YAF installation page and you'll have a possibility to initialize YAF database in a traditional way.
Tips.
To get the projects structure which should be added to MojoPortal you can here. Keep in mind that it doesn't contain any C# code, but contains all project data for relocations and references. It'll simplify you integration a lot. Put unzipped folder to MP solution folder and add projects to MP solution. There are 2 projects - YAF.Mojo.dll and MojoPortal YAF Module.
To download it - enter code and push the green button.
http://narod.ru/disk/8467243001/YetAnotherForum.Mojo.Src.Skeleton.zip.html
Basic content of MojoPortalUrlBuilder.cs Technically it's all the required content of YAF.Mojo.dll
using System; using System.Web; using mojoPortal.Business; using mojoPortal.Business.WebHelpers; using YAF.Classes; using YAF.Core; using Intelligencia.UrlRewriter;
namespace YAF.Mojo { public class MojoPortalUrlBuilder : RewriteUrlBuilder { private static string _baseUrl = null;
public override string BuildUrl(string url) { string scriptName = ""; PageSettings currentPage = CacheHelper.GetCurrentPage(); scriptName = currentPage == null ? HttpContext.Current.Request.ServerVariables["SCRIPT_NAME"] : currentPage.Url.Replace("~/", "");
if (!Config.EnableURLRewriting) { scriptName = HttpContext.Current.Request.ServerVariables["SCRIPT_NAME"];
url = url.Replace("&", "&"); if (scriptName.Contains("install")) { return Config.AppRoot.Replace("~", "").Trim() + scriptName; }
return string.Format("{0}?pageid={1}&{2}", scriptName, currentPage.PageId, url); } else { } url = url.Replace("&", "&");
string pageid = HttpContext.Current.Request.QueryString["tabid"]; return scriptName.Replace(Config.AppRoot.Trim(), ""); }
} }
Thanks for all the information and updates Bob. Keep them coming.
I'm on a loosing battle to meet a month end deadline for my employer right now so won't get to try this for about a week.
I've published already all that's required. it's not a problem to write a MP-YAF control and it works. I think that if someone wants to integrate it but has no skills he can contact someone who has like Joe. I have no doubts that you can cope with the rest yourself.
Bob - thanks for all the work done on this!
I've managed to get YAF 1.9.5.5 RTW created as a module and 'integrated' into MojoPortal 2.6.3.2.
However. A lot of the links within YAF aren't working. Namely anything that kicks off a JavaScript postback, but most importantly links from topic to post. They all return an object reference not set to an instance of an object error: Here's an example link - Default.aspx?pageid=23&g=topics&f=1
Any thoughts?
I have to say YAF looks fantastic, and I'm hoping its something simple I've overlooked (quite possible as I'm new to this). Brilliant forum system though and fits wonderfully into MojoPortal.
r3fl3x
Hi,
I use YAF 1.9.5.6 from svn and MP 2.3.6.4. You should not encounter any problems with it. Really, I can't help with it as I don't encounter any problems with url rewriting. It has 2 YAF boards in 1 MP site and even in the case it works fine. I use it with Postgre as database but it doesn't matter.
I think you have problems with Forum.aspx.cs control.
There's a profile sync problem and you should enter display name by hand in YAF, but nothing more.
Really, I've posted exactly the code I use on my site. Try to move all entries from user.config to web.config.
Make sure that you've enabled it for YAF in Forum.ascx.cs control.
Page.EnableViewState = true;