-
AuthorPosts
-
cgc0202 Friend
cgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
August 6, 2008 at 8:50 pm #131875Hello,
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=65405However, 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 JAECOmar Ramos
- Join date:
- September 2014
- Posts:
- 93
- Downloads:
- 154
- Uploads:
- 12
- Thanked:
- 15 times in 1 posts
August 6, 2008 at 10:13 pm #264198I 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 JAECOmar Ramos
- Join date:
- September 2014
- Posts:
- 93
- Downloads:
- 154
- Uploads:
- 12
- Thanked:
- 15 times in 1 posts
August 6, 2008 at 10:17 pm #264200On 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 JAECOmar Ramos
- Join date:
- September 2014
- Posts:
- 93
- Downloads:
- 154
- Uploads:
- 12
- Thanked:
- 15 times in 1 posts
August 6, 2008 at 10:31 pm #264203OK, 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 user says Thank You to Omar Ramos for this useful post
-
AuthorPosts
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