Welcome to Geeklog, Anonymous Friday, March 29 2024 @ 01:05 am EDT
Geeklog Forums
Config. man.
frawo
Anonymous
I'm trying to update copyright year, get this messege:
"This field must be in year format such as 2010"
I have this: 1999 - 2011: på ellevte året :
But want: 1999 - 2012 : på tolvte året :
Why is this not possible and how can I fix it?
Frank
"This field must be in year format such as 2010"
I have this: 1999 - 2011: på ellevte året :
But want: 1999 - 2012 : på tolvte året :
Why is this not possible and how can I fix it?
Frank
2
1
Quote
Status: offline
Laugh
Site Admin
Admin
Registered: 09/27/05
Posts: 1468
Location:Canada
For Geeklog 1.8.1 as a quick fix you can change line 138 in /admin/configuration.php (this is in the custom_validation_copyrightyear function) to:
return preg_match('/^\d{1,4}\s{0,1}\-{0,1}\s{0,1}\d{0,4}$/', $year);
This will allow you to enter a single year like 2010 or a range like 2010 - 2012
Tom
One of the Geeklog Core Developers.
Text Formatted Code
return preg_match('/^\d{1,4}\s{0,1}\-{0,1}\s{0,1}\d{0,4}$/', $year);
This will allow you to enter a single year like 2010 or a range like 2010 - 2012
Tom
One of the Geeklog Core Developers.
1
1
Quote
frawo
Anonymous
Thanks, I did change to 1999 - 2012, but I couldn't include text. Will that be possible later?
(I had text before 1.8.1)
Frank
(I had text before 1.8.1)
Frank
1
1
Quote
frawo
Anonymous
Hi
This is what I want:
1999 - 2012 : på trettende året :
(it's Norwegian)
Frank
(faunogfiskarlaget.net)
This is what I want:
1999 - 2012 : på trettende året :
(it's Norwegian)
Frank
(faunogfiskarlaget.net)
1
1
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You could simply change the footer.thtml of your theme.
We don't seem to have the footer variables documented for some reason. The Professional theme uses the "copyright_notice" variable, which displays the current year plus your site's name. There are also
* copyright_msg - the "all trademarks and copyrights ..." text, minus the year
* current_year - the current year, obviously
* lang_copyright - just the word "copyright"
So you could use something like this:
1999 - {current_year}: på ellevte året :
And it would update automatically.
bye, Dirk
We don't seem to have the footer variables documented for some reason. The Professional theme uses the "copyright_notice" variable, which displays the current year plus your site's name. There are also
* copyright_msg - the "all trademarks and copyrights ..." text, minus the year
* current_year - the current year, obviously
* lang_copyright - just the word "copyright"
So you could use something like this:
Text Formatted Code
1999 - {current_year}: på ellevte året :
And it would update automatically.
bye, Dirk
1
1
Quote
frawo
Anonymous
I did change a little:
</td>
{right_blocks}
</tr>
</table>
{centerblockfooter-span}
<table cellpadding="0" cellspacing="0" width="100%" class="footer-divider-top">
<tr>
<td class="footerblock alignleft" style="width:70%;">
{copyright_notice} <br /> På tur på det trettende året! </br>
</td>
<td class="footerblock alignright" style="width:30%;">
{powered_by} <a href="{geeklog_url}">Geeklog</a> <br{xhtml}>{execution_textandtime}
</td>
</tr>
</table>
{plg_footercode}
</body>
</html>
Not quite right, but usable...
I could change the text in the language file.
Frank
Text Formatted Code
<!-- End Content Area --></td>
{right_blocks}
</tr>
</table>
{centerblockfooter-span}
<table cellpadding="0" cellspacing="0" width="100%" class="footer-divider-top">
<tr>
<td class="footerblock alignleft" style="width:70%;">
{copyright_notice} <br /> På tur på det trettende året! </br>
</td>
<td class="footerblock alignright" style="width:30%;">
{powered_by} <a href="{geeklog_url}">Geeklog</a> <br{xhtml}>{execution_textandtime}
</td>
</tr>
</table>
{plg_footercode}
</body>
</html>
Not quite right, but usable...
I could change the text in the language file.
Frank
3
1
Quote
All times are EDT. The time is now 01:05 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content