The plug-in is called the "Grid Add Event" plug-in and is available at the Unofficial CalendarScript - Mods and Plugins site.
JFYI
Dan O.
Only other plugins "re-direct 2" and "one click add event".
Any help and advice would be welcome.
Below are the two changes I made in the default html.____________________________________________________________1 <DT><A HREF="<%=$CGI_URL_QUERYSTRING%>selected_datestring=<%=$DAY->{'datestring'}%>&datestring=<%=$DAY->{'datestring'}%>&view=Day" CLASS="text"><%=$DAY->{dayname}%>, <%=$DAY->{monthname}%> <%=$DAY->{dd}%></A>< !-- Grid Add Event Plug-in --><%if ($User->hasPermission($CALENDAR,"ADD_EVENT")) { %><font size="-2"><a href="<%=$ADMIN_CGI_URL%>?calendar=<%=$CALENDAR_KEY%>&username=<%=$User->{username}%>&template=grid_add_non_recurring.html&add_date=<%= $DAY->{datestring} %>" title="Click to add an event on this date" class="gridtext">Add Event</a></font>
<%}%>
<DD>
<%FOREACH EVENT%> <% if ($_SHOW_GRID_EVENT_BULLET) {%><%}%>
____________________________________________________________2 <%-- DAY VIEW --%> <% } elsif ($VIEW eq "Day") { %>< !-- Grid Add Event Plug-in --><%if ($User->hasPermission($CALENDAR,"ADD_EVENT")) { %><center><a href="<%=$ADMIN_CGI_URL%>?calendar=<%=$CALENDAR_KEY%>&username=<%=$User->{username}%>&template=grid_add_non_recurring.html&add_date=<%= $DAY->{datestring} %>" title="Click to add an event on this date">Add an Event</a></center>
<% if ($STYLE eq "Grid") { %> <%-- GRID VIEW --%>
John
[Edited display of code - Note: You must change < and > tags to their HTML entities ( & lt; & gt; ) to display in this plug-in's forum.]
[This message has been edited by DanO (edited July 30, 2005).]
Clicking on the date isn't suppose to do anything different. Clicking on the new link in the grid titled "Add an Event" is suppose to take you to an add event administration page.
Can you post a link to your calendar so we can see what is going on for ourselves? Just posting code here doesn't help a lot I'm afraid.
I guess that won't help either as the person viewing it will need to have Add Event permissions to see them.
Can you clarify the problem you are experiencing and also post the link URL that is generated by the script?
------------------
<%if ($User->hasPermission($CALENDAR,"ADD_EVENT")) { %>
and need to be changed to:
<%if ($User->hasPermission($CALENDAR_KEY,"ADD_EVENT")) { %>
Let us know how you make out.
is there any way i can send you my default.html so you can check it out.
john
Only once a person was logged in and/or had permissions to add events. You are logged in when you're looking for the link in the calendar grids??
** is there any way I can send you my default.html so you can check it out. **
I don't usually offer personal assistance but since this is a new plug-in, if you email it to me I'll look at it for you... after you've exhausted all possibilities yourself.
sorry been on holiday.sent e-mail hopefully you can help fix the problem
You modified the default.html template file and removed the regular links from the grid date numbers so you probably didn't find the *second* place the code needed to be added *as was described in the installation instructions* (In the default.html template, find the 2 lines that contain "&view=Day"... ).
I modified the template you sent me to add the missing link in the appropriate place so hopefully it will display properly for you now.
I did NOT however correct your previous erroneous template edit(s). I suggest you start with a an original copy of the default.html template file and do your modifications all over again to make sure you haven't removed/altered any *necessary* code.
JFYI. The plug-in's installation instructions assume a virgin template file. There is no way I could possibly advise how to modify an already customized template. Any such future requests will only be performed on a 'for hire' (ie. $$) basis.
Good luck!
Sorry, I'll look into that and correct the plug-in.
Was it just that the JavaScript was stopping times from being entered or the time form fields where missing from the page altogether??
** also changed the return page to be the same plug in page which helps with adding several events to one day, instead of the sending you back to the previous calendar date. However the date changes to dec not the date I was on, can you help please. **
Did the second try actually get posted to the calendar in December or did the template just say that it would and it got posted to the correct date?
I tried changing the template line:
<INPUT TYPE="hidden" NAME="template" VALUE="<%=($main::in{'template_value'} || "main.html")%>">
to
<INPUT TYPE="hidden" NAME="template" VALUE="grid_add_non_recurring.html">
and my installation returned me to the same page with the correct date filled in. I'm afraid I don't know where your problem is.
** I wondered if you could tell me is it possible to add a click here link that can return you to the date on the calendar you were working on. **
I'm sure it is possible but I don't know the exact code you'd have to use. You'd have to create a link like:
calendar.pl?selected_datestring=20051030&datestring=20051030&view=Day
In place of the two "20051030" you should be able to use the template code <%= $main::in{'add_date'} %> and that should output the date the event was added on.
BTW. I am for hire for personal customizations if you can't figure them out yourself.
[This message has been edited by DanO (edited October 23, 2005).]
Hi dano
thanks for the reply, in answer to your question after you save your event it adds it to the correct "Post an event to" day and then returns to grid add non recurring and shows december as the date. if you try and save a new event it does nothing just returns again to grid add non recurring showing december as the "Post an event to".
please help
thanksjohn
** if you try and save a new event it does nothing just returns again to grid add non recurring showing december as the "Post an event to". please help **
As I said, when I modified my plug-in as I described above it worked as you said you wanted it to. I have no idea why you're having a problem doing the same thing, I'd have to look into it myself and I charge for personalized service.
If you want to hire me to look into it for you, you can email me about that. otherwise all I can suggest is you use it as it was designed to be used. Sorry.
In the mean time, if you will answer the first question above, I can correct the problem with the template and get a corrected copy off to you.
In answer to your question.
When adding a first event it's fine but when you try to add a second event, say in November, it doesn't add the event, just says that it's posted to date changes to Dec, but when you go to December the information has dissapeared.
Can you let me know what your costs for helping sort out my problems would be.
thanks