Hi Davood,
This is nice found, thank you for reporting.
best!
will let you know if I get the patch from the dev
to fix if you need :
1. create new file components/com_community/templates/jomsocial/layouts/groups/missingdiscussion.php, and put this code on that new file :
<?php
/**
* @copyright (C) 2014 iJoomla, Inc. - All rights reserved.
* @license GNU General Public License, version 2 (http://www.gnu.org/licenses/gpl-2.0.html)
* @author iJoomla.com <[email protected]>
* @url https://www.jomsocial.com/license-agreement
* The PHP code portions are distributed under the GPL license. If not otherwise stated, all images, manuals, cascading style sheets, and included JavaScript *are NOT GPL, and are released under the IJOOMLA Proprietary Use License v1.0
* More info at https://www.jomsocial.com/license-agreement
*/
defined('_JEXEC') or die('Restricted access');
?>
<div class="joms-page" style="text-align: center;" >
<h1><?php echo JText::_('COM_COMMUNITY_STREAM_TITLE_UNAVAILABLE'); ?></h1>
<p><?php echo JText::_('COM_COMMUNITY_STREAM_CONTENT_UNAVAILABLE'); ?></p>
<div class="joms-gap"></div>
<svg viewBox="0 0 16 16" class="joms-icon" style="width:10%;height:10%;">
<use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-support"></use>
</svg>
<div class="joms-gap"></div>
<div class="joms-gap"></div>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=frontpage') ?>" class="joms-button--primary"><?php echo JText::_('COM_COMMUNITY_GO_TO_FRONTPAGE'); ?></a>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups'); ?>" class="joms-button--neutral"><?php echo JText::_('COM_COMMUNITY_GROUP_GO_TO_GROUP'); ?></a>
<div class="joms-gap"></div>
</div>
//check if discussion does not exist
if(!$discussion->id){
if($groupId){
//redirect to discussion page without group id to avoid miniheader to be displayed
$mainframe->redirect('index.php?option=com_community&view=groups&task=viewdiscussion&topicid='.$topicId);
}
$tmpl = new CTemplate();
JFactory::getApplication()->enqueueMessage(JText::_('COM_COMMUNITY_GROUP_DISCUSSION_NOT_FOUND'), 'Error');
echo $tmpl->fetch('groups/missingdiscussion');
return;
}
COM_COMMUNITY_GROUP_DISCUSSION_NOT_FOUND="Group discussion not found"
COM_COMMUNITY_GROUP_GO_TO_GROUP="Go to group"
in step 2 above you can see the code, just copy-and-paste it to after line 2153
thank you
in your source line : 2153
but my line is Different
please download my source jomsocial
my source very space (enter space) , and very long lines
try this..