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 
Display what Category is showing

 
Post new topic   Reply to topic     Forum Index -> Joomla / Mambo Integration
View previous topic :: View next topic  
Author Message
copeland



Joined: 05 May 2008
Posts: 20

PostPosted: Mon Jun 30, 2008 12:45 am    Post subject: Display what Category is showing Reply with quote

I want to get some text saying

"Displaying <--category--> Events" and if none is selected then read, "Displaying All Categories and Events"

What variable can i call to do this?

I also want to call the current date...

Cheers
Mike
Back to top
View user's profile Send private message
copeland



Joined: 05 May 2008
Posts: 20

PostPosted: Mon Jun 30, 2008 1:20 am    Post subject: Reply with quote

I figured out how to call the selected caletgory...

Code:

echo(" Displaying events from: ".$_cur_cal->get_category_name($GLOBALS['cal']->event_types));


This works fine for when a category is selected... but when none is (showing all) it display's nothing and i would like it to say "All Categories"

I still haven't figured out how to show the date of what the calendar is on...

-Mike
Back to top
View user's profile Send private message
copeland



Joined: 05 May 2008
Posts: 20

PostPosted: Mon Jun 30, 2008 1:27 am    Post subject: Reply with quote

haha ok... so i just figured it out... i shouldn't post these questions so quick...well i guess it might help people out who are having similar problems...

Code:
   if($GLOBALS['cal']->event_types) {

echo("Displaying events from: ".$_cur_cal->get_category_name($GLOBALS['cal']->event_types));

   } else {

echo("Displaying events from all categories");

   }


Is this ok to use Ian? Or should i be using another method?
Back to top
View user's profile Send private message
stevebab



Joined: 07 Apr 2008
Posts: 14

PostPosted: Fri Aug 08, 2008 2:39 am    Post subject: Great solution! What about adding it to the print.php Reply with quote

Hi! Great solution. This works for me. However, I have two small glitches:

1. The same code doesn't work when I embed it in the print.php file.

2. I can't get it to display the proper category if I have my "All Calendars" view selected. It says it is showing all calendars.

Do you have any ideas?

Steve
Back to top
View user's profile Send private message
copeland



Joined: 05 May 2008
Posts: 20

PostPosted: Fri Aug 08, 2008 2:54 am    Post subject: Reply with quote

Hi stevebab...

Lucky for you i subscribe to topics lol

Here is my site http://www.webchild.com.au navigate to one of the calendars to see what i've done... i'm not sure i understand exactly what you mean with your problem...

Cheers
Mike
Back to top
View user's profile Send private message
stevebab



Joined: 07 Apr 2008
Posts: 14

PostPosted: Fri Aug 08, 2008 3:53 am    Post subject: Thanks for the fast reply! Reply with quote

We're just about to go to sleep here in San Diego ...

...unless we're web developers, of course. Smile

I see your calendar (btw, I like that template and use it on a couple of my sites!).

Fantastic concept!

However, I think I need something slightly different -- I'm trying to display the category in the printable view and can't seem to find the right variable.

event_types isn't showing anything.

Also, I am running multiple calendars, and my "All Calendars" view doesn't like to give the name of the category either.

Anyway, I'll keep looking!

Thanks again,

Steve
Back to top
View user's profile Send private message
copeland



Joined: 05 May 2008
Posts: 20

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

Ahhh goodluck then mate

Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Joomla / Mambo Integration 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.