Support Forums

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Dynamic Year in Copyright Section

Featured Lock Resolved
I would like to create copyright in this way "Copyright © 2005 - 2013."
But I want the year 2013 is increase dynamically when come to year 2014 instead changing it 1 by 1.
Anyway to code it?

Previously I have the code to change it. But in this template, I don't know where can I put the code in.

7 Answers

Ehsan Riyadh

More than a month ago #Permalink
For customize code it's better to put it on templates html folder. Now we have no solution to make it dynamic.

Hsien Tzuen Ng

More than a month ago #Permalink
So it seem like i have no place to add in this code.
<?php echo JHTML::_('date', 'now', '%Y' ) . ' ' . $mainframe->getCfg('sitename'); ?>

Previously in other template, I can direct add into footer.php.

Anyhow, thanks for your info.

Ehsan Riyadh

More than a month ago #Permalink
You can name your code file copyright.php and put it on templates feature folder.

or you can copy copyright.php file from plugins\system\helix\features then paste it on templates feature folder and edit.

Hsien Tzuen Ng

More than a month ago #Permalink
I tried to modify the file with my code and the page return 500 internal server error.
I will try to put into the feature folder to do another try. :)
Hope I am doing it right, as I am not a php programmer, just copy from old and try to edit. ^^

Ehsan Riyadh

More than a month ago #Permalink
From our next Helix version we will add this option.

Hsien Tzuen Ng

More than a month ago #Permalink
Noted with thanks.

Jakir hasan - Staff

More than a month ago #Permalink
You are always welcome............


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Sifat

Sifat

Total Accepted Answers: 103
Toufiq

Toufiq

Total Accepted Answers: 88
Paul Frankowski

Paul Frankowski

Total Accepted Answers: 86
Rifat Wahid Alif

Rifat Wahid Alif

Total Accepted Answers: 2
FUTURECLIENT

FUTURECLIENT

Total Accepted Answers: 2

115

Templates

295724

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us