ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Comments for a particular entry are not shown in my EE Cpanel

February 26, 2012 8:31am

Subscribe [1]
  • #1 / Feb 26, 2012 8:31am

    Ramya108

    123 posts

    Please help me.

    Comments for a particular weblog entry are not shown in my EE cpanel. But there are comments, many of them, and I need to moderate them.

    Comments for other entries are shown properly.

    Please see the attached image:

    image1 - zero comments in my EE Cpanel
    image2 - many comments on my website

  • #2 / Feb 27, 2012 1:27pm

    Dan Decker

    7338 posts

    Hi Ramya108,

    I’m sorry you are seeing inconsistencies between the template display and the Control Panel. Let’s get a crack at this and see what’s going on.

    If you click on the “View” link in the Control Panel, are a list of the comments displayed, despite the “0” being indicated?

    Can you post the template code here for the template where the comments are being displayed? It is likely that the template is pulling comments in from other entries/weblogs inadvertently.

    What version of ExpressionEngine 1.x are you using?

    Cheers,

  • #3 / Feb 27, 2012 6:03pm

    Ramya108

    123 posts

    Hi Ramya108,

    I’m sorry you are seeing inconsistencies between the template display and the Control Panel. Let’s get a crack at this and see what’s going on.

    If you click on the “View” link in the Control Panel, are a list of the comments displayed, despite the “0” being indicated?


    When I click “View”, there are no comments.

    Can you post the template code here for the template where the comments are being displayed? It is likely that the template is pulling comments in from other entries/weblogs inadvertently.

    Here it is:

    {if segment_3 ==""}
      {redirect="clanak/blog"}
    {/if}  
    
    
    {exp:weblog:entries weblog="clanak" require_entry="yes"  limit="1" disable="categories|member_data|pagination" track_views="one"}
    {embed="embeds/html_header" url_title="{segment_3}"}
    
    
    <body id="subpage" >
    [removed][removed]
    
    <div class="wrap_all">
        <div id="top">
    
       <div id="head"> 
           {embed="embeds/logo_title"}
            {embed="embeds/main_nav"}    
               </div><!-- end head-->
            
            <div id="main">
    
                 
          <div id="content" class="bg_sidebar">
               <div id="inner_content">
                <div class="entry">
    
    
    
    {if no_results}
    {redirect="clanak/blog"}
    {/if}    
    
    
     <h1>{title}</h1>
    <div class="entry-content">
    
    {body}   
    
      </div><!--end entry-content-->
    
     
    
    <div class="one">
    
    <h2>Povezani članci</h2>
    <p> <br />
    <ul><br />
    {playa}<br />
    <li><br />
    <a href ="{comment_url_title_auto_path}">{title}</a></li><br />
    {/playa}<br />
    </ul><br />
    </div></p>
    
    <p><br />
    {/exp:weblog:entries}</p>
    
    <p><br />
    {exp:comment:entries limit="300"}<br />
    {last_comment}<br />
    <div class="{switch="two|one"}"><br />
    <span class="comments"><i><font color="green">{url_as_author}</font></i></span><br />
    {comment}<br />
    </div><br />
    {/exp:comment:entries}</p>
    
    
    
    <h3>Dodaj komentar</h3>
    
    <p>{exp:comment:form}</p>
    
    <p>{if logged_out}</p>
    
    <p><input type="text" name="name" value="{name}" size="25" /> Ime<br />
    <input type="text" name="email" value="{email}" size="25" /> E-mail<br />
    <input type="text" name="url" value="{url}" size="25" /> Vaša web stranica<br />
    {/if}</p>
    
    <p><textarea name="comment" cols="50" rows="10">{comment}</textarea> <a path='site/smilies' class="more-link">Smajlići</a></p>
    
    <p><input type="checkbox" name="save_info" value="yes" {save_info} checked> Zapamti me!<br />
    <input type="checkbox" name="notify_me" value="yes" {notify_me} checked> Primaj obavijesti o novim komentarima na e-mail</p>
    
    <p><br />
    {if captcha}<br />
                    <label for="captcha">Upišite slova i brojke koje vidite na slici:</label></p>
    
    <p>                {captcha}</p>
    
    <p>                <input type="text" name="captcha" value="{captcha_word}" maxlength="20" /></p><br />
            {/if}</p>
    
    <p><input type="submit" name="submit" value="Pošalji" /></p>
    
    <p><br />
    {/exp:comment:form}<br />
       <br />
       </div><!--end entry--><br />
       <br />
      <br />
     <br />
               </div><!-- end inner_content--></p>
    
    <p>           <br />
               {embed="embeds/sidebar1"}<br />
                    <br />
                <br />
              <br />
              </div><!-- end content-->   <br />
                  <br />
      </div><!--end main--><br />
            <br />
            <br />
    {embed="embeds/footer"}</p>
    
    <p>        <br />
        </div><!--end top--><br />
    </div><!--end wrapp_all--></p>
    
    <p> </p>
    
    <p><br />
    </body></p>
    
    <p></html>

    What version of ExpressionEngine 1.x are you using?

    I use v 1.6.8

  • #4 / Feb 28, 2012 11:29am

    Ramya108

    123 posts

    Ok, I figured out what caused the problem.

    I have a different weblog entry, in a different template group, but under the same url title.

    All of the comments that were supposed to be shown under the first entry, were showing under that second entry in my cpanel.

    Weird. Any fix for this bug?

  • #5 / Feb 28, 2012 5:03pm

    Dan Decker

    7338 posts

    Hi Ramya108

    Any fix for this bug?

    It’s not a bug, as having matching url_titles in separate channels. The best way to avoid this is to use the {entry_id} variable rather than the url_title.

    I’m glad you were able to sort out what was causing the issue!

    Cheers,

  • #6 / Feb 28, 2012 5:19pm

    Ramya108

    123 posts

    Thank you!

  • #7 / Feb 29, 2012 4:13pm

    Robin Sowell

    13255 posts

    Glad you and Dan got this one figured out!  Well- mostly you 😉.  If you specify the channel parameter so the tag is not pulling from two channels that have the same url_titles in them, you’ll also avoid the issue.  But yep- it’s either that or the entry_id so that EE knows which url_title to show.

    And iff you do run into any more issues, just let us know!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases