By HMED on Wednesday, 02 December 2015
Posted in General Issues
Likes 0
Views 590
Votes 0
Hi all,
is it possible to remove the "Re : " in recents replies module and also in main discussions ?
Hi Jan!,

The 'Re:' is actually padded into the title and saved into your database. Try this method. Open your JOOMLA/modules/mod_easydiscuss_recentreplies/tmpl/default.php' and look for below code at line 29:


<?php echo $post->title;?>


and replace with:


<?php echo str_replace('Re: ', '', $post->title); ?>


Let me know if the above work for you or not.

Hope this help and have a nice day!
Sam
·
Thursday, 03 December 2015 18:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, I don't think it is really ideal to remove the "RE:" from these modules because you end up having a "redundant" title and people would then think it's a duplicate?

Nevertheless, you can always edit the form.reply.php file and locate the codes below:



Remove the RE: from the hidden input
·
Thursday, 03 December 2015 00:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

i personally dont like the Re, thats remember me old forums
where i can find the form.reply.php file please ?

(i visit the SI website every 3h to check if ED4 is launched )
·
Thursday, 03 December 2015 00:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jan!,

You can find this file at 'JOOMLA/components/com_easydiscuss/themes/simplistic/form.reply.php'.
Hope this help and have a nice day!
Sam
·
Thursday, 03 December 2015 12:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Sam,

i applied this modification but i still have the "Re:" in the recent replies module !?
·
Thursday, 03 December 2015 17:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jan!,

i applied this modification but i still have the "Re:" in the recent replies module !?


Recent Replies module use another theme file. You can find the file at 'JOOMLA/modules/mod_easydiscuss_recentreplies/tmpl/default.php'.

Hope this help
Sam
·
Thursday, 03 December 2015 17:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Sam, i am soo sorry i know its out of SI support but i cant find the "re: " in this file !

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>
·
Thursday, 03 December 2015 18:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Sam i appreciate so much your support
·
Thursday, 03 December 2015 18:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jan,

You are most welcome.
·
Thursday, 03 December 2015 19:13
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post