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
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
As a quick fix you can hard code it in your public_html/layout/yourlayout/footer.thtml file.

Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
Location:Canada
I tested this and can confirm the problem. It will be fixed for Geeklog 1.9.0 and I will post an update here as well when I get it done.

Tom
One of the Geeklog Core Developers.
 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:

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.
 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
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
Location:Canada
What type of text?

You could use the owner name which will be appended to the copyright year.

Tom
One of the Geeklog Core Developers.
 Quote

frawo

Anonymous
Hi

This is what I want:

1999 - 2012 : på trettende året :

(it's Norwegian)

Frank
(faunogfiskarlaget.net)
 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:

Text Formatted Code

1999 - {current_year}: på ellevte året :
 


And it would update automatically.

bye, Dirk
 Quote

frawo

Anonymous
I did change a little:

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>&nbsp;<br{xhtml}>{execution_textandtime}&nbsp;
            </td>
        </tr>
    </table>
{plg_footercode}
</body>
</html>
 


Not quite right, but usable...
I could change the text in the language file.


Frank
 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