Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
HI there
I'm just adding Comments to a Blog and all is going well, except I only see comments for approval in the Admin when the comment was posted by a logged-in user.
If I log out and post a comment, the comment does not appear for approval.
But I do get the message that the comment has been successfully posted and is awaiting approval.
Any ideas what could be causing this?
Many thanks
Chris Gibson

Can you please share your comments code here.
Image
where innovation meets technology

Re:

genxcoders wrote: Can you please share your comments code here.

Certainly:
Code: Select all
<cms:if k_is_commentable >
   <div class="comment-form" >
      <h3>Post a comment</h3>

      <cms:form method="post" class="k_form">

         <cms:if k_success >
         
            <cms:process_comment />

            <cms:if k_process_comment_success>
               <cms:send_mail from=k_email_from to=k_email_to subject='Comment posted'>
                  The following comment has been posted at your site:
                  <cms:show k_success />
               </cms:send_mail>
                  
               <div class="k_successmessage">
                  <p>
                     Thank you for the feed back! <br>
                     Your comment awaits moderation and will be published as soon as reviewed by the Admin.
                  </p>
               </div>
            <cms:else />
               <div class="k_errormessage">
                  <p>
                     Could not post comment! <br>
                     The following error occured while processing your comment:<br>
                     <cms:show k_process_comment_error />
                  </p>
               </div>
            
            </cms:if>
            
         <cms:else />
         
            <cms:if k_error >
               <div class="k_errormessage">
                  <h2>Fields incomplete!</h2>
                  <ul>
                     <cms:each k_error >
                        <li><cms:show item /></li>
                     </cms:each>
                  </ul>
               </div>
            </cms:if>
            
            <cms:if k_logged_out >
               <p class="comment-input">
                  <cms:input type="text" name="k_author" size="22" tabindex="1" required="1"/>
                  <label for="author"><small>Name *</small></label>
               </p>

               <p class="comment-input">
                  <cms:input type="text" name="k_email" size="22" tabindex="2" validator="email" required="1"/>
                  <label for="email"><small>Email * (will not be published)</small></label>
               </p>

               <p class="comment-input">
                  <input type="text" name="k_link" value="http://" size="22" tabindex="3" />
                  <label for="link"><small>Website</small></label>
               </p>
            <cms:else />
               <p>
                  Logged in as <b><cms:show k_user_title /></b>.
                  <a href="<cms:show k_logout_link />" onclick="if( confirm('Are you sure you want to logout?') ) { return true; } return false;">Logout &raquo;</a>
               </p>
            </cms:if>
            
            <p class="comment-input">
               <cms:input type="textarea" name="k_comment" style="width:93%" rows="10" cols="10" tabindex="4"
                  validator_msg="required=Please enter something as comment"
                  required="1" />
               
               <br>
               <small>
               <cms:html_encode>
                  You can use the following HTML tags: <a><br><strong><b><em><i><blockquote><pre><code><ul><ol><li><del>
               </cms:html_encode>
               </small>
            </p>

            <cms:if k_logged_out >
               <p class="comment-input">
                  <label for="captcha"><small>Please enter this word in the textbox below</small></label><br>
                  <cms:input type="captcha" name="captcha" format='i-r-t' />
               </p>
            </cms:if>

            <cms:input type="submit" value="Submit" name="submit"/>

         </cms:if>
      </cms:form>
      
   </div>
</cms:if>
3 posts Page 1 of 1
cron