ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down.
Read our Farewell Blog Post for more details.
I've already got the funky pages it's just the php I'm unsure about, thanks for your reply but could you give more info as to creating this?
i.e. Rocket Theme error pages consist of a nice image with space for the error message to appear, how do I get the error message to show in the correct position? I guess the main errors are:
301, 400, 403, 404, 500, 505.
Take the include and exit statements out of the code above - as in scrap them ... keep the header call there or you're going to end up with your error pages indexed in Google. Without the header, your error page is just another page and actually returns a 200 status code. The Joomla error.php page without this modification returns a 200 status code. This is just one reason why I'm personally not very happy with the team there for FORCING us onto the bleeding edge of their development in their mad rush to leave their dark Mambo past behind them - quite simply, Joomla 1.5 isn't ready yet ... anyways ...
Replace the HTML in your error.php with previously-referenced funky custom HTML.
Place a line something like this wherever it seems most appropriate to you and style to suit:
<?php echo $this->error->code; ?>
You could also build up an array of error codes for your new custom error page to reference - something like:
$error_array = array(404=>"File Not Found",403=>"Forbidden", ... );
and then change the echo line above to something like: