help to better help you:
Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!
[SOLVED ]Button: You have to Login for Register (to Event) not work (has no acti
[SOLVED ]Button: You have to Login for Register (to Event) not work (has no acti
1 year 11 months ago - 1 year 11 months ago
Good Afternoon JEM Forum
I see that JEM4rc1 has the same problem with COM_JEM_LOGIN_FOR_REGISTER button as previous versions.
I then changed it for me like this:
********************************************
IN: components/com_jem/views/event/tmpl/responsive/default_attendees.php (Line 159) (JEM4 Line 187)
<input class="btn btn-warning" type="button" value="<?php echo JText::_('COM_JEM_LOGIN_FOR_REGISTER'); ?>"/>
Changed to
case 2:
//echo JText::_('COM_JEM_LOGIN_FOR_REGISTER'); pcte.ch Adaptation forwarding to login ?>
<input class="btn btn-warning" type="button" value="<?php echo JText::_('COM_JEM_LOGIN_FOR_REGISTER'); ?>" onClick="window.location=' naschoen.ch /login.html' ;"/>
*********************************************
IN: components/com_jem/views/event/tmpl/default_attendees.php (Line: 161) (JEM4 = Line 187)
<input class="btn btn-warning" type="button" value="<?php echo JText::_('COM_JEM_LOGIN_FOR_REGISTER'); ?>"/>
Changed to
case 2:
//echo JText::_('COM_JEM_LOGIN_FOR_REGISTER'); pcte.ch Adaptation forwarding to login ?>
<input class="btn btn-warning" type="button" value="<?php echo JText::_('COM_JEM_LOGIN_FOR_REGISTER'); ?>" onClick="window.location='https://*** YOURDOMAIN.TLD***/login.html' ;"/>
Sadly there is then no redirect with this. Maybe it will be fixed in JEM4 rc1 if possible.
Another solution WITH redirect is to use a Joomla login module with GUEST permissions, which disappears immediately after login. This then has the desired redirect. Means after the login it "jumps" back to the event
I see that JEM4rc1 has the same problem with COM_JEM_LOGIN_FOR_REGISTER button as previous versions.
I then changed it for me like this:
********************************************
IN: components/com_jem/views/event/tmpl/responsive/default_attendees.php (Line 159) (JEM4 Line 187)
<input class="btn btn-warning" type="button" value="<?php echo JText::_('COM_JEM_LOGIN_FOR_REGISTER'); ?>"/>
Changed to
case 2:
//echo JText::_('COM_JEM_LOGIN_FOR_REGISTER'); pcte.ch Adaptation forwarding to login ?>
<input class="btn btn-warning" type="button" value="<?php echo JText::_('COM_JEM_LOGIN_FOR_REGISTER'); ?>" onClick="window.location=' naschoen.ch /login.html' ;"/>
*********************************************
IN: components/com_jem/views/event/tmpl/default_attendees.php (Line: 161) (JEM4 = Line 187)
<input class="btn btn-warning" type="button" value="<?php echo JText::_('COM_JEM_LOGIN_FOR_REGISTER'); ?>"/>
Changed to
case 2:
//echo JText::_('COM_JEM_LOGIN_FOR_REGISTER'); pcte.ch Adaptation forwarding to login ?>
<input class="btn btn-warning" type="button" value="<?php echo JText::_('COM_JEM_LOGIN_FOR_REGISTER'); ?>" onClick="window.location='https://*** YOURDOMAIN.TLD***/login.html' ;"/>
Sadly there is then no redirect with this. Maybe it will be fixed in JEM4 rc1 if possible.
Another solution WITH redirect is to use a Joomla login module with GUEST permissions, which disappears immediately after login. This then has the desired redirect. Means after the login it "jumps" back to the event
Last edit: 1 year 11 months ago by pctech.
Please Log in or Create an account to join the conversation.
Re: [SOLVED ]Button: You have to Login for Register (to Event) not work (has no acti
1 year 11 months ago
You're right.
This is an info, that you have to register.
And there is a language problem too: we use "fegister" for eventregistering and for getting a joomla account.
A problem is that there are different ways to login whic depend on personal settings. So I can change this via ftp to my way.
But then there is no automatic way to return directly to ths site.
This is an info, that you have to register.
And there is a language problem too: we use "fegister" for eventregistering and for getting a joomla account.
A problem is that there are different ways to login whic depend on personal settings. So I can change this via ftp to my way.
But then there is no automatic way to return directly to ths site.
Please Log in or Create an account to join the conversation.
Re: [SOLVED ]Button: You have to Login for Register (to Event) not work (has no acti
1 year 11 months ago
Hi JoJo
1. Idea: Would there be a Posibility to make an input field in the Event Admin Settings for this?
Like Login and URL on his Site (https://MYSITE/login.html) So can the Admin put in hims Login Form URL by himself and then it redirects to the specific Event after Login?
2. Idea: a Specific Modulposition i can Publish a Login Module Inside of JEM? Then the Module do this by himself..
1. Idea: Would there be a Posibility to make an input field in the Event Admin Settings for this?
Like Login and URL on his Site (https://MYSITE/login.html) So can the Admin put in hims Login Form URL by himself and then it redirects to the specific Event after Login?
2. Idea: a Specific Modulposition i can Publish a Login Module Inside of JEM? Then the Module do this by himself..
Please Log in or Create an account to join the conversation.
Re: [SOLVED ]Button: You have to Login for Register (to Event) not work (has no acti
1 year 11 months ago - 1 year 11 months ago
Hello again..
Ok, i tried following
Result: I get a return URL in Base64, but it rejects me to the User Settings in Joomla
MYWEBSITE.ch/index.php?option=com_users&view=login&return=L2luZGV4LnBocD9vcHRpb249Y29tX2plbSZhbXA7dmlldz1ldmVudCZhbXA7aWQ9JHRoaXMtJmd0O2l0ZW1pZCZhbXA7SXRlbWlkPS4kdGhpcy0mZ3Q7aXRlbWlk
***************************
Also iam add now sucessfully: Custom Module Position (of course with a responding Login Module at this position name= jemeventuserlogin and Restrictions: GUEST, Joomla Plugin Module_Positions enabled) in default_attendees.php: (Change also Button Class to Info!)
Line 195
Works Perfectly with the redirect to the Event!!, disapear after Login.
See Pictures
Ok, i tried following
Code:
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Multilanguage;
use Joomla\CMS\Uri\Uri;
$linkreg = 'index.php?option=com_jem&view=attendees&id='.$this->item->id.($this->itemid ? '&Itemid='.$this->itemid : '');
//$returnurl = 'index.php?option=com_jem&view=event&id='.$this->item->id.($this->itemid ? '&Itemid='.$this->itemid : '');
$return = base64_encode(\JRoute::_('index.php?option=com_jem&view=event&id=$this->itemid&Itemid=.$this->itemid'));
//$return = base64_encode(\JRoute::_('index.php?option=mycomponent&view=dashboard'));
*********************************************
case 2:
//echo Text::_('Only a text COM_JEM_LOGIN_FOR_REGISTER'); ?>
<input class="btn btn-info" type="button" value="<?php echo Text::_('Button No Function COM_JEM_LOGIN_FOR_REGISTER'); ?>"/>
<?php //echo Text::_('COM_JEM_LOGIN_FOR_REGISTER'); ?>
<input class="btn btn-warning" type="button" value="<?php echo Text::_('COM_JEM_LOGIN_FOR_REGISTER'); ?>" onClick="window.location='/index.php?option=com_users&view=login&return=<?php echo $return; ?>' ;"/>
<input type="hidden" name="return" value="<?php echo $return; ?>">
<input type="hidden" name="option" value="com_users">
<input type="hidden" name="task" value="user.login">
<?php //insert Breezing Form hack here
Result: I get a return URL in Base64, but it rejects me to the User Settings in Joomla

MYWEBSITE.ch/index.php?option=com_users&view=login&return=L2luZGV4LnBocD9vcHRpb249Y29tX2plbSZhbXA7dmlldz1ldmVudCZhbXA7aWQ9JHRoaXMtJmd0O2l0ZW1pZCZhbXA7SXRlbWlkPS4kdGhpcy0mZ3Q7aXRlbWlk
***************************
Also iam add now sucessfully: Custom Module Position (of course with a responding Login Module at this position name= jemeventuserlogin and Restrictions: GUEST, Joomla Plugin Module_Positions enabled) in default_attendees.php: (Change also Button Class to Info!)
Line 195
Code:
case 2:
// echo Text::_('Only a text COM_JEM_LOGIN_FOR_REGISTER'); ?>
<input class="btn btn-info" type="button" value="<?php echo Text::_('COM_JEM_LOGIN_FOR_REGISTER'); ?>"/>
<?php //echo Text::_('COM_JEM_LOGIN_FOR_REGISTER'); ?>
<?php echo JHtml::_('content.prepare', '{loadposition jemeventuserlogin}');?>
Works Perfectly with the redirect to the Event!!, disapear after Login.

Last edit: 1 year 11 months ago by pctech.
Please Log in or Create an account to join the conversation.
Re: [SOLVED ]Button: You have to Login for Register (to Event) not work (has no acti
1 year 11 months ago
Fixed. Actived the login button to event registration. Now, if the user wants to register to the event, can clic the button to login and after return to the event to finish the registration.
See commit github.com/jemproject/JEM-Project/commit/319699c5c13a1bb8227251bbbb31c5cc5241995c
This is easier as solution. Do you like it?
See commit github.com/jemproject/JEM-Project/commit/319699c5c13a1bb8227251bbbb31c5cc5241995c
This is easier as solution. Do you like it?
The following user(s) said Thank You: pctech
Please Log in or Create an account to join the conversation.
Re: [SOLVED ]Button: You have to Login for Register (to Event) not work (has no acti
1 year 11 months ago - 1 year 11 months ago
Good Evening
Sounds so good, i want to try, where on Git Hub (mi Gosch, in old times it was easyer) to find the download?
Update: I Found the Code on Github and Copy to my views. Great Solution, Many Thanks for this solution
Sounds so good, i want to try, where on Git Hub (mi Gosch, in old times it was easyer) to find the download?
Update: I Found the Code on Github and Copy to my views. Great Solution, Many Thanks for this solution
Last edit: 1 year 11 months ago by pctech.
Please Log in or Create an account to join the conversation.
Time to create page: 0.615 seconds