Hi
I think you should set access permission of the menu item to Registered so that only registered users can see it. If you want to display the message as explained, you can modify the code alitle :
1. Open the file components/com_eventbooking/views/event/view.html.php
2. Find the code below :
Code:
if (!$ret) {
$app = & JFactory::getApplication('site');
$url = JRoute::_('index.php?option=com_eventbooking');
$app->redirect($url, JText::_('EB_NO_ADDING_EVENT_PERMISSION'));
}
3. Change it to :
Code:
if (!$ret) {
$app = & JFactory::getApplication('site');
$url = JRoute::_('index.php');
$app->redirect($url, JText::_('EB_NO_ADDING_EVENT_PERMISSION'));
}
After that, it will work as expected .
Regards,
Tuan