Calendar Plugin, modified by Tory

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

Moderator: Tata

Holger
Site Admin
Posts: 3470
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

Calendar Plugin, modified by Tory

Post by Holger » Mon Jul 21, 2008 5:55 pm

Hi folks,

I try to use the modificated version 0.9 of svarrers calendar plugin.
But it seems that the latest version on the wiki is not as described at this thread and in the help file.

In fact I miss the feature to hide some fields in the event page:

Code: Select all

['event_show_time'] = true - Select whether Time field shall be visible in Event Page
['event_show_location'] = true  - Select whether Location field shall be visible in Event Page
['event_show_link'] = true  - Select whether Link field shall be visible in Event Page
A search for this variables on index.php returns nothing :? .

Do I have to re-implement that features or is somebody out there with another version?

Holger

Hugorm
Posts: 112
Joined: Thu May 22, 2008 6:45 pm
Location: Denmark

Re: Calendar Plugin, modified by Tory

Post by Hugorm » Mon Jul 21, 2008 9:07 pm

The code seems to be present in version 0.7 at the wiki (calendar25092007.zip ) around line 348

Hugo

Holger
Site Admin
Posts: 3470
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

Re: Calendar Plugin, modified by Tory

Post by Holger » Mon Jul 21, 2008 9:15 pm

Hi Hugo,

thanks for reply!
Hugorm wrote:The code seems to be present in version 0.7 at the wiki (calendar25092007.zip ) around line 348
Yep,
but the changes of version 0.8 ( EditEvents(); ) and 0.9 are not included :? .

Holger

zobios
Posts: 19
Joined: Fri Jul 04, 2008 10:25 pm
Location: Schleswig-Holstein, Germany
Contact:

Re: Calendar Plugin, modified by Tory

Post by zobios » Tue Jul 22, 2008 1:07 pm

Hi,

i found this in config.php (.....\plugins\calendar\config) in my local installation. Is this, what you are searching for?
I tried "true" or "false" in some lines, but can't get an effect.
I can also set some options in the plugin-config-menu.

<?php
$plugin_cf['calendar']['week_starts_mon']="true";
$plugin_cf['calendar']['prev_next_button']="true";
$plugin_cf['calendar']['show_between_dates']="true";
$plugin_cf['calendar']['date_delimiter']=".";
$plugin_cf['calendar']['calendar_width']="160";
$plugin_cf['calendar']['event_width_date']="12%";
$plugin_cf['calendar']['event_show_time']="false";
$plugin_cf['calendar']['event_width_time']="6%";
$plugin_cf['calendar']['event_width_event']="31%";
$plugin_cf['calendar']['event_show_location']="false";
$plugin_cf['calendar']['event_width_location']="26%";
$plugin_cf['calendar']['event_show_link']="false";
$plugin_cf['calendar']['event_width_link']="25%";
?>

Holger
Site Admin
Posts: 3470
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

Re: Calendar Plugin, modified by Tory

Post by Holger » Tue Jul 22, 2008 1:54 pm

Hi zobios!

Thanks for your reply.
You're right, there's no effect on some options in the latest version 0.9.

I want to get rid of the location, time and link fields in the events table.
This should work with versions up to 0.7.
But the feature is removed in version 0.9 (downloaded from the wiki).
And I'm wondering about that... :?. There's no hint in the changelog or in the help file.
Maybe it's not the latest zip-file on the wiki?

I've commented out some lines in index.php and it works for me.

Holger

zobios
Posts: 19
Joined: Fri Jul 04, 2008 10:25 pm
Location: Schleswig-Holstein, Germany
Contact:

Re: Calendar Plugin, modified by Tory

Post by zobios » Tue Jul 22, 2008 2:13 pm

Holger wrote: I want to get rid of the location, time and link fields in the events table.

I've commented out some lines in index.php and it works for me.
Like me.
Would you please tell me which lines have to be commanted out.
I am a beginner when it comes to php. :?

regards

Holger
Site Admin
Posts: 3470
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

Re: Calendar Plugin, modified by Tory

Post by Holger » Tue Jul 22, 2008 6:29 pm

zobios wrote:Like me.
Would you please tell me which lines have to be commanted out.
Wich fields do you want to hide?
Hmm, I think it's better to re-implement that "hide"-feature.

Holger

zobios
Posts: 19
Joined: Fri Jul 04, 2008 10:25 pm
Location: Schleswig-Holstein, Germany
Contact:

Re: Calendar Plugin, modified by Tory

Post by zobios » Tue Jul 22, 2008 6:46 pm

Holger wrote: Wich fields do you want to hide?
I just need the date und the event, no time, no link, no location.
Holger wrote: Hmm, I think it's better to re-implement that "hide"-feature.
Unfortunately much too heavy for me. :(

(It's a little bit funny - two german guys talking in english. One (me :oops: ) has some difficulty.)

regards

Hugorm
Posts: 112
Joined: Thu May 22, 2008 6:45 pm
Location: Denmark

Re: Calendar Plugin, modified by Tory

Post by Hugorm » Tue Jul 22, 2008 7:13 pm

Holger
Hmm, I think it's better to re-implement that "hide"-feature.
Do you see any reason why not?
(Spam risc, slow, heavy testing or so on - regi() seems to be used in index.php).

Hugo

Holger
Site Admin
Posts: 3470
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

Re: Calendar Plugin, modified by Tory

Post by Holger » Tue Jul 22, 2008 9:28 pm

Hugorm wrote:Do you see any reason why not?
With a quick look on the code: No, but it's wasted time when the solution is already out there... :?

Holger

Post Reply