Posted on: 10/07/04 02:31pm
By: LWC
Hey Dirk, I noticed you somehow pushed "2000" in the middle of {copyright_notice}.
I've always thought it'd be a great addition to have something like
$_CONF['copyrightyear-start'] = '2000';
in config.php, but I assume you did it directly.
So did you edit your personal lib-common.php from:
$footer->set_var( 'copyright_notice', ' ' . $LANG01[93] . ' © '
. $copyrightyear ...
to something like:
$footer->set_var( 'copyright_notice', ' ' . $LANG01[93] . ' © 2000-'
. $copyrightyear ...
or what?
In any case, you must share with the rest of with such things in the future (versions).
copyright 2000 - ?
Posted on: 10/07/04 02:41pm
By: Dirk
It's all built-in already. This is straight from the geeklog.net config.php:
// Uncomment the following line to set the copyright year in the site's footer
// to a specific year. Otherwise, the current year will be used.
$_CONF['copyrightyear'] = '2000-2004';
bye, Dirk
copyright 2000 - ?
Posted on: 10/07/04 02:44pm
By: LWC
But what will happen in 2005...?
I want 2000-(current_year).
If you implement my suggestion from above, you just need to add:
if( !empty( $_CONF['copyrightyear-start'] ))
{
$copyrightyear = $_CONF['copyrightyear-start'] . '-' . $copyrightyear;
}
copyright 2000 - ?
Posted on: 10/07/04 03:03pm
By: Dirk
[QUOTE BY= LWC] But what will happen in 2005...?
I want 2000-(current_year).[/QUOTE]
Then you have to change the {copyright_notice} variable in config.php to
{lang_copyright} © 2000-{current_year} {site_name}<br>{trademark_msg}
i.e. the various parts of the copyright notice are also available as variables and you can build your own message from them.
bye, Dirk
copyright 2000 - ?
Posted on: 10/07/04 03:28pm
By: LWC
Take another look at my aforementioned code.
Don't you think my global approach is better?
All you have to do is add the new parameter $copyrightyear-start to config.php and then add the new "if" statement to lib-common.php.