Posted on: 08/14/04 07:25am
By: Elegantly
Hi all,
wouldn't it be nice to give geeklog's error page (404.php) a meaningful title, like "Page Not Found"? I updated my own 404.php with the following lines (right after the PHP starting tag):
<?php
// added these two lines
global $_CONF;
$_CONF['pagetitle'] = "Page Not Found";
// here goes the rest
require_once ('lib-common.php');
$display = COM_siteHeader ('menu');
...
I found this change useful when doing a site analysis with tools like awstats, which can include the page's title in the statistics.
Page title for 404.php (error page) ?
Posted on: 08/14/04 01:01pm
By: Dirk
If you add the $_CONF['pagetitle'] = ... after the require_once, then you don't need the global statement.
Also, the next release of Geeklog will accept a second parameter for COM_siteHeader which is then used as the page title, so you don't have to use that $_CONF['pagetitle'] hack any more (just an FYI).
bye, Dirk