Copied to clipboard

Flag this post as spam?

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


  • syn-rg 282 posts 425 karma points
    Mar 31, 2010 @ 05:37
    syn-rg
    0

    Nothing is happening

    I've installed the package, added the scripts, included the macros on the template. But when I go to test it on my site, nothing happens.

    It doesn't display the comment, it doesn't display the "Your comment is being submitted, please wait" or the "Your comment has been posted, thank you very much" text. None of the comments are being saved in the "Content".

    Any suggestions?

  • Daniel Horn 319 posts 344 karma points
    Mar 31, 2010 @ 11:31
    Daniel Horn
    0

    Hi JV,

    Had the same problem, you have to put the macro's in a form. 

    So in your template it would look similar to this:

    <form id="Comments" runat="server">

    <h2>Write a comment:</h2>

    <umbraco:Macro Alias="UCommentListComments" runat="server"></umbraco:Macro>

    <umbraco:Macro Alias="UCommentForm" runat="server"></umbraco:Macro>

    </form>

  • syn-rg 282 posts 425 karma points
    Apr 01, 2010 @ 02:27
    syn-rg
    0

    Unfortunately my template already has a form tag on it:

    <form id="BoostMasterForm" runat="server">

    Which of course causes the the page to fail.

    Is there any way I can get the two forms to work together?

  • Neil Campbell 58 posts 182 karma points
    Apr 01, 2010 @ 04:14
    Neil Campbell
    0

    There is no way of having two server forms on a page. It's a part of the .NET web forms framework.

    You will need to rearrange your templates to just have one server form and encapsulate both macro's within that server form.

    Cheers,
    Neil

     

     

  • syn-rg 282 posts 425 karma points
    Apr 01, 2010 @ 04:22
    syn-rg
    0

    Hi Neil

    How would I encapsulate both macro's within the BoostMasterForm?

  • Neil Campbell 58 posts 182 karma points
    Apr 01, 2010 @ 04:40
    Neil Campbell
    0

    Similar to how Daniel said in the post above.
    I really depends on how your templates are setup and where you are calling the macro's in the template or master template.

    Cheers,
    Neil

  • syn-rg 282 posts 425 karma points
    Apr 01, 2010 @ 05:29
    syn-rg
    0

    Ok, I've got my Master template set out as such:

    <%@  Master Language="C#" MasterPageFile="/masterpages/Master.master" AutoEventWireup="true" %>
    <asp:Content ID="MyHeaderContent" ContentPlaceHolderID="HeaderContent" runat="server">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"[]>
    <!-- Stylesheets -->
    <link rel="stylesheet" type="text/css" href="/css/quick_links.css" />
    <link rel="stylesheet" type="text/css" href="/css/ImagerySearch.css" />
    <script id="quickLinks" type="text/javascript" src="/scripts/jquery.brandhub.js"></script>
    <script id="prefill" type="text/javascript" src="/scripts/jquery.prefill.js"></script>

    <asp:ContentPlaceHolder Id="HeaderContent" runat="server">
    <!-- Insert default "BodyContent" markup here -->
    </asp:ContentPlaceHolder>
    </asp:Content>
    <asp:Content ID="MyBodyContent" ContentPlaceHolderID="BodyContent" runat="server">
    <form id="BoostMasterForm" runat="server">
    <div id="wrap">
    <div id="header">
    <div id="company_logo"><a href="/home.aspx"><img width="400" height="64" src="/images/common/blank.gif"></a></div>
    <div id="search"> <a href="/contact-us.aspx">Contact&nbsp;us</a>
    <div class="search_input">
    <input type="text" class="box" id="searcQuery" />
    <input name="searchbutton" class="button" value="Search" type="reset" onClick="location.href='/search.aspx?search=' + $('#searcQuery').attr('value')" />
    </div>
    <a href="/advanced-search.aspx">Advanced&nbsp;search</a> </div>
    <umbraco:macro alias="BrandHubMenu" runat="server"></umbraco:macro>
    </div>
    <div id="main" class="clearfix">
    <div id="main_container">
    <div id="lhs_panel_container">
    <asp:ContentPlaceHolder Id="LeftSide" runat="server">
    <!-- Insert default "LeftSide" markup here -->
    &nbsp;
    </asp:ContentPlaceHolder>
    </div>
    <div id="main_content_container">
    <asp:contentplaceholder id="BodyContent" runat="server">
    <!-- Insert default "BodyContent" markup here -->
    </asp:contentplaceholder>
    </div>
    <div id="rhs_panel_container">
    <div class="page_tools_container">
    <div id="page_tools">
    <div id="username">
    <div id="help"><a href="#"><img width="29" height="10" src="../images/common/blank.gif"></a></div>
    <umbraco:Macro WelcomeMessage="<p>Logged in as </p><h2>{0}</h2>" LogoutText="Sign Out" RememberMeText="" LoginText="" RedirectToOnLogin="" UsernameText="" PasswordText="" DisplayLoginLabels="0" FailureMessage="" ForgotPasswordUrl="" ForgotPasswordText="" InvalidLoginText="" AccountExpiredText="" Alias="BrandhubLogin" runat="server" DisplaySignOut="0"></umbraco:Macro>
    </div>
    <div class="page_tools_menuheader"> <a href="#">My quick links</a> </div>
    <div class="page_tools_submenu">
    <umbraco:macro alias="MemberQuickLinks" runat="server"></umbraco:macro>
    </div>
    <div class="page_tools_menuheader"> <a href="#">Print this page</a><div id="print_header"></div> </div>
    <div class="page_tools_submenu">
    <umbraco:macro alias="PrintThisPage" runat="server"></umbraco:macro>
    </div>
    <div class="page_tools_menuheader emailThisPage" id="emailThisPage"> <a href="#" id="emailThisPageA" >Email this page</a><div id="email_header"></div> </div>
    <div class="page_tools_submenu">
    <umbraco:Macro Alias="EmailThisPage" runat="server"></umbraco:Macro>
    </div>
    <div id="logout">
    <umbraco:Macro WelcomeMessage=" " LogoutText="Logout" RememberMeText="" LoginText="" RedirectToOnLogin="" UsernameText="" PasswordText="" DisplayLoginLabels="0" FailureMessage="" ForgotPasswordUrl="" ForgotPasswordText="" InvalidLoginText="" AccountExpiredText="" Alias="BrandhubLogin" runat="server" DisplaySignOut="1"></umbraco:Macro>
    </div>
    </div>
    </div>
    <asp:ContentPlaceHolder Id="BelowPageTools" runat="server">
    <!-- Insert default "BelowPageTools" markup here -->
    </asp:ContentPlaceHolder>
    </div>
    </div>
    </div>
    </div>
    </form>
    </asp:Content>

    And my sub template that I'm inserting the macro's into set up as such:

    <%@  Master Language="C#" MasterPageFile="/masterpages/MembersMaster.master" AutoEventWireup="true" %>
    <asp:Content ID="MyHeaderContentPage" ContentPlaceHolderID="HeaderContent" runat="server">

    <asp:ContentPlaceHolder Id="HeaderContent" runat="server">
    <!-- Insert default "HeaderContent" markup here -->
    </asp:ContentPlaceHolder>

    </asp:Content>

    <asp:Content ID="sideMenu" ContentPlaceHolderID="LeftSide" runat="server">
    <umbraco:Macro Alias="SideMenu" runat="server"></umbraco:Macro>
    </asp:Content>

    <asp:Content ID="MyBodyContentPage" ContentPlaceHolderID="BodyContent" runat="server">
    <umbraco:Item ID="Item2" runat="server" Field="page_title" />
    <umbraco:Item ID="Item3" runat="server" Field="one_column" />

    <div headerindex="2h" id="comments" class="download_container_menuheader">
    <h5><a href="#">Share feedback</a></h5>
    </div>
    <div contentindex="2c" id="comments" class="download_container_submenu">
    <form method="post" action="">
    <umbraco:Macro Alias="UCommentListComments" runat="server"></umbraco:Macro>
    <umbraco:Macro Alias="UCommentForm" runat="server"></umbraco:Macro>
    </form>
    </div>

    </asp:Content>
  • Neil Campbell 58 posts 182 karma points
    Apr 01, 2010 @ 05:43
    Neil Campbell
    0

    Cool, thats exactly what i needed :)

    So your server form (<form id="BoostMasterForm" runat="server">) wraps around placeholder for your sub template, which means all the items in your sub template will be encapsulated in the server form.

    In your sub page you have a non-server form (it doe not have runat="server" attribute), so what you need to do is just removed <form method="post" action=""> from the sub page, and see if that works?

    Cheers,
    Neil

     

  • syn-rg 282 posts 425 karma points
    Apr 01, 2010 @ 05:50
    syn-rg
    0

    Thanks Neil,

    That didn't work. I'm still not getting any comments displaying on the page or saving to the Content area.

  • Neil Campbell 58 posts 182 karma points
    Apr 01, 2010 @ 06:04
    Neil Campbell
    0

    It could be something to do with the UComments configuration. I have never used UComment, so I don't know much about the settings.

    Just to double check you did remove the </form> tag from the sub page as well?

    Cheers,
    Neil

  • syn-rg 282 posts 425 karma points
    Apr 01, 2010 @ 06:10
    syn-rg
    0

    Yeah I removed the </form> tag.

  • syn-rg 282 posts 425 karma points
    Apr 06, 2010 @ 08:29
    syn-rg
    0

    Got it working now! Another script was knocking it out.

    Cheers,

    JV

  • Tomasz Morawski 10 posts 50 karma points
    Dec 21, 2012 @ 12:55
    Tomasz Morawski
    0

    Hey JV,

    would You be so nice and share the solution ? Am encountering just the same problem. What did U do to solve it ? Maybe U still remember: ) ?

    thx !
    Tom

  • rich hamilton 117 posts 136 karma points
    Jan 09, 2013 @ 13:36
    rich hamilton
    0

     

    Do do not need another form, ust add RegisterScripts="1" as below:

     

    <!-<!--comments-->
                              <umbraco:Macro Alias="UCommentListComments" runat="server"></umbraco:Macro>
    <h3>Leave Comment</h3>
                              
    <umbraco:Macro RegisterScripts="1" Alias="UCommentForm" runat="server"></umbraco:Macro>

  • 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