Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Adding the Copyright Footer Position

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi Paul (assuming you're going to be the one who answers this ... LOL)

I'm looking to add the copyright to the Footer position of the Venture template. When I do so,only mod_footer_line2 shows up:

Sourced from: en_GB.mod_footer.ini file

MOD_FOOTER="Footer"
MOD_FOOTER_LINE1="Copyright © %date% %sitename%. All Rights Reserved."
MOD_FOOTER_LINE2="<a href="_QQ_"http://www.joomla.org"_QQ_">Joomla!</a> is Free Software released under the <a href="_QQ_"www.gnu.org/licenses/gpl-2.0.html"_QQ_">GNU General Public License.</a>"
MOD_FOOTER_XML_DESCRIPTION="This module shows the Joomla! copyright information."

If I move line 1 into line 2 to test as follows:

MOD_FOOTER="Footer"
MOD_FOOTER_LINE1="Copyright © %date% %sitename%. All Rights Reserved."
MOD_FOOTER_LINE2="Copyright © %date% %sitename%. All Rights Reserved."
MOD_FOOTER_XML_DESCRIPTION="This module shows the Joomla! copyright information."

... then I'm finding that the date and sitename are not being auto-filled.

Screenshot_033115_030213_PM.jpg


I remember trying to do this several years ago but am again wondering if there is a quick fix for this.

Website Location: www.forwardthinkingwebsolutions.com/~opeongo

Thanks,

Steve
  • Steve's Avatar
  • Steve
  • LIfetime Developer - Big Bamboo
  • 562 posts
  • 8 Thanks
  • Karma: 4
The administrator has disabled public write access.
Hi Steve,

You've tried using the copyright position?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Thanks Paul.

I've just tried the copyright position (which I didn't know existed) and I'm still getting the same result at www.forwardthinkingwebsolutions.com/~opeongo

I know I can use some Custom HTML but I like being able to autofill the date if possible.
  • Steve's Avatar
  • Steve
  • LIfetime Developer - Big Bamboo
  • 562 posts
  • 8 Thanks
  • Karma: 4
The administrator has disabled public write access.
ah ok so the issue is you want it to dynamically show the current date together with the site username?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Correct.
  • Steve's Avatar
  • Steve
  • LIfetime Developer - Big Bamboo
  • 562 posts
  • 8 Thanks
  • Karma: 4
The administrator has disabled public write access.
I don't think this will work

I'd suggest either using an extension that allows you to use js or php in a module without it being stripped

or

look for a copyright module (adding to the copyright positon) in JED that will allow you to do this as an extension

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
The following user(s) said Thank You: Steve
Thanks Paul. I think I'll probably just custom html it rather than add another extension. I'm curious why some frameworks allow you to do this and why others do not. Thoughts?
  • Steve's Avatar
  • Steve
  • LIfetime Developer - Big Bamboo
  • 562 posts
  • 8 Thanks
  • Karma: 4
The administrator has disabled public write access.
For that I'd need to check with Rob or Anthony
Do you want me to ask?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
That would be great Paul. I assumed that this may be the way that the T3 Framework was set-up.
  • Steve's Avatar
  • Steve
  • LIfetime Developer - Big Bamboo
  • 562 posts
  • 8 Thanks
  • Karma: 4
The administrator has disabled public write access.
I think your solution applied to Joomla 1.5 and earlier have you tried this recently?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
The best way to do this is to add the code to the template directly.

This is probably the best resource on the code to add.

css-tricks.com/snippets/php/automatic-copyright-year/

Then go to tpls/blocks/footer.php and add your code there.


Thanks
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Thanks for the direction Anthony. I'll hopefully have time to give a try later today.

Steve
  • Steve's Avatar
  • Steve
  • LIfetime Developer - Big Bamboo
  • 562 posts
  • 8 Thanks
  • Karma: 4
The administrator has disabled public write access.
Good luck with it

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Success!

I added the following:

<!-- FOOTER -->
<footer id="footerwrap" class="wrap zen-footer <?php echo $this->rowClass('footer');?>" role="contentinfo">
<section class="zen-copyright">
<div class="zen-container">
<?php $this->getModules('footer');?>
© <?php echo date("Y")?> <a href="www.omresort.ca" title="Opeongo Mountain Resort">Opeongo Mountain Resort</a>
</section>
</footer>
<!-- //FOOTER -->

Hopefully, one final question. Is there a way to move the copyright now from the footer position to the copyright position? For instance, can I create a copyright.php file instead of using the footer.php?

Screenshot_040215_075800_AM.jpg
  • Steve's Avatar
  • Steve
  • LIfetime Developer - Big Bamboo
  • 562 posts
  • 8 Thanks
  • Karma: 4
The administrator has disabled public write access.
Have you tried reducing the footer width in the template?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Thanks for the ideas. I have finally figured out a way of getting the copyright to the right of the footer module. I'm not sure if I did this right but at least I have the result I wanted and it will hopefully help someone us in the process.

I added the following to my custom.css

#footerwrap .zen-spotlight {width: 75%;padding:0;}
.copyright {margin-top:15px;}

My Code in footer.php

<!-- FOOTER -->
<footer id="footerwrap" class="wrap zen-footer <?php echo $this->rowClass('footer');?>" role="contentinfo">
<section class="zen-copyright">
<div class="zen-container">
<?php $this->getModules('footer');?>
<div class="copyright"> <small >© <?php echo date("Y")?> <a href="www.omresort.ca" title="Opeongo Mountain Resort">Opeongo Mountain Resort</a></small></div>
</footer>
</div>
</section>

<!-- //FOOTER -->

I'll hopefully leave you alone for a few days now. B)

Thanks Paul and Anthony for helping me think through the process.

Steve
  • Steve's Avatar
  • Steve
  • LIfetime Developer - Big Bamboo
  • 562 posts
  • 8 Thanks
  • Karma: 4
The administrator has disabled public write access.
Thanks Steve,

Good luck with the rest of the site

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers