- Posts: 6
- Thank you received: 0
Add Entry Menu Bad message when not logged in
- skyekr
- Topic Author
- Offline
- New Member
-
Less
More
12 years 10 months ago #17088
by skyekr
Add Entry Menu Bad message when not logged in was created by skyekr
I have created a menu item to add an event. If the user is not logged in, however they get this message:
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
In Internet Explorer the message is: Internet Explorer cannot display the webpage
How can I make it so they get a message that they must be a registered user of the site?
Thanks!
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
In Internet Explorer the message is: Internet Explorer cannot display the webpage
How can I make it so they get a message that they must be a registered user of the site?
Thanks!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
12 years 9 months ago #17157
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Add Entry Menu Bad message when not logged in
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 :
3. Change it to :
After that, it will work as expected .
Regards,
Tuan
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
The following user(s) said Thank You: skyekr
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.