Hi all,

At the moment, when an error occurs (eg. a login error, or an error in preg_macht()) it is placed at the top of the page, inline with the content.

Where can I find this placement? I did some searching (with grep) through the *.js files, and the page.tpl.php files with keywords like "error, Error, login, warning, user". But nothing turned up that made any sense to me for the placement location of the error message.

I would like to have two options:

1) to place the error in a different column (for example a login error placed under the login box)
2) instead of an inline error, riderect to a new page (so again for the login error, be redirected to a page with an error message and some explanation of what to do next).

Has anyone bumped into the location in the scripts where the handling of error messages is dealt with?

Thanks!
Harro

Comments

fidot’s picture

The errors are shown within a

, so you should be able to change the stylesheet to position the text where you want it.

HTH
Terry

harro’s picture

Thank you Terry! I presume you wrote a < div > or something of the sort, which got filtered out :) Part one is answered.

Any way of redirecting the error to a new page, eg. login-error.htm ? I presume this will be done in the code somewhere...

harro’s picture

After the great hint for placing the error message in a specific place on the page, I am still trying to find out how to call a separate (new) page when an error occurs.

So instead of an error message in the page that causes the error (eg. login error, shown on the front page together with the content), I'd like a new page with the error and then place some help-text below it...

I would have to catch the call to the error-placer and tell it to open a page instead of injecting a message on the current one.

If you have ideas (experience?) please let me know,

Thanks,

Harro

harro’s picture

Is it possible to redirect the error message to a different page, instead of showing the error inline with the content of the current page?