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


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationPlugins (Moderators: scott, DanO, Marty)CSR Plugin - Observation
Pages: [1] 2 3   Go Down
Print
Author Topic: CSR Plugin - Observation  (Read 2631 times)
0 Members and 1 Guest are viewing this topic.
Keith G
Guest
« on: December 19, 2002, 12:55:00 PM »

  I have downloaded and installed the plugin and could not get the notification screen to come up. After checking the set up a few times I have gotten it to work but only under one condition - that the calendar I want to have a reminder sent from is the default calendar. Currently we have 16 active calendars in use and it would be nice to have notices sent from any of these. Is there a simple line or two of code that would link the email reminder to the proper calendar?
  Thanks -
    Keith
Logged
michaelest
New Member
*

Karma: 0
Offline Offline

Posts: 0

Cagerattler


WWW
« Reply #1 on: December 20, 2002, 03:18:00 AM »

Keith,

Regarding other calendars...
If I understand your request, you want to "personalize" the reminder to a specific calendar.  I think this is already accounted for.  The link that is created by the script and included in the email uses 'HTTP_REFERRER' as its setting.

This method ensures that any parameters that call specific calendars (calendar=name) or template (template=new.html) are captured.  So, when the visitor receives the email, the link brings them back to the correct calendar or calendar template.

If you want to personalize the email address to reflect the calendar, that will take a bit of work, but not much.  I could parse the parameter in the HTTP_REFERRER to set the email name. If "name" exists, then email = name@domain.com, if name doesn't exist, then email = events@domain.com.  

Something like that.

Did this answer your question? Let me know. It would help if you sent me a link or two to check out.

- Michael


BTW- There are updated instructions for the CSR plug in.  You must add  ' &datestring=<%=$DAY->{datestring}%> ' to the two ViewEvent links. In the default calendar, they appear on lines 191 and 224.  See the instructions (http://www.estigoy.com/csremind) for detailed overview.

If you've already added the datestring attribute to your calendars, then this step can be skipped.


------------------
   michael@estigoy.com    
http://www.estigoy.com/csremind  

[This message has been edited by michaelest (edited December 20, 2002).]

Logged

Keith G
Guest
« Reply #2 on: December 20, 2002, 12:37:00 PM »

  Hi Michael -
   Let me try and clarify the problem. I have the csremind script installed and enabled. If I go to the details view of an event in a calendar other than the default calendar and click on the "Click here to set a reminder ... " link a new window pops up but instead of the reminder window I get another details view window from the default calendar. If I go to the default calendar and view the details of an event and click on the "Click here to set a reminder ..." link the  reminder window comes up as it should. Another problem has just cropped up though. When I fill out the form and click the "Set Reminder" button I get a 403 Forbidden page that says - You don't have permission to access /cgi-bin/ on this server.  The web server error log tells me that - attempt to invoke directory as script: /web/cgi-bin.
 So it's sounding like it's trying to run the cgi-bin directory as a program. I'll have to look and see if I have a path set wrong or something. Looks like it might be a Netscape 4.7 problem, IE 6.0 seems to work fine on the default calendar but it has the same problem on calendars other than the default that Netscape does.
 Other particulars -
Server running RedHat 7.3
Client - Windows XP

 I would send you a URL but the web server is on our private IP domain space so you wouldn't be able to get to it. I'll do some more de-bugging on this end too.
          Keith
 

Logged
Keith G
Guest
« Reply #3 on: December 20, 2002, 12:40:00 PM »

One other thing - I am using the dayspan set of templates, not sure if it matters.
Logged
michaelest
New Member
*

Karma: 0
Offline Offline

Posts: 0

Cagerattler


WWW
« Reply #4 on: December 20, 2002, 05:56:00 PM »

Keith,

Thanks for the info.  I'll install the dayspan templates and see if I can recreate the bug.  Unfortunately,  I won't be able to devote much time to this until Sunday morning.  I'll post what I find.

As a thought, do you think you're getting the error because it's trying to write to the data file in the cgi-bin directory? If you don't know where to change the file paths, let me know and I'll post the code to change.

*I'm also working on a 1.1 update that will include the ability to add the event to your Outlook Calenar (or other Vcalendar application - like Palm Desktop). You click the link, and it adds the event to your Outlook Calendar automatically.  Since you're on an internal network, do you think this would be useful?

- michael

------------------
    michael@estigoy.com    
http://www.estigoy.com/csremind  

[This message has been edited by michaelest (edited December 20, 2002).]

Logged

ooj
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #5 on: December 20, 2002, 11:28:00 PM »

Michael

Good initiative!
But sorry, it dosn't work in Opera 6.4 (and therefore maybee not in other browsers to?)
Think it is not W3C ok :-(

Hope you will find out.

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

Logged
ooj
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #6 on: December 20, 2002, 11:33:00 PM »

Forgot to say!

I did not install your plugin.
Just tried your demo at your homepage.
Worked fine in IE, but nothing happend in Opera when I clicked the link.


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

Logged
michaelest
New Member
*

Karma: 0
Offline Offline

Posts: 0

Cagerattler


WWW
« Reply #7 on: December 21, 2002, 03:52:00 AM »

ooj,

Thanks for the feedback.

I just found the issue and fixed it.  Using Opera 6.05 I was able to successfully go through the demo.  The same issue was apparent in Netscape 4.7.

The variable for the CGI_URL was not resolving correctly with these browsers.

I added an extra line to the CONF file so that the url to the script is expressly defined.

Try it again and let me know.

Thanks again,

Michael

------------------
  michael@estigoy.com  
http://www.estigoy.com/csremind  

Logged

Keith G
Guest
« Reply #8 on: December 21, 2002, 05:45:00 PM »

  OK, I have fixed one of the problems I was having using Netscape 4.7x. This was the problem where it was returning to the default calendar when clicking on "Click here to set a reminder .." when I was in a calendar other than the default. This is the change I made to the line in the file display_after_getEvent.pl -

print "

Click here
to set a reminder to attend this event on $csr_rdate.

";

Notice I added calendar=$calendar before the view=Event. Now this takes me to the appropriate screen to set the reminder.

 Where is the chunk of code located that the program goes to when you click the "Set Reminder" button? I'll look around some more for it but have not found it as of yet.

               Keith

Logged
michaelest
New Member
*

Karma: 0
Offline Offline

Posts: 0

Cagerattler


WWW
« Reply #9 on: December 22, 2002, 05:22:00 AM »

Keith,

The issue with Netscape and Opera was that they weren't resolving the $CGI_URL variable.  I modified the script and the conf file to include a $url_to_script variable that expressly defines the link.  Hopefully this fixes the issue you referenced.  V1.02 is available on my site.

Regarding the "Chunk of Code" when "set reminder" is selected,  notice that it sends a parameter "set_reminder=yes".  This flag causes the code to reference the 'sub csr_write_file' routine, and then the  the 'sub csr_confim' routine is called.

Near the top of the 'display_after_getEvent' routine, you'll notice a bunch of "if" statements.  Some of these check to see if a certain parameter is included in the query string (eg. "If ($csr_q->param('name'))" [ if this parameter exists in the query string].)

Hope that made sense.

BTW:  I have a Setup screen working and also have a "add to Outlook" feature (vCalendar) in beta.  I'll most likely release a 1.5 version within the next 2 weeks.

------------------
  michael@estigoy.com  
http://www.estigoy.com/csremind  

Logged

glienhard
New Member
*

Karma: 0
Offline Offline

Posts: 1

Captain


WWW
« Reply #10 on: December 23, 2002, 02:34:00 PM »

Michael, have you given any thought to being able to do the email remind right from the add event routine?  That seems like a very logical place for it.

Garry

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

Logged

__________________________
Captain Garry Lienhard
Cowlitz County Fire Dist 6
michaelest
New Member
*

Karma: 0
Offline Offline

Posts: 0

Cagerattler


WWW
« Reply #11 on: December 23, 2002, 08:59:00 PM »

>>...do the email remind right from the add event routine?<<

Others have suggested this and I guess I could look into it.

Help me with the application of having the Remind function in the Add event routine...

During the Add Event routine, I can envision two needs for the reminder feature being there:
1. to enter a list of email addresses of people that you want to remind automatically, and,
2. to allow "display / no display" of the reminder function for that particular event.

Are there other scenerios that I'm missing or not thinking of?  Please let me know.

My current view is that, as an end user, I don't know which event I'll be attending until I actually read the details of the Event.  Then, I can decide to be reminded of it.

If some events had reminders, and others didn't, I'm concerned that the end user would be a bit confused.

Let me know your particular scenario and I'll evaluate it for a future upgrade.

I'm in the process of wrapping v1.05 of CSR - this will include a set up screen in the Admin control panel, as well as an "add to calendar" feature (where the user can download a .vcs file for importing into Outlook, Palm or other Calendar application/device.)

- Michael

------------------
  michael@estigoy.com  
http://www.estigoy.com/csremind  

Logged

michaelest
New Member
*

Karma: 0
Offline Offline

Posts: 0

Cagerattler


WWW
« Reply #12 on: December 24, 2002, 07:13:00 AM »

CSR v1.05 just released.

This includes a lot of code changes, and addresses the path issues in previous versions.

Added:
- Save to Calendar feature (vCalendar format - download and import into Outlook, Palm, etc.). IE users can save directly to Outlook.
- Admin Control Panel Setup
- External Templates for dialogs

Let me know how it goes.  I've tested it in IE 6.x, Netscape 7 and 4.7, and Opera 6.5.

Revised instructions and package at http://www.estigoy.com/csremind   .

[This message has been edited by michaelest (edited December 24, 2002).]

Logged

DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #13 on: December 24, 2002, 03:18:00 PM »

 
quote:
Revised instructions and package at http://www.estigoy.com/csremind.  

see http://www.estigoy.com/csremind  (without the trailing period)

JFYI: If you enter a URL in this forum, be sure to leave a space after it or the period [or whatever] will be included in the link the forum makes with it.

Dan O.

[This message has been edited by DanO (edited December 24, 2002).]

Logged
michaelest
New Member
*

Karma: 0
Offline Offline

Posts: 0

Cagerattler


WWW
« Reply #14 on: December 24, 2002, 04:38:00 PM »

Dan,

Thanks for the URL in Forum tip.

BTW, I just revisted the modification Keith did to the link - adding the 'calendar=$calendar' parameter. I should have snuck that in before this morning.

I've added the 'calendar=$calendar' change, and subsequently added it to the link that gets sent with the reminder email.

For those of you who have already downloaded it, this modification is used if you are using multiple calendars (other than one default).

Thanks Dan O & Keith!


- Michael

------------------
     michael@estigoy.com      
http://www.estigoy.com/csremind  

[This message has been edited by michaelest (edited December 24, 2002).]

Logged

Pages: [1] 2 3   Go Up
Print
Jump to: