Roundcube Community Forum

Third Party Contributions => Old Style Plug-Ins => Topic started by: sz on May 08, 2007, 06:06:13 AM

Title: Calendar PlugIn
Post by: sz on May 08, 2007, 06:06:13 AM
Hey,

i developed a calendar plugin for RC 0.1-beta2. it´s a first version for non productive use.
for a start RC and the Calendar are bundled.

here the link to SourceForge:
http://sourceforge.net/projects/rccalendar/

feedbacks and lists of wishes are welcome!

best regards,
sz
Title: Re: Calendar PlugIn
Post by: Slug on May 09, 2007, 09:58:09 AM
Can we get a screen shot please ;)
Title: Re: Calendar PlugIn
Post by: sz on May 09, 2007, 12:38:05 PM
of course. ;)


(http://naich.na.funpic.de/calendar/RC+Calendar_week.png)


I know, the buttons are not very beautiful. If you have some handsome images, please send me them by mail. szels [at] gmx [dot] de

Title: Re: Calendar PlugIn
Post by: lodder on May 10, 2007, 04:59:27 AM
It seems nice but when is it going to be added as a plugin ?
Title: Re: Calendar PlugIn
Post by: sz on May 10, 2007, 05:52:37 AM
Thx.
As a real plugin it will not appear until the RC plugin API is implemented.
But if you would be satisfy with a patch (just 3 files has to be modified + localization files), i will publish a version without RC and give the necessary instructions to include the calendar. This will appear in 3-4 weeks. I have to add some stuff right now.
Title: Re: Calendar PlugIn
Post by: lodder on May 10, 2007, 07:55:30 AM
oke that seems nice

and when does the api for plugins going to be released
Title: Re: Calendar PlugIn
Post by: sz on May 11, 2007, 11:41:37 AM
i don´t know. this should be answered by the RC developer.
Title: Re: Calendar PlugIn
Post by: Slug on May 11, 2007, 11:55:07 AM
The way things have been going the last 2 months, I very long time :'( BTW nice calendar.

Michael
Title: Re: Calendar PlugIn
Post by: paritycheck on May 12, 2007, 04:37:05 AM
WOW, this is a great calender keep up the great work guys...
Title: Re: Calendar PlugIn
Post by: sz on May 14, 2007, 06:52:32 PM
Ups, I have forgot to note that the rccalendar.zip contains a PHP5 version of the calendar. ::)
I have now published on http://sourceforge.net/projects/rccalendar/ a version especially for PHP4.
Title: Re: Calendar PlugIn
Post by: michelbacher on May 19, 2007, 05:52:35 AM
Hi,

the calender plugin is looking quite good. Do you have a description, how I can implement it into the newes release of roundcube?

What do I have to change?

Thanks in advance.
Fabian
Title: Re: Calendar PlugIn
Post by: Florianer on May 29, 2007, 09:34:31 AM
Hi,

I have webspace from All-Inkl.com and they have RoundCube listed in there Software Installer. So I tried it out - this is 2 days ago, and I'm fascinating. Today I had a look around alternative AJAX-webmailer, but I guess, I stay with RoundCube (Zimbra is the only one with looks nice and comforable too). Looking about Plug-ins, I found this nice calendar. Now, this is my first post, I know, but I want to know, if your are going on working on it, because I found a few points, I'm not glad with.
1) The entry-page looks like the empty contact page - why not (user defined) week overview (sorry found Wochenansicht not on pons, or is it right?)
2) How can I localize the calendar labels OR why are only the 5 menu buttons localized?
3) If I create a calendar, I can set a description. Where is it supposed to show up?
4) It would be nice to create a new entry by clicking on date/time on the calendar -> pre-fulfilled
  - but it would be much nicer, if I can draw a rectangle to mark a time period. This brings me to my next point.
5) You allow a time period for a new entry - why is this entry only shown on the start time. Wouldn't it be a more optical 'highlight', if this entry will appear in "a colored div"?
6) I can set up more than one calendar - Here would be a optical separation very helpful.
7) I just tested it out (because of 6 & I was curious :P), if this second test calendar is also visible to others. Didn't work... OK. Better ;) but did you see the possibility to share a calendar, or is this meant by "invite someone" what will come soon?

