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.

Closed Group Error notification

6 years 3 months ago
  • Lee's Avatar
    Topic Author
  • Lee
  • Offline
  • Fresh Boarder
  • Posts: 80
  • Thank you received: 1
Licenses:
JomSocial Active Socialize Expired

When non logged in users browse to a "Closed group" page
A very unattractive red Error message is displayed
I have changed the text and put a link to login in the INI File but I would prefer a login box and a nice image, or simply to redirect that user to already existing login page.
Check here
www.speakeasyenglish.org/club/groups/vie.../5-advertising-ideas

Anyway, this is what I have done for now, until of course you can give me an idea of a solution. Thank you
COM_COMMUNITY_GROUPS_UNLISTED_ERROR = "Sorry, you don't have permission to see this group Please<a href=" www.speakeasyenglish.org/club ">LOGIN</a> "

6 years 3 months ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi
Sorry, there is no option to redirect page at this time. Because if a group has privacy for the logged in users too. from Jomsocial configuration > Privacy and Access control.
I will share it with development team, so if there is some option to customise it for you :)
UPDATE:
Kindly try this :
edit /components/com_community/views/groups/view.html.php around line 1263, find this code:

if ($group->approvals == '1' && !$isMine && !$isMember && !CFactory::getUser()->authorise('community.groupeditstate', 'com_community') && !CFactory::getUser()->authorise('community.groupedit', 'com_community') && !CFactory::getUser()->authorise('community.groupdelete', 'com_community')) { 
    $this->addWarning(JText::_('COM_COMMUNITY_GROUPS_PRIVATE_NOTICE')); 
}


replace it with
if ($group->approvals == '1' && !$isMine && !$isMember && !CFactory::getUser()->authorise('community.groupeditstate', 'com_community') && !CFactory::getUser()->authorise('community.groupedit', 'com_community') && !CFactory::getUser()->authorise('community.groupdelete', 'com_community')) { 

    $mainframe = JFactory::getApplication(); 
    $mainframe->enqueueMessage(JText::_('COM_COMMUNITY_GROUPS_PRIVATE_NOTICE'), 'notice'); 
    $mainframe->redirect('index.php?option=com_community&view=frontpage'); 
}

Take a backup of the original file before apply changes.


Regards

The following user(s) said Thank You: Lee
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