1. Mol4
  2. Sherlock Holmes The Voice
  3. Commercial Templates
  4. Thursday, 30 July 2015
  5.  Subscribe via email
Hello,
I'd like to know how I can put in <?php echo date('y');?> as copyright year so that I don't need to change this manually.
Thanks!
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you Elaine

Both your date and copyright info should be now displaying correctly. A slight change in the PHP was used...


<div id="copyright">
<p><?php echo date('Y');echo $this->params->get('copyright'); ?></p>
</div>


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi E

May I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
If I make the above change in J51_journal/php/layouts/base.php, all that appears in the footer is the current year, nothing else. The information I filled into the “copyright information” section of the style editing window doesn’t show.
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks!

I only had to change the small 'y' into a capital 'Y'.

Greetings,
Ton
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

You could try editing your template files directly. In your templates base.php (../templates/j51_habitat/php/layouts/base.php) try replacing the following...


<div id="copyright">
<p><?php echo $this->params->get('copyright'); ?></p>
</div>


With (edit to taste)...


<div id="copyright">
<p><?php echo date('y'); echo $this->params->get('copyright'); ?></p>
</div>


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 5
  • Page :
  • 1


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

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.