test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • cgc0202 Friend
    #131875

    Hello,

    I want to revise the “Start – Current Date” before the website name in the Footer of Joomla 1.5x-Teline II.

    This is more easy to do in Joomla 1.0xx but more tricky in Joomla 1.5x. OK, there is a partial answer to this already — to locate the footer contents itself, as explained by Hainn in response to:

    Where is the footer.php in Joomla 1.5x?

    http://www.joomlart.com/forums/showthread.php?p=65405

    However, I could edit the contents of the default.php file found in

    templates => ja_teline_ii => html => mod_footer folder

    but not the specific statement:

    Copyright © 2008 (Website name here) All Rights Reserved. ….

    I want to change it, for example to:

    “Copyright © 1999 – 2008 (Website name here) All Rights Reserved. …. ”

    where the first year, e..g., 1999, in the example given would be the “inception date” of the website, and the second year indicated (e.g., 2008 at present).

    Thanks.

    Cornelio

    Omar Ramos JAEC
    #264198

    I would go to modules/mod_footer/mod_footer.php and either configure it there by hardcoding the starting year in, or maybe you could modify mod_footer.xml and add an extra parameter (and then modify mod_footer.php to make use of this new parameter) which would allow you to define the starting year in the Joomla backend for the module.

    Omar Ramos JAEC
    #264200

    On line 20 of mod_footer.php you have:
    $cur_year = $date->toFormat(‘%Y’);

    and the line that inserts that value into the JText string is on line 24:
    $line1 = ereg_replace(‘%date%’, $cur_year, JText :: _(‘FOOTER_LINE1’));

    You might want to modify it to look something like:
    $start_year = “1999”;
    $cur_year = $start_year.”-“.$date->toFormat(‘%Y’);

    You’d probably want to add an if statement if you added the start_year as a configurable parameter (just in case somebody hasn’t defined it it will default to just showing the current year or something).

    Omar Ramos JAEC
    #264203

    OK, so I liked this idea enough to make those changes quickly for you and I’ve attached them in a zip file.

    Just replace the files in modules/mod_footer and it should work 🙂


    1. mod_footer.zip
Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  Omar Ramos 16 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum