Copied to clipboard

Flag this post as spam?

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


  • eddy 43 posts 64 karma points
    Nov 10, 2010 @ 09:32
    eddy
    0

    UComment tips

     

    As a newbie I had to battle to get the Ucomment package working so I thought I would post my notes in case it helps any other newcomer.

    Eddy

     

    • UComments is only for .NET 4 and the source code is only available in the old schema. That means download, write new schema and package for .Net 3.5
    • UComment is extracted from Blog 4 Umbraco so check the forums for both
    • Add the following to the url to run the debug tool "?umbDebugShowTrace=true"


    Comments not showing up on dashboard

    In the config/dashboard.config the following should be entered (this adds comments to the admin dashboard):
     <section>
        <areas>
          <area>content</area>
        </areas>
        <tab caption="Comments">
          <control>/usercontrols/UComment/UCommentModeration.ascx</control>
        </tab>
      </section>
      <section>
        <areas>
          <area>content</area>
        </areas>
        <tab caption="Comments">
          <control>/usercontrols/UComment/UCommentModeration.ascx</control>
        </tab>
      </section>

    Check the Javascript

    <script type="text/javascript" src="/umbraco_client/ui/jquery.js"></script>

    <script type="text/javascript" src="/scripts/jquery.form.js"></script>

    <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.validate/1.5.5/jquery.validate.min.js"></script>


    The form is "dead"

    Are the input fields in a form tag?
    I don't know how Ucomment works, but the input fields for the comments are not within a <form> tag. Only the search field and button is within a search form. Could this be the problem?
    Do you have a form inside another form?



    XSLT throws an error

    Check the xsltextensions.config file. Their should be a ucomment entry:
    <ext assembly="\bin\UComment" type="UComment.XSLTLibrary" alias="UCommentLibrary"></ext>
    If this is incorrect then the page will throw an xslt error.

    Rest extensions config
    Check the rest extensions.config file. Their should be a ucomment entry:
    <ext assembly="/UComment" type="UComment.Library.Base" alias="UComment">
        <permission method="CreateComment" returnXml="false" allowAll="true" />
        <permission method="GetGravatarImage" returnXml="false" allowAll="true" />
      </ext>


    Comment not writing to the database

    Do you have the permissions to write to the DB?


    Useful Forum Posts


    http://our.umbraco.org/forum/developers/extending-umbraco/6992-Extending-Blog-4-Umbraco?p=0
    http://our.umbraco.org/forum/using/ui-questions/2512-Per-article-comments

    http://our.umbraco.org/forum/developers/extending-umbraco/13862-Blog4Umbraco-comments-will-not-save#

    http://our.umbraco.org/projects/backoffice-extensions/locator-package/help-using-the-locator/9701-Form-inside-a-form-problem


    Example Sites using UComment:

    http://www.sprogkernen.dk/nyheder/workshop-i-afholdt.aspx
    http://www.geckonewmedia.com/blog/2009/6/4/nested-(threaded)-comments-in-umbraco-with-doc2form-and-jquery

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies