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.

Custom Copyright

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

Hello :)

Just loaded Xero and having a good look round! I tried to add some code for a custom copyright :
Copyright © {source}<?php echo date('Y'); ?>{/source}

The same as I use on a Lifestyle 2 site

but it doesn't work on Xero - it renders as :

Copyright © {source}{/source}

Is there something I can do to make it render correctly please?

Thanks from Hils
  • hils's Avatar
  • hils
  • 12 Month Developer
  • 35 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Hils,

Is this the sourcerer plugin?

If so if I alter the plugin order it will then load
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
sourcer.png


Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Also Rob suggested adding this instead of the tags

document.write(new Date().getFullYear())

I've had to remove the tags for the forum

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Just attaching as a text file

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

No it wasn't sourcerer so we can't blame Peter!

It was just a snippet I picked up for the last site to save me manually changing the date every year.

The code Rob provided is working fine and rendering as:
Copyright © 2014

The only fundamental diff I can see between Rob's code and mine is the bracket 'type' around the 'source' - I used curly brackets & Rob used angle brackets - could that be the reason why?

Thanks for checking this out :)

Hils
  • hils's Avatar
  • hils
  • 12 Month Developer
  • 35 posts
  • Karma: 0
The administrator has disabled public write access.
Those are the tags for sourcerer :)
Copyright © {source}<?php echo date('Y'); ?>{/source}
We didn't expect it to work but it does :)

ah js and php are largely a mystery to me so not sure on that score

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