Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Palle Hansen 143 posts 396 karma points
    May 05, 2009 @ 19:02
    Palle Hansen
    0

    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.





  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    May 05, 2009 @ 20:03
    Dirk De Grave
    0

    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

  • Palle Hansen 143 posts 396 karma points
    May 05, 2009 @ 20:11
    Palle Hansen
    0

    Hi Dirk,

    Can that be used in Umbraco vers. 3.0.6?

    Pth

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    May 05, 2009 @ 21:39
    Dirk De Grave
    0

    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



  • Palle Hansen 143 posts 396 karma points
    May 06, 2009 @ 15:27
    Palle Hansen
    0

    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


  • Palle Hansen 143 posts 396 karma points
    May 19, 2009 @ 13:20
    Palle Hansen
    0

    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

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    May 19, 2009 @ 19:23
    Dave Woestenborghs
    0

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

  • Palle Hansen 143 posts 396 karma points
    May 28, 2009 @ 13:25
    Palle Hansen
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft