Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

problem display discussion after delete discussion

9 years 4 weeks ago
  • davood's Avatar
    Topic Author
  • davood
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 2
Licenses:
JomSocial Active

hi
i see problem Amazing
i using jomsocial version 4.1
please follow step by step
1-create new discussion in group
2-copy link discussion group
3- delete discussion group
4-paste link discussion group from other user and open link page
5- you see error Amazing

please see image below :

Attachments:
9 years 4 weeks ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Davood,

This is nice found, thank you for reporting.

best!

9 years 4 weeks ago
  • davood's Avatar
    Topic Author
  • davood
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 2
Licenses:
JomSocial Active

Thank you very much.

9 years 4 weeks ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

will let you know if I get the patch from the dev

9 years 3 weeks ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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>

2. open this file components/com_community/views/groups/view.html.php, after this line 2153 add this code :
//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;
             }

3. open this file language/en-GB/en-GB.com_community.ini and add this code at the bottom
COM_COMMUNITY_GROUP_DISCUSSION_NOT_FOUND="Group discussion not found"
 COM_COMMUNITY_GROUP_GO_TO_GROUP="Go to group"

9 years 3 weeks ago
  • davood's Avatar
    Topic Author
  • davood
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 2
Licenses:
JomSocial Active

Hi

2. open this file components/com_community/views/groups/view.html.php, after this line 2153 add this code :

paste cod after what?
you can create patch , and give me?
Thank you.

9 years 3 weeks ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

in step 2 above you can see the code, just copy-and-paste it to after line 2153

9 years 3 weeks ago
  • davood's Avatar
    Topic Author
  • davood
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 2
Licenses:
JomSocial Active

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

This attachment is hidden for guests.
Please log in or register to see it.

This message has an attachment file.
Please log in or register to see it.

9 years 2 weeks ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

try this..

This attachment is hidden for guests.
Please log in or register to see it.

This message has an attachment file.
Please log in or register to see it.

9 years 2 weeks ago
  • davood's Avatar
    Topic Author
  • davood
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 2
Licenses:
JomSocial Active

Thank you very very much
my problem is fixed.
Good Luck.

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW