Home · Links · Contact Us
Home arrow Forums
Home
Features
FAQ
Screen Shots
Modules
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 
Title on print out

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



Joined: 12 Dec 2007
Posts: 18

PostPosted: Thu Jul 17, 2008 6:29 pm    Post subject: Title on print out Reply with quote

Is there a way to put the title on the print out page so that when a person prints out a calendar, they know what calendar it is? Thanks!
Back to top
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5160

PostPosted: Mon Jul 21, 2008 4:00 pm    Post subject: Reply with quote

Hi,

I'm sorry, but there is no option for this as we're trying to conserve space on the printable view. If you'd like, we can move this over to the hacking thyme forum and you may add the PHP code into the printable view to do this.
Back to top
View user's profile Send private message Visit poster's website
peiqinglong



Joined: 12 Dec 2007
Posts: 18

PostPosted: Mon Jul 21, 2008 5:10 pm    Post subject: Reply with quote

Ian,

That would be great! Thanks!
Back to top
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5160

PostPosted: Wed Jul 23, 2008 6:28 pm    Post subject: Reply with quote

Hi,

Around line 103, just after the line containing <?php add:

Code:

 echo("<h3>{$_cur_cal->title}</h3>");


The surrounding h3 can be what ever you want. H2, add your own style etc..

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



Joined: 12 Dec 2007
Posts: 18

PostPosted: Wed Jul 23, 2008 6:55 pm    Post subject: Reply with quote

esoft_ian wrote:
Hi,

Around line 103, just after the line containing <?php add:

Code:

 echo("<h3>{$_cur_cal->title}</h3>");


The surrounding h3 can be what ever you want. H2, add your own style etc..

Let me know if you have any questions / trouble.


Ian, awesome! One question, is there a way to output the category also? For example if I'm viewing Calendar: Staff and I'm on category Investigators, is there a way for that to display like Staff - Investigators? Thanks!
Back to top
View user's profile Send private message
stevebab



Joined: 07 Apr 2008
Posts: 14

PostPosted: Fri Aug 08, 2008 2:18 am    Post subject: Were you able to do this? Reply with quote

I have been trying to add the selected category to the print view to no avail.

Any luck?
Back to top
View user's profile Send private message
peiqinglong



Joined: 12 Dec 2007
Posts: 18

PostPosted: Fri Aug 08, 2008 3:34 am    Post subject: Re: Were you able to do this? Reply with quote

stevebab wrote:
I have been trying to add the selected category to the print view to no avail.

Any luck?


Yea, easy, add this: {$_cur_cal->get_category_name($GLOBALS['cal']->event_types)}
Back to top
View user's profile Send private message
stevebab



Joined: 07 Apr 2008
Posts: 14

PostPosted: Fri Aug 08, 2008 4:25 am    Post subject: strange, but not working Reply with quote

Thanks for the fast help!

Interesting -- that's what I had in my code and it doesn't return a value.

It doesn't error either-- which is good, but I can't figure out what I'm missing.
Back to top
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5160

PostPosted: Fri Aug 08, 2008 4:50 am    Post subject: Reply with quote

Hi Steve,

Replace $GLOBALS['cal']->event_types with $cal->event_types in that line.
Back to top
View user's profile Send private message Visit poster's website
stevebab



Joined: 07 Apr 2008
Posts: 14

PostPosted: Fri Aug 08, 2008 5:08 am    Post subject: Hmm Reply with quote

Hi Ian,

Great to hear from you! Your posts are really a sight for sore eyes!

Thanks for that, but I still get the same result -- no value returned, but no error.

Here's what I've got:

Code:
echo("Client: ".$_cur_cal->get_category_name($cal->event_types));


See anything weird.
Back to top
View user's profile Send private message
stevebab



Joined: 07 Apr 2008
Posts: 14

PostPosted: Fri Aug 08, 2008 5:49 am    Post subject: No progress yet Reply with quote

I'm also trying it this way without success:

Code:
echo("Client: {$_cur_cal->get_category_name($cal->event_types)}"); 
Back to top
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5160

PostPosted: Fri Aug 08, 2008 6:13 am    Post subject: Reply with quote

Hi Steve,

Are you placing that line somewhere below this line:

$cal->event_types = ($_GET['evnt_type'] ? $_GET['evnt_type'] : $_SESSION['evnt_type']);

?
Back to top
View user's profile Send private message Visit poster's website
stevebab



Joined: 07 Apr 2008
Posts: 14

PostPosted: Fri Aug 08, 2008 3:26 pm    Post subject: yep Reply with quote

Yeah, it is below that. Actually, I have it as a footer.
Back to top
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5160

PostPosted: Fri Aug 08, 2008 3:27 pm    Post subject: Reply with quote

Can you e-mail me your print.php please? ian@extros..
Back to top
View user's profile Send private message Visit poster's website
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.