Svarre Calendar: Tooltip on mouse over

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

Post Reply
pmollbrink
Posts: 7
Joined: Thu Aug 07, 2008 9:57 am

Svarre Calendar: Tooltip on mouse over

Post by pmollbrink » Tue Aug 26, 2008 9:42 am

Hi Guys,

I use the 0.9 Svarrer Calendar and I am curious to find out if it is possible to change the mouse over tooltip in the calendar?

As default the tooltip is "time + event" when pointing the cursor to a date with an event.

Is it possible to change that to "time + event + location" or "time + location"?

Cheers,

Patrick

pmollbrink
Posts: 7
Joined: Thu Aug 07, 2008 9:57 am

Re: Svarre Calendar: Tooltip on mouse over

Post by pmollbrink » Mon Sep 01, 2008 7:13 am

Anybody got a clue?

ZiPs
Posts: 633
Joined: Thu May 22, 2008 6:17 pm
Location: Faxe, Denmark
Contact:

Re: Svarre Calendar: Tooltip on mouse over

Post by ZiPs » Mon Sep 01, 2008 10:32 am

Hi pmollbrink

Find the line 204 in index.php in canendar folder, it look like this.

Code: Select all

$event_title=trim($event_time_array[$keys]).strip_tags($event_array[$keys]);}
$event_time_array[$keys] it the time
$event_array[$keys] is the event
to put location on it, you can change the line to this.

Code: Select all

$event_title=trim($event_time_array[$keys]).strip_tags($event_array[$keys]).strip_tags($event_location_array[$keys]);}
/ZiPs
Preben Dahl | Webmaster cmsimple.dk | Projekt-og domæne ejer Gert Ebersbach

pmollbrink
Posts: 7
Joined: Thu Aug 07, 2008 9:57 am

Re: Svarre Calendar: Tooltip on mouse over

Post by pmollbrink » Mon Sep 01, 2008 11:57 am

Brilliant!

Thanks a million ZIPs!!


Cheers!
/Patrick

pmollbrink
Posts: 7
Joined: Thu Aug 07, 2008 9:57 am

Re: Svarre Calendar: Tooltip on mouse over

Post by pmollbrink » Mon Sep 01, 2008 12:32 pm

While we are still on the subject :)

How do I add a space between "Event" and "Location"?
Your excellent tweek puts the two strings together.

Cheers,
Patrick

ZiPs
Posts: 633
Joined: Thu May 22, 2008 6:17 pm
Location: Faxe, Denmark
Contact:

Re: Svarre Calendar: Tooltip on mouse over

Post by ZiPs » Mon Sep 01, 2008 1:26 pm

Hi pmollbrink

This give a space between "Event" and "Location"
But is not sure this is the right way, but it works :)

Code: Select all

$event_title=trim($event_time_array[$keys]).strip_tags($event_array[$keys])." ".strip_tags($event_location_array[$keys]);}
/ZiPs
Preben Dahl | Webmaster cmsimple.dk | Projekt-og domæne ejer Gert Ebersbach

pmollbrink
Posts: 7
Joined: Thu Aug 07, 2008 9:57 am

Re: Svarre Calendar: Tooltip on mouse over

Post by pmollbrink » Mon Sep 01, 2008 1:35 pm

Excellent ZIPs!

Right way or not, it works and it's simple :D

Cheers!
Patrick

ZiPs
Posts: 633
Joined: Thu May 22, 2008 6:17 pm
Location: Faxe, Denmark
Contact:

Re: Svarre Calendar: Tooltip on mouse over

Post by ZiPs » Mon Sep 01, 2008 1:42 pm

Happy to help, and it acts as you want :D

/ZiPs
Preben Dahl | Webmaster cmsimple.dk | Projekt-og domæne ejer Gert Ebersbach

Post Reply