Thank you very much for making this extension!
I just have one question…
What’s the difference between submission errors and general errors? When are they displayed?
I can see that the “general errors” template is used for form errors (i.e. missing fields), but I haven’t yet seen the “submission error”, so I’m not really sure what to put in that template.
Thanks!
Edit: Also, on the Extensions Manager page, the description says:
Let’s you override all system error messages.
Lose the apostrophe.
Apostrophe gone (next release).
I think the difference is general may be used for search results, or system offline type of things? And submission is for form submission errors. I personally use the same template for both. The core code just has 2 types defined, so I created the additional option.
Thanks so much for this extension!! It’s overall working really well, i’m just having one issue and I’m wondering if anyone has had a similar situation.
We use the Solspace User module to handle frontend user login and management… and we’ve been trying to get it so that the error message when you incorrectly login has a link to forget password and forget username etc… Couldn’t figure out how to do this forever and then we found this extension… Basically, I wanted to use my “member/forgot_password” template to be used as the error page.
I installed the extension, and made two error templates “main/general_error” and “main/submission_error” and those as the error templates in the extension settings. I didn’t expect the “member/forgot_password” template to work… because it wasn’t set to work anywhere.
Then I was just messing around and happen to incorrectly login and the error message went to my “member/forgot_password template” - but then I edited the “member/forgot_password” template and tried again… and it’s continuously showing the OLD version of “member/forgot_password”
So question is… does the System Messages extension somehow automatically map the incorrect login error to member/forgot_password?
And if it does… why would it continuously show the old version of the member/forgot_password template even after refreshing system cache, browser cache and browser history?
Any insight would be awesome… I’ve been struggling over this issue for hours now.
Using EE 1.6.8
Loving custom system messages.
If anyone is curious about how to integrate jquery so that you don’t actually have to the error template as a separate web page request, here’s the sample code using $.post (feel free to extend it):
function loginCheck() {
if ( $('.errorConsole').css('display', 'block') ) {
$('.errorConsole').hide();
$('.errorConsole').empty();
}
var returnPath = $('#loginReturnPath').val();
$.post(
$('#loginFormContainer > form').attr('action'),
$('#loginFormContainer > form').serialize(),
function(data){
$('.errorConsole').html(data);
var eCode = $('.errorConsole').find('h2').text();
if (eCode == 'Error') {
$('.errorConsole').show();
} else {
[removed].replace(returnPath);
}
}
);
}Note: my error template stores the ‘Error’ message string in an h2 tag. I can just pass the string into a conditional to see if an error during log in was generated.
I could not find anywhere else to ask this question - so I will attach it here. I have a login form on my site. After installing this, upon login the user is directed to a page stating that they have logged in, but there it dead ends. The return defined in my login tag is not firing: {exp:member:login_form return="home/"}
How do I fix this?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.