hmm... I think, I got all points :) Hope, you will see this as helpful thought / questions and not as a negative critic on your work. I just had a quick overview over your code - I see, I need to get in touch with AJAX. That is a so nice playground...

nice day and best greetings from Karlsruhe, Germany
Florian Mycka
Title: Re: Calendar PlugIn
Post by: SKaero on May 30, 2007, 08:15:23 PM
I really like the start of this calendar plug in I am realy looking forward to seeing this as time goes on! Thanks!
Title: Re: Calendar PlugIn
Post by: NaiosKae on June 01, 2007, 11:53:38 AM
Hi,

Is it possible to only have changes to apply instead of the whole rc+rccal ?

I already have installed enhancments and I don't want to loose them.

Thanks a lot
Title: Re: Calendar PlugIn
Post by: sz on June 14, 2007, 01:01:44 PM
Hi,

sorry for my long absence and thx for the great feedback.
Next week I will publish a version which contains only the plugin files.

@Florianer: thanks for your criticism and ideas, thats why I released this early version.
1) no problem
2) this first version has no real localization (only the 5 buttons), is on todo list
3) & 6) nowhere, but i will add a box where you can (de)activate your calendars. In this box you can read your description
4) & 5) OK, is on todo list
7) If you give a party, you can add this event in your calendar. In the invitation textbox you can add email adresses of your friends. They will receive an invitation by email with the details of this event. Then they can refuse or accept your invitation. In the event details you can see the status of your invited guests.

It seems I have a lot to do. :D
If someone wants to help me, feel free to contact me. ;D
Title: Re: Calendar PlugIn
Post by: leftquark on July 10, 2007, 01:09:09 PM
Any updates?
Title: Re: Calendar PlugIn
Post by: Florianer on August 08, 2007, 03:42:26 AM
Hey sz, are you still working on this nice calendar? I ask, 'cause I want to 'join' and see this calendar plug in as a core part of RoundCube. I installed SVN 666 about 1 hour ago and would have a calendar ;) I am not a web programmer with 10 years work experience, but I am a student in informatics and I like web apps much and maybe I find enough time and have a little knowledge to improve this project.
Title: Re: Calendar PlugIn
Post by: rhuckle on August 15, 2007, 08:49:11 PM
nice plugin and yes i had trouble trying to get working with latest roundcube (0.1-rc1) also ...

any updates with manual install instructions with the files would be great without being bundled with roundcube, also having it work with the latest version (0.1-rc1) would be great
Title: Re: Calendar PlugIn
Post by: goldim on September 11, 2007, 10:15:14 AM
Hei ...

This plugin still in development ?
Title: Re: Calendar PlugIn
Post by: seansan on October 20, 2007, 12:07:13 PM

Wondering if this project has been updated to work with current SVN and if there is some kind of install to make it work ....
Title: Re: Calendar PlugIn
Post by: igor on October 29, 2007, 11:36:25 AM
a "howto" integrate the calendar in newer installitions would be nice ;)
witch files are modified and witch are nessesary to install only the calendar to an existing roundcube installation...
Title: Re: Calendar PlugIn
Post by: Razvan on November 05, 2007, 10:44:10 AM
Something based on RC2 ?
And I need also manual instructions.
THX
Title: Re: Calendar PlugIn
Post by: youds on November 05, 2007, 12:54:45 PM
Quote from: seansan

Wondering if this project has been updated to work with current SVN and if there is some kind of install to make it work ....

:D
Title: Re: Calendar PlugIn
Post by: spriebe on November 08, 2007, 03:47:36 AM
Nobody here anymore?
Title: Re: Calendar PlugIn
Post by: SKaero on November 08, 2007, 04:25:02 AM
Well no one has head any thing new about this plug-in hope it get up dated soon!
Title: Re: Calendar PlugIn
Post by: Florianer on November 08, 2007, 12:55:59 PM
Hopefully it will go on with the 0.3-beta Plugin API. Loading a module inside the settings panel instead of hacking code manually would be better for developer and for users, right?
Title: Re: Calendar PlugIn
Post by: spriebe on November 08, 2007, 01:42:56 PM
the question is - when will we have the 0.3 beta :-) :-)
Title: Re: Calendar PlugIn
Post by: jmartin417 on December 10, 2007, 03:53:53 PM
I made an attempt at moving all the calendar related code and files to RC2 from the CVS version included in the calendar download. I downloaded both and then used winmerge. The calendar button shows up in the taskbar but nothing happens when I click on it. I'm hoping someone can help.

The attached zip file contains all the files I updated. I left copies of the original calendar file and also the original rc2 files.

It would be nice to get this calendar script up to rc2.

Thanks,
Jeff
Title: Re: Calendar PlugIn
Post by: chinaman on December 22, 2007, 10:46:57 PM
Hi,

yes a callendar as plugin would be a great feature. (Just for the ones who are using a calendar)
I was wondering if somebody could give me some information about the calendar plugin:

1. Where does the calendar store its information? (inside the database or separate file)
2. I am extensive user of Thundrbird with Lightning Callendar plugin (based on sunbird callendar) and it would be great if this callendar could be syncronized with the one in Roundcube. - What do you think of using WebDav ?

Regards
Thomas
Title: Re: Calendar PlugIn
Post by: XarK on April 14, 2008, 02:44:22 PM
hi.

Any updates?
I tried on PHP5, works fine but is old version....
Is even without previewing messages... come one guys! :)
Title: Wow Sounds Good
Post by: subzonic on May 07, 2008, 05:40:35 AM
Great job. :D
Title: SERVICE CURRENTLY NOT AVAILABLE! Error No. 1f4)
Post by: truderinger on May 23, 2008, 05:11:57 AM
Hallo,

thanks to rccalendar. I install rcc and I see this. I click on the button writte and the system say

SERVICE CURRENTLY NOT AVAILABLE!

Error No. 1f4)


My roundcube works very fine. I fond this with google:

-------------------------------------
Check your MYSQL table 'users' under the 'preferences' field, it is set to NOT NULL to begin with, however the INSERT string that creates a users upon login doesn't populate the field, therefore we have to change the table structure to the following...

CREATE TABLE users (

    user_id int(10) UNSIGNED NOT NULL AUTO_INCREMENT, username varchar(128) NOT NULL, mail_host varchar(128) NOT NULL, alias varchar(128) NOT NULL, created datetime NOT NULL DEFAULT '0000-00-00 00:00:00', last_login datetime NOT NULL DEFAULT '0000-00-00 00:00:00', language varchar(5) NOT NULL DEFAULT 'en', preferences text NOT NULL DEFAULT , PRIMARY KEY(user_id)

) TYPE=MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci;
----------------------------------

My database is o.k.. Whats wrong? Thanks for our help!

Jimi Bondi
Title: Webmail
Post by: stefa.rossi on August 29, 2008, 06:29:51 PM
Is there a calendar for Roundcube Webmail v0.2-alpha?
Title: Calendar PlugIn
Post by: lacri on July 02, 2009, 07:05:12 AM
has anyone this great plugin for RC 0.2.2 or 0.3 ?
i think this is a beautifull calendar script for RC.

looks been a little bit nicer more than the calendar from myroundcube
Title: Calendar PlugIn
Post by: lacri on July 02, 2009, 10:06:30 AM
i have ported this to the current SVN ... hmm calender dosnt work the iframe is empty no javascript or php errors ... i have add to func the output handlers

$OUTPUT->add_handlers(array(
  'calendarframe' => 'rcmail_calendar_frame',
        'calendarlist' => 'rcmail_calendar_list',
        'daycontent' => 'rcmail_day_content',
        'weekcontent' => 'rcmail_week_content',
        'monthcontent' => 'rcmail_month_content',
        'seteventbuttons' => 'rcmail_set_event_buttons',
        'createeventformstart' => 'rcmail_create_event_form_start',
        'createeventformend' => 'rcmail_create_event_form_end'
        ));


and i remove the parse_template calls and add the $OUTPUT->send(); calls only the calendar admin page will work i have also create a calendar and is correct in the DB.

Only by opening the page is nothing shown.
Title: Calendar PlugIn
Post by: lacri on July 07, 2009, 06:41:35 AM
now works the port, and i work on some improvements.

here is a screenshoot of current status ... :)

when is finish i will post the calendar files with changes
Title: Calendar PlugIn
Post by: lacri on July 22, 2009, 05:41:56 AM
here is a new screenshoot to show the current status

mass little style optimizations
new see week number
higlight weekends and current day
and many other

since now RC 0.3 trunk supports in the API new Tasks
i will port this PlugIn into API as new Styled API PlugIn.
Title: Calendar PlugIn
Post by: alo on September 23, 2009, 07:54:07 AM
Hi,
there some news about rccalendar for rc 0.3 and php5. Could i help in some way?

thanks,
alo
Title: Calendar PlugIn
Post by: flattery on November 12, 2009, 10:00:12 PM
So how many years does it take to actually make a plugin.  I am assuming that after this much time that it is actually abandoned.

I am unable to find a calendar plugin for RoundCube which really surprises me as a calendar is hugely integral with webmail.  Gmail, Hotmail, Outlook, and so on... they all have calendars.

So since no one else is up to this task I guess I will need to start working on one if I don't find one soon and it won't take years to get into a usable plugin.
Title: Calendar PlugIn
Post by: toetag on November 13, 2009, 12:11:42 AM
have you tried rosali's webcalendar plugin ?

myroundcube - Project Hosting on Google Code (http://code.google.com/p/myroundcube/)

k5n.us: WebCalendar Home Page (http://www.k5n.us/webcalendar.php)
Title: Calendar PlugIn
Post by: flattery on November 13, 2009, 08:55:35 AM
I did a little bit, but it doesn't seem to integrate well.  Even on the demo you have to login to webcalendar separately.

Unless I am wrong. Perhaps I am missing something or some setting, but I am looking for something to be seamless.
Title: How to get current user
Post by: flattery on November 13, 2009, 12:23:02 PM
I thought I had it working seamless with some code modification, but I was apparently wrong in thinking that $_SESSION['validuser'] gives me a unique ID for the current user.

I assumed this was the variable to use, but when I logged in with two different users I got the same variable.

So can anyone tell me how to get the id or username or something unique for the current user?  I have been searching the code and trying things but nothing that I find seems to work.
Title: Calendar PlugIn
Post by: flattery on November 13, 2009, 02:46:37 PM
Well I got it to work for me seamlessly.  Had to hack up the code a little since I don't know how to grab the user_id, but it works.

Just through in a cookie to initialize the current user_id and then grabbed it in webcalendar.

Nice calendar when it works right.
Title: Calendar PlugIn
Post by: rosali on November 14, 2009, 12:57:20 AM
Please post your hacks!
Title: Calendar PlugIn
Post by: flattery on November 14, 2009, 07:53:55 PM
Well basically I set it up as single user mode and then in the config.php file I set the user.

I will post my hack in a few days when I get some time, but it does need a little more work and it is definitely a hack.
Title: Calendar PlugIn
Post by: gjrweb on November 15, 2009, 09:03:33 AM
Does this calendar work for 0.3.1?
Title: Calendar PlugIn
Post by: rosali on November 15, 2009, 10:02:31 AM
Yes, it is designed for v0.3.1.
Title: Calendar PlugIn
Post by: flattery on November 18, 2009, 11:41:10 AM
Edit: oops think I forgot something
Title: Calendar PlugIn
Post by: flattery on November 18, 2009, 12:09:15 PM
Ok here is my hack.  It works, but I do want to figure out a better way to make this work so that there is no hacking of the code needed.
After installing webcalendar make the following changes:


1. First to get the current RoundCube user ID I opened the RoundCube file program/include/rcube_user.php and went to line 47 just inside the _construct function.  After this line: $this->db = rcmail::get_instance()->get_dbh();
I set a cookie by adding this line: setcookie("webcal_user_id",$id);

so it now looks like:
Code: [Select]
 $this->db = rcmail::get_instance()->get_dbh();
  setcookie("webcal_user_id",$id);



2. Then in the webcalendar file at plugins/webcalendar/app/includes/config.php I grab the current roundcube user id.
Around line 207 you will find a line that like:
Code: [Select]
$single_user_login = $settings['single_user_login'];
Change that line to:
Code: [Select]
$single_user_login = $_COOKIE['webcal_user_id'];

3. Open the webcalendar file plugins/webcalendar/app/includes/settings.php
and set the following lines to look like this:
Code: [Select]
user_inc: user.php
use_http_auth: false
single_user: true


Now it should work seamlessly, but there is one small problem left to fix.  Right now every new user will have full admin privileges. Until I figure out the fix for this all new users will need to be manually changed in the db to not be admins.


I have not tested this from scratch so hopefully I didn't miss something that I did.  So let me know if this doesn't work for you and I will try to see what I missed.
Title: Calendar PlugIn
Post by: flattery on November 18, 2009, 05:56:15 PM
A modification to step one would be to set the user_id in the webcalendar.php file.

in the function init() find the line:
 
Code: [Select]
$rcmail = rcmail::get_instance();and change it to:
 
Code: [Select]
$rcmail = rcmail::get_instance();
  $user = $rcmail->user;
  setcookie("webcal_user_id",$user->ID);


Still working on making it all work nicely from install to end.
Title: Calendar PlugIn
Post by: flattery on November 18, 2009, 06:22:50 PM
Here is the final hack to make users not have admin privileges:

Open the file plugins/webcalendar/app/includes/classes/WebCalendar.class
and at line 631 you should find the line:
Code: [Select]
array ( $single_user_login, md5 ( $single_user_login ), 'Y' ) ) )

change the Y to a N so it should look like this:

Code: [Select]
array ( $single_user_login, md5 ( $single_user_login ), 'N' ) ) )
Title: Calendar PlugIn
Post by: rosali on November 19, 2009, 07:40:54 AM
The following simple fix stopped all my trouble with the integrated login:

webcalendar.php

    $rcmail->output->set_env('webcal_user', $rcmail->user->data['username']);
    $rcmail->output->set_env('webcal_enc_user', substr(base_convert( md5(trim($rcmail->user->data['username'])), 16, 36 ),0,25));
//Begin fix
    if($rcmail->user->data['password'])
      $rcmail->output->set_env('webcal_pass', $rcmail->user->data['password']);
    else
      $rcmail->output->set_env('webcal_pass', $_SESSION['password']);
//End fix
    $langs = $rcmail->config->get('cal_language');
    $lang = $langs[$_SESSION['language']];


Check @ RoundCube Webmail :: Welcome to RoundCube Webmail (http://mail4us.net/dev) ... demo user login and first time login of a new registered user should work now.
Title: Calendar PlugIn
Post by: flattery on November 19, 2009, 10:42:26 AM
Great, I will have to try your fix out.  I was just packaging mine up along with some changes I made to the installation.

I was taking out all the unnecessary installation stuff such as the authorization type, since people are downloading it as a RoundCube plugin there really isn't the need for a choice there... it just confuses people.  I also want to get rid of the sql settings and just use RoundCube sql settings, or give an option or have RoundCube sql be already filled in my default.

Also I made some modification to get rid of all those dumb scroll bars that appear on every day of the month when there is nothing to scroll.
Title: Calendar PlugIn
Post by: rosali on November 19, 2009, 11:05:01 AM
Please feel free to post the result of your adjustments when finished. Improvements are welcome every time.
Title: Calendar PlugIn
Post by: flattery on November 19, 2009, 12:02:20 PM
First to get rid of the scroll bars the way I found to fix it was to get rid of the box around the day of the month or set it to float.

Since I could not find where this class was set I worked around it by going into the functions.php file and around line 4411 (just search for "dayofmonth") and I changed "dayofmonth" to "dayofmonths" and then I added a new class in a class file I could find which was theme.css, but then you have to add this to all your themes.

I set mine to float like this:
Code: [Select]
 .dayofmonths {
float:left;
    border:1px solid;
    border-width:0 1px 1px 0;
    padding:0 2px 0 3px;
    font-weight:bold;
    text-decoration:none;
    vertical-align:top;
  }
  .dayofmonths:hover {
    border-right:1px solid #0000ff;
    border-bottom:1px solid #0000ff;
    color:#0000ff;
background-color:yellow;

  }


The other way is to take is to take out the border then just remove the float and border lines.


Also as for the installation I just took the lines that didn't need options and set them to
Title: Calendar PlugIn
Post by: rosali on November 19, 2009, 03:16:19 PM
hmmm ... I don't see unnecessary scrollbars. Which browser? Which resolution? Could you please attach some screenies?
Title: Calendar PlugIn
Post by: flattery on November 19, 2009, 03:25:56 PM
I use Google Chrome and I notice this doesn't seem to affect Firefox, but here is a screen shot:

(http://starhostdesign.com/screenshot.jpg)
Title: Calendar PlugIn
Post by: rosali on November 20, 2009, 01:17:18 AM
Did you use a demo account of mail4us.net? I can't even reproduce it with recent Chrome on XP. If I can't reproduce it it's hard to fix it. Please register an account at mail4us.net. Configure the Calendar with your preferences and PM'me the login data.
Title: Calendar PlugIn
Post by: flattery on November 20, 2009, 09:26:19 AM
If you look at the screenshot you should be able to see that it is a demo account on your installation.

I get the scrollbars on the latest version of Chrome, the development version of Chrome and ChromePlus (a Chrome Mod). I get this on Windows 7 and on Windows XP.

Every installation of Chrome that I have on all my computers have the scroll bars and the only way I could get rid of them was to modify the style.
Title: Calendar PlugIn
Post by: rosali on November 20, 2009, 09:46:28 AM
Yes, but the demo account calendar preferences may have been modified by others. So please create your own account and send me the login data by PM. Also please let me know your screen resolution.
Title: Calendar PlugIn
Post by: flattery on November 20, 2009, 10:26:39 AM
I have tried with all themes and resolutions from 800x600 to 1280x768 to 2048x1536

All have scroll bars on all Chrome browser variations.

Some reason the day box takes up a couple more pixels than there is room for.
Title: Calendar PlugIn
Post by: flattery on November 21, 2009, 12:43:16 AM
Even Google Chrome on a Linux laptop has the scroll bars.

There is no configuration that or no way that I can make the scroll bars go away in Chrome without actually editing the css code of the calendar.
Title: Calendar PlugIn
Post by: mstar on November 24, 2009, 08:33:51 AM
Hi,
how do I install the webcalendar? Somebody has an tutorial?
Thanks
Title: Calendar PlugIn
Post by: Lazlo on January 23, 2010, 02:44:40 PM
I am writing a Calendar plugin based on jQuery weekCalendar: RoundCube Calendar (http://rc-calendar.lazlo.me/)
Title: Calendar PlugIn
Post by: SKaero on January 23, 2010, 04:46:52 PM
Do you have any screenshots?
Title: Calendar PlugIn
Post by: rosali on January 24, 2010, 01:21:26 AM
@ Lazlo:

I removed the pagecontent div in the template and use:

#calendar {
  width: 900px;
  margin-top: -15px;
  bottom: 20px;
  margin-left: 200px;
  overflow: auto;
}

There shouldn't a window scrollbar on a standard resultion 1280 x 1024.

Besides that, nice work!
Title: Calendar PlugIn
Post by: Lazlo on January 24, 2010, 02:06:43 AM
@skearo: No screenshots at the moment. Will add them soon.

@rosali: Thanks, fixed it.
Title: Calendar PlugIn
Post by: ontnugtering on July 15, 2010, 03:33:37 AM
Thank you very much. A very nice calendar!
I have questions:

a) How can I show all calendar events at once?
b) What are the details of Email notification? When will those be sent? Can I edit the behaviour? Can I have per-entry-notification?

EDIT: Oh, isn't this meant as an email reminder? This would be veeery helpful if we could receive email shortly before a calendar event occurs...

Thanks!
Michael
Title: Calendar PlugIn
Post by: rosali on July 15, 2010, 09:26:39 AM
Please post in an appropiate thread in API based plugins.
Title: Calendar PlugIn
Post by: jcreyesb on August 17, 2010, 06:45:14 PM
Quote from: flattery;23226
I use Google Chrome and I notice this doesn't seem to affect Firefox, but here is a screen shot:

(http://starhostdesign.com/screenshot.jpg)


this is the webcalendar plugin? how you integrated whit roundcube?