Main | Search

Question
Sort: Ascending / Descending
Why are the error pages not theme-based?
Where can I find cpg_page.php?
So how can I modify cpg_page.php?
What is error.php?

Answer
Why are the error pages not theme-based?

Our new function cpg_error is called when an error (regular and database) occurs, displaying the error and it's details.

When a query to the cms_config_custom or cms_users table fails or when a connection to the database fails or is closed, the system wouldn't know what theme to use for the error page. This is why the error pages cannot be theme-based.

We could have handled such pages with just a white page with some text but that's not cool. So we designed cpg_page.php.


Where can I find cpg_page.php?

The file is located in the includes folder on your server. Two functions exist in this file: cpg_header() and cpg_footer() which are both called by cpg_error().

So how can I modify cpg_page.php?

Open it with a text editor and change how you want to display your error page by editing the content.

By default, cpg_page.php uses the following additional files
  • includes/css/cpg.css
  • images/back.gif


What is error.php?

We use this for handling various HTTP errors, and is activated through .htaccess.

You can easily change this file any way you like.

Bear in mind that, if you activate the email notification, in exceptional circumstances your host may not appreciate a large volume of emails being sent.


Dedicated Server & Bandwidth Sponsored by DedicatedNOW
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.1065 seconds with 8 DB Queries in 0.0298 seconds
Memory Usage: 1.49 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy