Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /home/abledesi/domains/abledesign.com/public_html/navfiles/log.php on line 126

AbleDesign - Support Forum

AbleDesign Forum Index AbleDesign

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
AbleDesign Forum Index
MyCalendar Discussion
color catagory
Post new topic   Reply to topic

Post new topic   Reply to topic    AbleDesign Forum Index -> MyCalendar Discussion
View previous topic :: View next topic  
Author Message
DonnaNJ
Window Shopper
Window Shopper


Joined: 20 Jun 2006
Posts: 24

PostPosted: Wed Jun 21, 2006 5:44 pm    Post subject: color catagory Reply with quote

I'm looking to color each catagory a different color - either the background or the letters or whatever.

I searched and came upon this:
>>

switch ($cat) {
case "1":
$color = "#0000ff";
break;
case "2":
$color = "#00ff00";
break;
case "3":
$color = "#ffffff";
break;
case "4":
$color = "#ff0000";
break;
default:
$color = "#dedede";
}


Then place $color (or whatever variable you choose to use) into the bgcolor tag for that location.

>>>

But I'm not seeing how to connect it to a catagory ? What am I missing ? What file would that be in ?

thanks

Donna
_________________
Donna

DBK Web Development
Back to top
View user's profile Send private message
Dan
Admin / Developer
Admin / Developer


Joined: 19 Feb 2001
Posts: 2057

PostPosted: Wed Jun 21, 2006 5:52 pm    Post subject: Reply with quote

The problem you're going to run into is that the category information never actually gets pulled into the month display. It's only used to filter out what you don't want shown. To get the category info, you'll need to modify the main db query in the middle of month.php and add the data to the $day_array assembly, then pull it apart in the day loop and highlight category specific items as desired.

Cheers,
Dan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
DonnaNJ
Window Shopper
Window Shopper


Joined: 20 Jun 2006
Posts: 24

PostPosted: Wed Jun 21, 2006 6:48 pm    Post subject: color catagories Reply with quote

I only want it for the week display.

I want a wek-at-a-glance that will show 5 different catagores for everyday.

Like this:

http://www.dbkwebdevelopment.com/CLIENTS/Office/Sample.html

So If I can either make boxes/rows like that - or just color code the event by catagory.

The above code was from your posting a few years back - does it work ? Where do I tell it which catagory gets which color.

Sorry to be dense - just getting into this new code.

thanks

Donna
_________________
Donna

DBK Web Development
Back to top
View user's profile Send private message
Dan
Admin / Developer
Admin / Developer


Joined: 19 Feb 2001
Posts: 2057

PostPosted: Sat Jun 24, 2006 8:11 pm    Post subject: Reply with quote

Sorry, I missed this one.

You're giving me way too much credit if you think I can remember a post from a few years back!

I take it this is the one you're referring to?

http://abledesign.com/forum/viewtopic.php?t=229

Looking back at it, I'm not entirely sure where I was headed with that thought. I don't think it's as easy as I was suggesting there.

Cheers,
Dan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AbleDesign Forum Index -> MyCalendar Discussion All times are GMT - 5 Hours
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


Powered by phpBB © 2001, 2002 phpBB Group


Home | Services | Pricing | Portfolio | About Us | Contact
Support | Programs | Purchase | Tutorials | Site Map

© 1999-2025 AbleDesign.com - Web Design that Can!