Community Builder login not being redirected

  • OTWD
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
3 years 2 weeks ago - 3 years 2 weeks ago #151016 by OTWD
Hi
I'm trying to redirect users to my Community Builder login page from EB event list in order to login and then book the event.
There are no joomla login menus or modules enabled.
In EB Configuration Use CB API = Yes

Any ideas why it doesnt redirect to CB for login?
The link text is Please <a href="[LOGIN_LINK]">login</a> to register for this event
See this page  www.ecnavan.ie/cpd-courses-ecnavan/prima...-shared-reading.html (click the login link on the bottom of the page and it redirects to joomla component for login)

Success consists of going from failure to failure without loss of enthusiasm.
Last edit: 3 years 2 weeks ago by OTWD.

Please Log in or Create an account to join the conversation.

More
3 years 2 weeks ago #151020 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Community Builder login not being redirected
Hello

Honestly, I don't know how to get the link from CB Login Page to use, so I could not guide you with a solution. Maybe you can try:

1. Open the file components/com_eventbooking/themes/default/common/event_message.php

2. Find this line of code:
Code:
$loginLink = Route::_('index.php?option=com_users&view=login&return=' . base64_encode(Uri::getInstance()->toString()), false);

3. Change it to:
Code:
$loginLink = Route::_('index.php?option=com_comprofiler&view=login&return=' . base64_encode(Uri::getInstance()->toString()), false);

Then check to see if it works. If it is, you can move that modified file to PATH_TO_TEMPLATE/html/com_eventbooking/common folder so that the change won't be lost when you update to future releases of the extension

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc