Hi all,
is it possible to remove the "Re : " in recents replies module and also in main discussions ?
is it possible to remove the "Re : " in recents replies module and also in main discussions ?
<?php echo $post->title;?>
<?php echo str_replace('Re: ', '', $post->title); ?>
i applied this modification but i still have the "Re:" in the recent replies module !?
defined('_JEXEC') or die('Restricted access');
$avatarSize = $params->get( 'replies_avatar_size', '' );
$useAvatarResize = ( empty( $avatarSize ) ) ? '' : ' style="width: ' . $avatarSize . 'px;" ';
?>
<div class="discuss-mod latest-replies<?php echo $params->get( 'moduleclass_sfx' ) ?>">
<?php if( $replies ){ ?>
<div class="list-item">
<?php for($i = 0 ; $i < count( $replies ); $i++) {
$reply = $replies[$i];
?>
<div class="item">
<div class="item-user">
<?php if( $params->get( 'show_replies_avatar' , 1 ) ){ ?>
<a class="item-avatar float-l" href="<?php echo $reply->profile->getLink(); ?>">
<img class="avatar" src="<?php echo $reply->profile->getAvatar(); ?>" <?php echo $useAvatarResize; ?> title="<?php echo JText::sprintf( 'MOD_LATESTREPLIES_REPLIED_BY', $reply->profile->getName() ); ?>" />
</a>
<?php } ?>
</div>
<div class="item-story">
<div class="item-question">
<a href="<?php echo DiscussRouter::_( 'index.php?option=com_easydiscuss&view=post&id='.$reply->parent_id ); ?>">
<?php echo DiscussStringHelper::escape($reply->title); ?>
</a>
</div>
<div class="small"><?php echo JText::sprintf( 'MOD_LATESTREPLIES_REPLIED_BY' , '<a href="' . $reply->profile->getLink() . '">' . $reply->profile->getName() . '</a>' );?></div>
<div class="item-answer small">
<?php
$content = $reply->content;
$content = JString::substr( strip_tags( $reply->content ) , 0 , $params->get( 'maxlength' , 200 ) );
echo EasyDiscussParser::filter( $content );
?>
</div>
<div class="item-info push-top small">
<span>
<img src="<?php echo JURI::root(); ?>modules/mod_easydiscuss_latest_replies/images/clock.png">
<?php echo DiscussDateHelper::getLapsedTime($reply->created); ?>
</span>
</div>
<?php
unset($reply);
unset($content);
?>
</div>
</div>
<?php } //end foreach ?>
</div>
<?php } else { ?>
<div class="no-item">
<?php echo JText::_('MOD_EASYDISCUSS_NO_ENTRIES'); ?>
</div>
<?php } //end if ?>
</div>