The Thinkery

Not finding what you're looking for? Don't hesitate to contact us!

Before Posting...

Before posting questions in the forums, please be sure to read the FAQs by clicking on the FAQs link in the sidebar product menu. You must be logged in and have a valid subscription to access the SUPPORT FORUMS.
×
Support Policy Notice

As outlined in our Rules section (though never closely followed by our staff!), effective immediately we will no longer be taking time to provide customizations of our products.

Countdown display till release date

More
11 years 3 weeks ago - 11 years 3 weeks ago #5731 by migus
migus created the topic: Countdown display till release date
Hi, there.
I noticed that the members of my team become more responsible and productive when they see amount of days left until the project release date. Especially when they see how flowing seconds. So, I made the countdown display & want to share it here.


It's a simple hack. For implementation the code must be inserted in default.php in folder:
...home.../docs/components/com_projectlog/views/project/tmpl/
between lines:

<td width="25%" rowspan="3" style="border-left: solid 1px #ccc;" valign="top">
<div class="right_details">
<span class="content_header"><?php echo JText::_('RELEASE DATE'); ?>:</span><br />
<?php echo ($this->project->release_date != '0000-00-00') ? $release_date->toFormat('%a %d %b %Y' ) : '--N/A--'; ?>
//put here my code with script
</div>
<div class="right_details">
<span class="content_header"><?php echo JText::_('CONTRACT FROM TO'); ?>:</span><br />
<?php echo ($this->project->contract_from != '0000-00-00') ? $contract_from->toFormat('%d %b %Y' ) : '--N/A--'; ?>

The code with script in attached files: option for English and Russian (a little difference in plural forms :cheer: ).

Attachment countdown_hack-20100829.zip not found

Attachments:
Last Edit: 11 years 3 weeks ago by migus.

Please Log in or Create an account to join the conversation.

Moderators: vinny
Time to create page: 0.213 seconds