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>
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>
Have you try to run UComment and Blog4Umbraco. When I install UComment, the comment from for the blog doesn't run. It generates a xslt exception. If I debug I get the message at the bottom of this post. It says that it is not clear if AjaxCommentForm is being used by UComment.DLL or UMlaut.Umb.Blog.DLL.
So I think the problem might be method="CreateComment" and method="GetGravatarImage"
Error creating usercontrol (/usercontrols/Blog4Umbraco/AjaxCommentForm.ascx) El
tipo 'Umlaut.Umb.Blog.usercontrols.AjaxCommentForm' es ambiguo: podría
proceder del ensamblado 'c:\inetpub\wwwroot\bin\UComment.DLL' o del
ensamblado 'c:\inetpub\wwwroot\bin\Umlaut.Umb.Blog.DLL'. Especifique el
ensamblado explícitamente en el nombre de tipo. en System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) en System.Web.UI.TemplateParser.ParseReader(StreamReader reader, VirtualPath virtualPath) en System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) en System.Web.UI.TemplateParser.ParseInternal() en System.Web.UI.TemplateParser.Parse() en System.Web.UI.TemplateParser.Parse(ICollection referencedAssemblies, VirtualPath virtualPath) en System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() en System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) en System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() en System.Web.Compilation.BuildProvidersCompiler.PerformBuild() en System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
en
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath
virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean
allowBuildInPrecompile) en
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext
context, VirtualPath virtualPath, Boolean noBuild, Boolean
allowCrossApp, Boolean allowBuildInPrecompile) en
System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext
context, VirtualPath virtualPath, Boolean noBuild, Boolean
allowCrossApp, Boolean allowBuildInPrecompile) en System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) en System.Web.UI.TemplateControl.LoadControl(String virtualPath)
en umbraco.macro.loadUserControl(String fileName, Hashtable
attributes, Hashtable pageElements) en
d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\presentation\macro.cs:línea
1134
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
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
Hi!
Have you try to run UComment and Blog4Umbraco. When I install UComment, the comment from for the blog doesn't run. It generates a xslt exception. If I debug I get the message at the bottom of this post. It says that it is not clear if AjaxCommentForm is being used by UComment.DLL or UMlaut.Umb.Blog.DLL.
In my xsltextensions.config file I have this:
<ext assembly="\bin\Umlaut.Umb.Blog" type="Umlaut.Umb.Blog.BlogLibrary" alias="BlogLibrary">
</ext>
<ext assembly="\bin\UComment" type="UComment.XSLTLibrary" alias="UCommentLibrary">
</ext>
And in my restextension.config I have:
<ext assembly="/bin/Umlaut.Umb.Blog" type="Umlaut.Umb.Blog.Library.Base" alias="Blog4Umbraco">
<permission method="CreateComment" returnXml="false" allowAll="true" />
<permission method="GetGravatarImage" returnXml="false" allowAll="true" />
</ext>
<ext assembly="/bin/UComment" type="UComment.Library.Base" alias="UComment">
<permission method="CreateComment" returnXml="false" allowAll="true" />
<permission method="GetGravatarImage" returnXml="false" allowAll="true" />
So I think the problem might be method="CreateComment" and method="GetGravatarImage"
Error creating usercontrol (/usercontrols/Blog4Umbraco/AjaxCommentForm.ascx)
El tipo 'Umlaut.Umb.Blog.usercontrols.AjaxCommentForm' es ambiguo: podría proceder del ensamblado 'c:\inetpub\wwwroot\bin\UComment.DLL' o del ensamblado 'c:\inetpub\wwwroot\bin\Umlaut.Umb.Blog.DLL'. Especifique el ensamblado explícitamente en el nombre de tipo.
en System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
en System.Web.UI.TemplateParser.ParseReader(StreamReader reader, VirtualPath virtualPath)
en System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)
en System.Web.UI.TemplateParser.ParseInternal()
en System.Web.UI.TemplateParser.Parse()
en System.Web.UI.TemplateParser.Parse(ICollection referencedAssemblies, VirtualPath virtualPath)
en System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
en System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)
en System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
en System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
en System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
en System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
en System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
en System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
en System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)
en System.Web.UI.TemplateControl.LoadControl(String virtualPath)
en umbraco.macro.loadUserControl(String fileName, Hashtable attributes, Hashtable pageElements) en d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\presentation\macro.cs:línea 1134
Any Ideas?
Thanks!
is working on a reply...
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.