Upcoming Events sidebar plugin how to change the eventcolor

Creating and modifying plugins.
Post Reply
foulapi
Regular
Posts: 10
Joined: Mon Apr 21, 2008 10:48 pm
Location: Dour -Belgium
Contact:

Upcoming Events sidebar plugin how to change the eventcolor

Post by foulapi »

I use this Events sidebar pluggin by typing directly the event and it is working fine :
exemple :
<events>
<event summary="Corrida Blidegarienne 7,7kms" location="Blaugies" dtstart="20080823T1600" dtend="20080823T2000" description="Organisation" />
</events>

I use the bulletProof template and when displayed, the color of the event is dark gray on a dark bacground which is not very readable (location and date are dark red so fine) see http://www.obj.be/serendipity.

Is it an easy way to change the font color of the event to display and if possible by inserting html code or similar when typing the event in the pluggin.

Thanks for the help

Pierre
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Unfortunately, the author put the style directly into the element. You might manage to get around it by setting the color or sidebar text to "!important" in your template. In your case, that's blue_style.css, line 112:

Code: Select all

#serendipityLeftSideBar, #serendipityRightSideBar {
color:#505050 !important;
}
If that doesn't work, you'll have to edit the plugin. Although it's a sidebar plugin, it's contained in plugins/serendipity_event_microformats/serendipity_plugin_microformats.php.

Around line 193 or so, you'll see the style, including the color, that's being used for the elements of the event. You can change them to whatever you want.
Judebert
---
Website | Wishlist | PayPal
foulapi
Regular
Posts: 10
Joined: Mon Apr 21, 2008 10:48 pm
Location: Dour -Belgium
Contact:

Thanks Judebert

Post by foulapi »

Thanks a lot Judebert :lol:

I followed your second recommendation and modified the php file as suggested around line 193.

It is working fine and the display is now far more better

Pierre
Post Reply