Home · Links · Contact Us
Home arrow Forums
Home
Features
FAQ
Screen Shots
Modules
Themes
Demos
Documentation
Forums
Contact Us
Download
Purchase
Quotes

" ... I want to tell you that your thyme product is functional and valuable beyond words. I cannot imagine why any portal would be without it. It is the cornerstone of our new project ..."

" ... Thanks for such a complete project, its making my job much easier. ..."

" ... I have now deployed 4 different calendars and our users love them ... "

" ... Easy to install and use and a great look/design. ..."

" ... This has to be the easiest to use program I think I've had to deal with at all this year. ..."


  FAQFAQ    SearchSearch  RegisterRegister   Log inLog in 
Auto Timestamp

 
Post new topic   Reply to topic     Forum Index -> Hacking Thyme
View previous topic :: View next topic  
Author Message
akamax_power



Joined: 10 Dec 2008
Posts: 10

PostPosted: Wed Dec 10, 2008 11:39 pm    Post subject: Auto Timestamp Reply with quote

Is there a way to have a timestamp at the top of a calendar to know when the last time any changes were made?

ex. Last Updated: 12/10/2008 15:37:00 by User: John

It doesn't even have to have the user just the date and time, preferably right next to where it shows the date, week, or month
Back to top
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Thu Dec 11, 2008 6:19 pm    Post subject: Reply with quote

Hi,

This is doable. If you want it next to the day / week / month tabs, you'll have to modify the theme. Can you tell me which theme you are using please?
Back to top
View user's profile Send private message Visit poster's website
akamax_power



Joined: 10 Dec 2008
Posts: 10

PostPosted: Thu Dec 11, 2008 11:26 pm    Post subject: Reply with quote

extrovert

thanks
Back to top
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Fri Dec 12, 2008 7:45 pm    Post subject: Reply with quote

Hi,

Edit themes/extrovert/functions.php in Thyme's folder and remove this at line 87:

Code:
      echo("\t<td width=204> </td>");


Then add this in its place:

Code:

   global $_cal_sql, $_cal_dbpref, $_cur_cal;

   $last_updated = null;

   if($_cur_cal->id && !$_cur_cal->type) {

      list($last_updated) = $_cal_sql->query("select max(updated) as `u` from {$_cal_dbpref}Events
         where calendar = ". intval($_cur_cal->id));

      $last_updated = "Last Updated: ". _ex_date("n/j/Y G:i", _ex_localtime($last_updated['u']));

   }

   echo("\t<td width='204'> {$last_updated}&nbsp; </td>\n");


Let me know if you have any trouble.
Back to top
View user's profile Send private message Visit poster's website
akamax_power



Joined: 10 Dec 2008
Posts: 10

PostPosted: Fri Dec 12, 2008 8:11 pm    Post subject: Reply with quote

Perfect!

Thanks
Back to top
View user's profile Send private message
akamax_power



Joined: 10 Dec 2008
Posts: 10

PostPosted: Fri Dec 12, 2008 9:32 pm    Post subject: Reply with quote

Actually, one more thing. How do i add that to the printview?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Hacking Thyme All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
© 2005 eXtrovert software unless otherwise noted. All rights reserved.
Portions © 2004 Ben Brown. All rights reserved.
Trademarks are property of their respective owners.