By romagromov on Sunday, 28 September 2014
Posted in Technical Issues
Replies 5
Likes 0
Views 541
Votes 0
Hi!

Links from EasyDiscuss - Latest Replies Module open not replies, they opens topics (first post).
Currently the module is designed to link to the discussion and not the reply item. If you want to alter this behavior, edit the file /modules/mod_easydiscuss_latest_replies/tmpl/default.php


<a href="<?php echo DiscussRouter::_( 'index.php?option=com_easydiscuss&view=post&id='.$reply->parent_id ); ?>">


With,


<a href="<?php echo DiscussRouter::_( 'index.php?option=com_easydiscuss&view=post&id='.$reply->parent_id ); ?>#<?php echo JText::_('COM_EASYDISCUSS_REPLY_PERMALINK') . '-' . $reply->id;?>">
·
Sunday, 28 September 2014 22:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks.

Now it opens links with prefix at the end of url - ответить-48761

http://site.com/discuss/chto-takoe#ответить-48761

How to change this prefix on non cyrillic ?
·
Sunday, 28 September 2014 23:21
·
0 Likes
·
0 Votes
·
0 Comments
·
It depends on your translations, COM_EASYDISCUSS_REPLY_PERMALINK
·
Sunday, 28 September 2014 23:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi!
I have same problem now from stream.



But I have translated it in file EasyDiscuss language file

COM_EASYDISCUSS_REPLY_PERMALINK="reply"
·
Tuesday, 07 October 2014 19:04
·
0 Likes
·
0 Votes
·
0 Comments
·
I am not really sure what is the error here, do you mean it's not translated? Edit the file /media/com_easysocial/apps/user/discuss/discuss.php and at line 236 locate the codes below,


$permalink .= '#' . JText::_( 'COM_EASYDISCUSS_REPLY_PERMALINK' ) . '-' . $post->id;


Replace it with,


JFactory::getLanguage()->load('com_easydiscuss', JPATH_ROOT);
$permalink .= '#' . JText::_( 'COM_EASYDISCUSS_REPLY_PERMALINK' ) . '-' . $post->id;
·
Tuesday, 07 October 2014 22:18
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post