When there is a problem with a plug-in, CalendarScript will still run but won't execute the plug in. With csremind, the link doesn't appear when there's a problem.
Did you follow the upgrade instructions for v1.05? Make sure you go to the "Modify Permissions" control panel and see that CSRemind Setup appears in the Permission List.
Then go to 'Plug in Configuration' and modify the CSRemind parameters for your installation (sendmail, email address, etc.)
After you've done this, see if the link appears at the top.
If the link still doesn't appear, then I suggest that you perform a clean install of the csremind plug in (although you don't need to change your calendar template).
If you need further assistance, please let me know.
Thanks,
Michael
------------------ michael@estigoy.com http://www.estigoy.com/csremind
which changes have to be made in the default.html or in other files to let csremind work with all calenders but only the default one?
The link generated by csremind now has 'calendar=$calendar' in it.
This change does not occur in the calendar template, it occurs in the plug in script.
The parameter for the link has '&calendar=$calendar' added to it. In version 1.02, the link appears on line 95. In version 1.05, the link appears on line 112 of the script.
- Michael
Yes, the CSRemind Setup option is listed in the permissions.
And actually, i followed the upgrading instructions, and when that didnt work, i followed the entire basic instructions from scratch.
Could any of the changes that were made to default.html as part of the previous installations be causing this? I included a link to d/l my current default.html: http://www.darkvisionsmedia.com/poop/default.html
you can also view my calendar @: http://www.darkvisionsmedia.com/cgi-bin/calendar/calendar.pl
ThanksRyan
I was able to get your template to work in my demo with very few modifications. Check out: http://www.estigoy.com/csremind/calendar.cgi?template=darkvision.html .
You can download the template from http://www.estigoy.com/csremind/darkvision.html .
The modifications I made included:
Commenting out ALL of the:<% # next unless (viewTitle($EVENT->{details}->{permissions})); %>
FROM THIS:<!-- EVENT VIEW --><% } elsif ($VIEW eq "Event" { %><% if (viewDetails($EVENT->{details}->{permissions})){ %> </font> <font size="1"><TABLE BORDER="0" CELLPADDING="2" CELLSPACING="0"><%foreach (@$fields) {next unless ($db->{'properties'}->{$_}->{'display_details'});next unless ($EVENT->{details}->{$_});$EVENT->{details}->{$_} =~ s/\r\n/<BR>/g;%><TR><TD ALIGN="right" VALIGN="top"><SPAN CLASS="text"><B><%=$db->{'properties'}->{$_}->{'name'}%><font size="1">: </font> </B></SPAN><font size="1"></TD><TD ALIGN="left" VALIGN="top"><SPAN CLASS="text"><%=$EVENT->{details}->{$_}%></SPAN></TD></TR><% } %> </font></TABLE><% ELSE %></font><font size="1"><p align="center"><b><font color="#FFFFFF">The details for this event arePRIVATE!<br>You must </font><a href="http://www.darkvisionsmedia.com/cgi-bin/calendar/calendar.pl?calendar=default&template=login.html"><font color="#FFFF00">login</font></a><font color="#FFFFFF"> to view them.<br>If you dont have an account, you need to </font><a href="http://www.darkvisionsmedia.com/Site/Body/Interact/Contact/default.asp"><font color="#FFFF00">contact</font></a><font color="#FFFFFF"> me.<br>But you will only get one if you are VIP.</font></b></p><% /IF %> </font>
TO THIS:<!-- EVENT VIEW --><% } elsif ($VIEW eq "Event" { %> <font size="1"><TABLE BORDER="0" CELLPADDING="2" CELLSPACING="0"><%foreach (@$fields) {next unless ($db->{'properties'}->{$_}->{'display_details'});next unless ($EVENT->{details}->{$_});$EVENT->{details}->{$_} =~ s/\r\n/<BR>/g;%><TR><TD ALIGN="right" VALIGN="top"><SPAN CLASS="text"><B><%=$db->{'properties'}->{$_}->{'name'}%><font size="1">: </font> </B></SPAN><font size="1"></TD><TD ALIGN="left" VALIGN="top"><SPAN CLASS="text"><%=$EVENT->{details}->{$_}%></SPAN></TD></TR><% } %> </font></TABLE>
Download the template I modified and try it. If it works, then there's a "permission" issue to deal with. If it doesn't work, let me know.
No, I don't think so. Your original template worked fine, except that events (all events in the grid) could only be seen if the Adminstrator (or someone) was logged in.
I took the time to modify your custom code so that it works with my existing events.txt file (I don't have a custom field called "permissions").
If you go to http://www.estigoy.com/csremind/calendar.cgi?template=darkvision.html , you can see all the events listed in the grid. If you click on an event, you will be restricted from viewing the event details because you are logged in as 'anonymous'.
However, if you log in as "guest/guest" and then view the template, you can click on the event link and view all the details. (or you can use this convoluted URL to log in directly as guest http://www.estigoy.com/csremind/calendar.cgi?template=darkvision.html&fromTemplate=login.html&view=Month&command=login&calendar=default&username=guest&password=guest )
Notice how the CSRemind link appears at the top on BOTH occaisions. This is because the script doesn't perform any public/private checking before printing the link to the screen.
Using the code you created to check for 'public' 'private' or 'hidden', create an "if statement" in the CSR script before the link is printed to the screen (starting on line 112 of v1.05 of the script).
Hope that helps.
[This message has been edited by michaelest (edited December 28, 2002).]
I hope that all made sense...thanks a million....ryan
quote:To schedule a reminder to attend this event on 12/31/2002, click here or, add to your local calendar
Maybe because it is a recurring event?
Dan O.
------------------
Thanks for the heads up.
I was debugging other folks' templates and ended up copying up a standard default template that did not have the &datestring modification.
Fixed now.
Thanks again.
I'm debugging a template that is similar to yours for someone else to determine why the CSRemind 'after event' is not being executed.
The problems are very similar, and I think that once I figure the other template's solution, it will apply to your issue as well.
Stay tuned.
------------------David Whittaker http://www.uabcm.com http://bama.ua.edu/~whitt013