The usercontrol:
<%@ Control Language="C#" ClassName="WebUserControl1" %><%@ Register TagPrefix="yaf" Namespace="yaf" Assembly="yaf" %><%@ Register TagPrefix="yc" Namespace="yaf.controls" Assembly="yaf" %>
But this error comes when inserting the macro:
Error creating usercontrol (/usercontrols/forum.ascx)
The server tag 'YAF:forum' is ambiguous. Please modify the associated registration that is causing ambiguity and pick a new tag prefix.
at System.Web.UI.TemplateParser.ProcessException(Exception ex)
at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)
at System.Web.UI.TemplateParser.ParseInternal()
at System.Web.UI.TemplateParser.Parse()
at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)
at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)
at umbraco.macro.loadUserControl(String fileName, Hashtable attributes, page umbPage)
Ouch, nope, my bad. It's a v4 thing only as it relies on the umbraco membership provider stuff...
Doh! Forget about the last reply then... I'm not sure but think adam perry has also done some work on that... Now to know what site that was... http://www.createsoft.co.uk/blog/ Damn, it's also a v4 thingy. Out of ideas now!
So my usercontrol seems to work okay. But when I press on a link the forum goes out of the Umbraco solutons and has no design around.
The URL is not the same. I've tried to work around with the web.config but no luck. The only thing that hapens is "The page cannot be found".
Do I need another usercontrol that tells the forum to stay in umbraco solution? And so how sholud that be?
So my usercontrol seems to work okay. But when I press on a link the forum goes out of the Umbraco solutons and has no design around.
The URL is not the same. I've tried to work around with the web.config but no luck. The only thing that hapens is "The page cannot be found".
Do I need another usercontrol that tells the forum to stay in umbraco solution? And so how sholud that be?
pth[/quote]
Hey pth,
Maybe code snippet 8 in my post can help you. This rewrite's the urls that are generated by YAF.
I've used your post "Dave on Umbraco " but now I get this error:
Page not found
No umbraco document matches the url 'http://xxx/default.aspx?umbPage=/intranet/default.aspx&g=topics&f=2'
umbraco tried this to match it using this xpath query'/root/node/node [@urlName = "intranet"]/node [@urlName = "default"] | /root/node [@urlName = "default"]')
Integrate YAF forum in Umbraco
Hi all,
I'm trying to get YAF to work in my Umbraco installation. but wihtno luck so far.
YAF.dll is in the bin directory
I've used the usercontrol that Skiltz use: http://skiltzonnet.blogspot.com/2008/02/integrating-yetanotherforumnet-into.html
The usercontrol:
<%@ Control Language="C#" ClassName="WebUserControl1" %><%@ Register TagPrefix="yaf" Namespace="yaf" Assembly="yaf" %><%@ Register TagPrefix="yc" Namespace="yaf.controls" Assembly="yaf" %>
But this error comes when inserting the macro:
Error creating usercontrol (/usercontrols/forum.ascx)
The server tag 'YAF:forum' is ambiguous. Please modify the associated registration that is causing ambiguity and pick a new tag prefix.
at System.Web.UI.TemplateParser.ProcessException(Exception ex)
at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)
at System.Web.UI.TemplateParser.ParseInternal()
at System.Web.UI.TemplateParser.Parse()
at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)
at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)
at umbraco.macro.loadUserControl(String fileName, Hashtable attributes, page umbPage)
Anybody knows what to do?
Best regards
pth.
Hi,
dawoe has done a detailed tut on how to get yaf running with umbraco. Have a look at http://dawoe.blogspot.com/2009/02/intergrate-yet-another-forum-193rc2.html
Cheers,
/Dirk
Hi Dirk,
Can that be used in Umbraco vers. 3.0.6?
Pth
Ouch, nope, my bad. It's a v4 thing only as it relies on the umbraco membership provider stuff...
Doh! Forget about the last reply then... I'm not sure but think adam perry has also done some work on that... Now to know what site that was... http://www.createsoft.co.uk/blog/ Damn, it's also a v4 thingy. Out of ideas now!
/Dirk
I got it to work.
My usercontrols looks like this:
<%@ Control Language="C#" ClassName="WebUserControl1" %>
<%@ Register TagPrefix="yaf" Namespace="yaf.controls" Assembly="yaf.controls" %>
pth
Hi,
So my usercontrol seems to work okay. But when I press on a link the forum goes out of the Umbraco solutons and has no design around.
The URL is not the same. I've tried to work around with the web.config but no luck. The only thing that hapens is "The page cannot be found".
Do I need another usercontrol that tells the forum to stay in umbraco solution? And so how sholud that be?
pth
[quote=pth]Hi,
So my usercontrol seems to work okay. But when I press on a link the forum goes out of the Umbraco solutons and has no design around.
The URL is not the same. I've tried to work around with the web.config but no luck. The only thing that hapens is "The page cannot be found".
Do I need another usercontrol that tells the forum to stay in umbraco solution? And so how sholud that be?
pth[/quote]
Hey pth,
Maybe code snippet 8 in my post can help you. This rewrite's the urls that are generated by YAF.
Hi dawoe,
I've used your post "Dave on Umbraco " but now I get this error:
Page not found
No umbraco document matches the url 'http://xxx/default.aspx?umbPage=/intranet/default.aspx&g=topics&f=2'
umbraco tried this to match it using this xpath query'/root/node/node [@urlName = "intranet"]/node [@urlName = "default"] | /root/node [@urlName = "default"]')
Any idea?
pth
is working on a reply...