We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15159
    • 93 Posts
    OK, maybe I am just tired tonight. And last night. And the night before that. But, I can not get UserComments to display in any readable form. I have tried CSS class divs. I have tried tables. Putting it in the template putting it in a custom TV putting it in a chunk. Sigh It keeps doing this... http://www.myndscapes.com/apr9.html That is to say the comment and the subject all float about willy nilly. I have followed the documentation to the letter.(Ithink) And to top it all off if you add a comment (go ahead) all the comments layer on top of one another and the subjects stack.


    *SOB*

    I know the css is messy and the html is odd. But what other than that is wrong with me?

    <url>http://www.myndscapes.com/apr13.html</url>
    • Very odd. You can see a quick install of just the usercomments snippet in action here.

      http://www.sottwell.com/php/

      The snippet call:
      [!UserComments? 
        &displaytpl=`CommentDisplay` 
        &formtpl=`CommentForm` 
        &postcss=`uc_post` 
        &titlecss=`uc_title` 
        &codecss=`uc_code` 
        &numbercss=`uc_number` 
        &altrowcss=`uc_altrow` 
        &authorcss=`uc_author` 
        &ownercss=`uc_owner` 
        &notify=`[email protected]`!]

      The display template:
      [+UID:[+uid+]+]<div[+postclass+]>
      <div[+numberclass+]>
      [+postnumber+]
      </div>
      <div[+titleclass+]>
      <strong>[+subject+]</strong><br />
      <span>By [+commentname+] On [+createdon+]</span>
      </div>
      <div class="uc_content">
      [+comment+]
      </div>
      </div>
      

      The relevant CSS:
      /***** Comments *****/
      .uc_form{
      border-top:2px solid #666699;
      margin-top:2em;
      }
      #commentform fieldset{
      border:1px solid #c0c0c0;
      background-color:#fafbfc;
      color:#505050;
      padding:10px;
      }
      .uc_post{
      margin-top:1em;
      }
      .uc_title{
      }
      .uc_code{
      }
      .uc_number{
      background:#e8eaec;
      color:#666699;
      text-align:right;
      padding-right:5px;
      }
      .uc_content{
      margin-top:1em;
      }
      .uc_altrow{
      }
      .uc_author{
      }
      .uc_owner{
      }

        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 28853
        • 34 Posts
        I see that you have more fields on the comment form, like Name and email and such. How can i get that? I only get the standard Subject & Comment, when usnig the code above. I guess i need the `CommentForm` chunk? Anything else?
          • 33337
          • 3,975 Posts
          Zaigham (aka zi) Reply #4, 18 years ago
          Please read http://modxcms.com/usercomments.html

          Thanks

          zi
            Zaigham R - MODX Professional | Skype | Email | Twitter

            Digging the interwebs for #MODX gems and bringing it to you. modx.link