By Jared Hungerford on Tuesday, 25 August 2015
Replies 1
Likes 0
Views 1.2K
Votes 0
Hi,

My Discussion Board is only accessible to registered users (or higher ACL). Currently when users try to access parts of the Board a Insufficient Permissions warning is shown correctly.

HOWEVER, I would like to include this same warning for the main discussion page (Discussions Tab) but I cannot find which php file to add COM_EASYDISCUSS_SYSTEM_INSUFFICIENT_PERMISSIONS to.

Which file do I need to edit OR do you already have a solution for this?

Sorry, but I am currently only on localhost and cannot give access. I can cut/paste the proper code from a similar php file but need to know which php file is the Discussions Tab.
Hello Jared Hungerford,

What you can do is to open the file 'JOOMLA/components/com_easydiscuss/views/index/view.html.php' and add below code at line after 25:


if ($my->id == 0) {
JFactory::getApplication()->enqueueMessage(JText::_('COM_EASYDISCUSS_SYSTEM_INSUFFICIENT_PERMISSIONS'), 'error');
}


E.g. http://screencast.com/t/jZedt6T4U

Hope this help and have a nice day!
Sam
·
Tuesday, 25 August 2015 16:15
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post