Then the URL probably wasn't modified correctly. Do you have SEF enabled? What URL is it taking you to? Again, all of this is examples; I did not test it.This doesn't work — when I go to the module page and try to create a new account, the url for the new registration page with the "special=1" gives an error code saying I have to log in or register to view my profile.
The frontend registration trigger is AfterUserRegistration. You can use the dropdown or copy/paste and press enter to add the trigger, whichever you prefer.Also: There's no trigger for AfterUserRegistration. There's a frontend user registration trigger.
Please Log in to join the conversation.
krileon wrote:
The frontend registration trigger is AfterUserRegistration. You can use the dropdown or copy/paste and press enter to add the trigger, whichever you prefer.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
What you want does not exit. In Joomla or in CB. Joomla does not keep track of this information. So what you want is not simple for Joomla or for CB. If you did the usergroup assignment and redirect based off a field instead of what module they came from it'd be a 5 minute implementation, but because you want it to work off a specific module it's not going to be easy, but it is doable.I just need to be able to specify the landing page after a registration from this particular module.
$( '.cbLoginForm' ).each( function() {
var regUrl = $( this ).find( '#form-login-register > a' ).attr( 'href' );
$( this ).prepend( '<input type="hidden" name="special_group" value="1" />' );
$( '.cbLoginForm #form-login-register > a' ).attr( 'href', regUrl + ( regUrl .indexOf( '?' ) < 0 ? '?' : '&' ) + 'special=1' );
});
$( '.cbRegistration > form' ).prepend( '<input type="hidden" name="special_group" value="1" />' );
Please Log in to join the conversation.
Please Log in to join the conversation.