Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8039 Posts in 1852 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Event Text Color in Grid View  (Read 263 times)
0 Members and 1 Guest are viewing this topic.
Howard
New Member
*

Karma: 0
Offline Offline

Posts: 2

Consultant


« on: May 07, 2003, 07:26:00 AM »

To make it more obvious to viewers that it is a link, I want to change the color of the Events Title display in Grid View.

I did this once before but have forgotten how I did it!

Howard

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 227

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: May 07, 2003, 12:52:00 PM »

** I want to change the color of the Events Title display in Grid View. **

Either add font color HTML code to where the link is printed or add CSS code there and at the top of the template.

The following previous messages may help as well.
Color coding Events
add color choice [for] display of event title

BTW. Both those links are found linked from the site linked below.

Dan O.
Unofficial CalendarScript - Mods and Plugins site


------------------

Logged
Howard
New Member
*

Karma: 0
Offline Offline

Posts: 2

Consultant


« Reply #2 on: May 07, 2003, 02:15:00 PM »

Thank you. I am grateful for your assistance.

I think I must have made a stupid error because I get an error message after making the changes you suggested.

This is a snippet of the pertinent section:

   $rowheight = "HEIGHT=\"".int(90/$GRID_ROW_COUNT)."%\"";
   }
sub colorize {
my $details = shift;
   $details->{'title'} = "<font color='" . $details->{'color'} . "'>" . $details->{'title'} . "</font>";
  }if ($VIEW eq "EVENT") {
       colorize ($EVENT->{'details'});
}
elsif ($VIEW ne "Search") {
foreach $EVENT (@$EVENTS) {
colorize ($EVENT->{'details'});
        }
      }
else {
foreach $EVENT (@$SEARCH_RESULTS) {
colorize ($EVENT->{'details'});
        }
      }
%>
<HTML>  

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 227

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: May 07, 2003, 04:25:00 PM »

** I get an error message after making the changes you suggested. **

What I suggested was "Either add font color HTML code to where the link is printed or add CSS code there and at the top of the template". It looks like you tried one of the modifications I linked to and I don't know where you went wrong.

I now see that there is an administration option to change link colors. I don't know if it applies to just those on the calendar grid or all of them. You can try it to see what is does.

Go to the Administration section's "Template Preferences" and try changing the "Link Color:"

Dan O.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: