Lyften Bloggie - Delete option for leaving comments - Forums

Items per page:

Showing 1-2 of 2 items

I would like to set up my blog so that there is not an option to leave comments. I disabled the comment system in the Settings, but there is still a "Leave a Comment" statement under each post on the Blog page. How do I delete the "Leave a Comment" statement on the blog page itself?

In the actual entries themselves, I set the "Entry Settings" to "Disallow" for comments, but all that does is change the "Leave a Comment" statement on the blog page to "Comment Closed". I would like for there to be no statement whatsoever about comments on the blog page.

Many thanks.

Joe


So I think I found a solution for deleting in its entirety any mention of comments in the blog.

This description relates to the default theme, although it may have relevance for other themes as well.

The default theme is found in components/com_lyftenbloggie/addons/themes/default/. Two of the files in this default directory are entry.php and entries.php. Towards the end of the entry.php file, you will see the following code:

 <div class="entry-options">
  <?php if($this->entryData->allowComments) : ?>
   <a href="#comment"><?php echo JText::_('LEAVE A COMMENT'); ?></a> &#149;
  <?php endif; ?>

  <?php if($this->entryData->trackback) : ?>
  <a href="/<?php echo $this->entryData->trackback; ?>" class="trackback-link"><?php echo JText::_('TRACKBACK'); ?></a>
  <?php endif; ?>
   
  <?php if($this->entryData->editable) : ?>
   &#149; <a href="/<?php echo JRoute::_( 'index.php?view=entry&task=edit'.$this->entryData->archive.'&id='. $this->entryData->slug ); ?>" class=""><?php echo JText::_('EDIT FRONTENT'); ?></a>
  <?php endif; ?>
 </div>

Delete this code.

In entries.php, you will see the following code towards the end:

   <?php $comText = ($entry->allowComments) ? JText::_('LEAVE A COMMENT') : JText::_('COMMENT CLOSED');
    if ($this->params->get('typeComments', '1') == '1') {
     $comtit = ($entry->comcount)?'Comments('.$entry->comcount.')':$comText;
    }else{
     $comtit = $comText;
    }
    $jump  = ($entry->allowComments) ? '#comment' : '';
    echo '<a href="'.JRoute::_( 'index.php?view=entry'.$entry->archive.'&id='. $entry->slug ).$jump.'">'.$comtit.'</a> &#149; ';
   ?>
   <?php if($entry->trackback) : ?>
   <a href="/<?php echo $entry->trackback; ?>" class="trackback-link"><?php echo JText::_('TRACKBACK'); ?></a>
   <?php endif; ?>
   
   <?php if($entry->editable) : ?>
    &#149; <a href="/<?php echo JRoute::_( 'index.php?view=entry&task=edit'.$entry->archive.'&id='. $entry->slug ); ?>" class=""><?php echo JText::_('EDIT FRONTENT'); ?></a>
   <?php endif; ?>

Delete this code.

As always, save a copy of the original file (rename it) so that you can revert back to it if you run into any problems.

This provides a bit of a hack to solve the problem of getting rid of any reference to comments, etc.

Joe

[Joe 02 Mar 2010 06:49:14]

I would like to set up my blog so that there is not an option to leave comments. I disabled the comment system in the Settings, but there is still a "Leave a Comment" statement under each post on the Blog page. How do I delete the "Leave a Comment" statement on the blog page itself?

In the actual entries themselves, I set the "Entry Settings" to "Disallow" for comments, but all that does is change the "Leave a Comment" statement on the blog page to "Comment Closed". I would like for there to be no statement whatsoever about comments on the blog page.

Many thanks.

Joe

Items per page:

Showing 1-2 of 2 items