10-22-2017, 11:26 AM
hello, I'm trying to insert a popup alert in the did_not_have_permission pages, so that it will tell the user what went wrong.
I added to the page the code:
`<html><body><script> alert("Acces denied"); </script> </body></html>
but the browser immediately jump to redirect.
If I comment the redirect in the us_helpers.php then popup appears.
I guess it is linked to the intrinsic logic of php, but I did not manage it.
I would like to edit only the did_not pages, without touching the us_helper.
How could I do it?
Thank you!
I added to the page the code:
`<html><body><script> alert("Acces denied"); </script> </body></html>
but the browser immediately jump to redirect.
If I comment the redirect in the us_helpers.php then popup appears.
I guess it is linked to the intrinsic logic of php, but I did not manage it.
I would like to edit only the did_not pages, without touching the us_helper.
How could I do it?
Thank you!