We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Custom System Messages (ditch the Specialty Templates)

Development and Programming

Adam Khan's avatar
Adam Khan
319 posts
about 16 years ago
Adam Khan's avatar Adam Khan

Great extension. Thanks.

Just wanted to point out that the template can’t begin with a period. /mysite/errors is fine, but /mysite/.errors is not.

       
Cottser's avatar
Cottser
11 posts
15 years ago
Cottser's avatar Cottser

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.

       
Brian Litzinger's avatar
Brian Litzinger
704 posts
15 years ago
Brian Litzinger's avatar Brian Litzinger

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.

       
Cottser's avatar
Cottser
11 posts
15 years ago
Cottser's avatar Cottser

I think I get it now. When I first set it up, it seemed like the submission error template wasn’t being used for form errors, but I think that was just me 😊

Thanks!

       
nathanpitman's avatar
nathanpitman
531 posts
15 years ago
nathanpitman's avatar nathanpitman

So… I’m wondering if this could be extended to also cover notice type screens (ie: we just reset your password and mailed the new one to you)… or does it already? 😊

       
Peter Baker's avatar
Peter Baker
49 posts
15 years ago
Peter Baker's avatar Peter Baker

Download link is broken. Anywhere else to get this?

       
MasonH's avatar
MasonH
15 posts
15 years ago
MasonH's avatar MasonH

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

       
MasonH's avatar
MasonH
15 posts
15 years ago
MasonH's avatar MasonH

Nevermind, it was a silly mistake on my part. I fixed it and it’s working properly.

       
stinhambo's avatar
stinhambo
1,268 posts
15 years ago
stinhambo's avatar stinhambo

Stupid question BUT - Is this extension supposed to show up in the Extensions page? I don’t see it…

       
stinhambo's avatar
stinhambo
1,268 posts
15 years ago
stinhambo's avatar stinhambo

And of course it was a stupid question - Permissions were set to 700?!

Changed to 664 and all is well 😊

       
techyogi's avatar
techyogi
35 posts
15 years ago
techyogi's avatar techyogi

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.

       
TGPTest's avatar
TGPTest
2 posts
15 years ago
TGPTest's avatar TGPTest

This seems to install OK, but when I click the settings link in the control panel, I get the following error:

An Error Was Encountered

Unable to load the requested file: settings_form.php

Any ideas?

Thanks!

       
TGPTest's avatar
TGPTest
2 posts
15 years ago
TGPTest's avatar TGPTest

Disregard my previous post - my fault!

       
Michael Dixon's avatar
Michael Dixon
22 posts
15 years ago
Michael Dixon's avatar Michael Dixon

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?

       
jorlee90's avatar
jorlee90
7 posts
15 years ago
jorlee90's avatar jorlee90

I have the exact same issue as Michael Dixon. I really want to use this extension ASAP, but I can’t because it screws up my login which is actually on a different MSM site.

       
1 2 3 4

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.