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


Login with username, password and session length

Search

 
Advanced search

8026 Posts in 1851 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationPlugins (Moderators: scott, DanO, Marty)Add Event from Calendar Grids
Pages: [1] 2   Go Down
Print
Author Topic: Add Event from Calendar Grids  (Read 1166 times)
0 Members and 1 Guest are viewing this topic.
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

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


WWW
« on: July 17, 2005, 05:34:00 PM »

I have just completed a plug-in which will allow you to add a link to the calendar grids which once clicked, a user can add an event but not have to deal with selecting a date. The date the link was found on will be the date the event will be posted to.

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.

Logged
mater_shinobi
Guest
« Reply #1 on: July 30, 2005, 07:10:00 AM »

Thanks for the new addon, bought it through pay pal, followed all of the instructions and re-wrote it but not having any luck getting it too run.  Plug in show as enabled but when you click on the date on calendar view, nothing happens.

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).]

[This message has been edited by DanO (edited July 30, 2005).]

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

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


WWW
« Reply #2 on: July 30, 2005, 12:16:00 PM »

** when you click on the date on calendar view, nothing happens. **

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.

Dan O.

[This message has been edited by DanO (edited July 30, 2005).]

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

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


WWW
« Reply #3 on: July 30, 2005, 12:30:00 PM »

** Can you post a link to your calendar so we can see what is going on for ourselves? **

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?

Dan O.

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

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


WWW
« Reply #4 on: July 30, 2005, 07:56:00 PM »

Just looking at it again, if the problem is the "Add an Event" links are not even displaying on the calendar, the following line in the modified code may be incorrect:

<%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.

Dan O.

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

Logged
master_shinobi
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #5 on: July 31, 2005, 12:11:00 PM »

thanks for the replys but no joy yet, tried the line change you sugested but nothing.
the new add event text does not appear, if it was to would it be on eack day in the grid.

is there any way i can send you my default.html so you can check it out.

john

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

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


WWW
« Reply #6 on: July 31, 2005, 12:58:00 PM »

** the new add event text does not appear, if it was to would it be on each day in the grid. **

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.

Dan O.

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

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


WWW
« Reply #7 on: August 03, 2005, 11:12:00 PM »

Did you get it to work? I didn't see any emails from you.

Dan O.

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

Logged
master_shinobi
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #8 on: August 09, 2005, 03:41:00 AM »

hi
dano

sorry been on holiday.
sent e-mail hopefully you can help fix the problem

john

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

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


WWW
« Reply #9 on: August 13, 2005, 02:02:00 PM »

John,

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!

Dan O.

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

Logged
master_shinobi
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #10 on: October 22, 2005, 06:57:00 PM »

 
Hi DanO

hurrah!!!  Hi again I've finally managed to find the time to fix my problem with the grid add non recurring, but had to make a few changes as it didn't work correctly thought I had it beaten but still need a bit of help.

e.g when it was set up and you click the add event the plug in came up but had bits missing like the times, you could only choose am/pm so fixed that by copying info from schedule non recurring. 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.

Now with that out of the way 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. The link would be placed on the grid add non recurring plug in so after adding several events to that day you can go back to the same place in the calendar.

Hopefully this makes sense
I have sent you a e-mail with the html page
thank you for you help.

John
 
 

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

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


WWW
« Reply #11 on: October 23, 2005, 01:08:00 PM »

** click the add event the plug in came up but had bits missing like the times, you could only choose am/pm  **

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.

Dan O.


Replacement, repair and service appliance parts for Amana parts, Frigidaire parts, Fridgidaire parts, Maytag parts, Jenn Air parts, Jenn Aire parts, Jenn-Aire parts, Jenn-Air parts, JennAire parts, KitchenAid parts, KitchenAide parts, Kitchen Aid parts, Kitchen Aide parts, Kenmore parts, Whirlpool parts, Roper parts, May Tag parts, White Westinghouse parts, White-Westinghouse parts, Gibson parts, Tappan parts, Euroflair parts, Frigidaire Gallery parts, G.E. parts, Kelvinator parts, Leonard parts, O'keefe & Merritt parts, Roy parts, Vesta parts, Admiral parts, Caloric parts, Camco parts, Danby parts, Beau Mark parts, Electrohome parts, General Electric parts, GE parts, RCA parts, Hardwick parts, Hot Point parts, ISE parts, In-Sink-Erator parts, Inglis parts, HotPoint parts, Magic Chef parts, Maycor parts, McGraw Edison parts, Modern Maid parts, McClary parts, Moffat parts, Neptune parts, Norge parts, Sub Zero parts, Kenmore parts, Coldspot parts, Kemnore parts, Admiral parts, Atlantis parts, Crosley parts, Gemini parts, Hardwick parts, Magic Chef parts, Neptune parts, Norge parts, major parts, home appliance parts, troubleshooting parts, tips parts, how to fix parts, buy parts, repair parts, service parts, servicing parts, help parts, buy on-line parts, buy online parts, purchase parts, save money parts, discount parts, wholesale parts, spare parts parts, parts parts, consumer parts, where to parts, do it yourself parts, dishwasher parts, dryer parts, electric parts, fridge parts, gas parts, microwave oven parts, oven parts, range parts, stove parts, cooker parts, gas oven parts, gas range parts, gas stove parts, gas cooker parts, garbage disposal parts, refrigerator parts, refridgerator parts, automatic clothes washer parts, clothes washer parts, washing machine parts, dryer parts, clothes dryer parts, gas stove parts, reports

[This message has been edited by DanO (edited October 23, 2005).]

Logged
master_shinobi
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #12 on: October 24, 2005, 06:11:00 PM »

Was it just that the JavaScript was stopping times from being entered or the time form fields where missing from the page altogether??

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

thanks
john

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

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


WWW
« Reply #13 on: October 24, 2005, 06:58:00 PM »

I didn't see your answer to this question, just you copied and pasted that same question again:

 Was it just that the JavaScript was stopping times from being entered or the time form fields where missing from the page altogether??


** 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.

Dan O.

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

Logged
master_shinobi
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #14 on: November 13, 2005, 11:31:00 AM »

Hi again


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

john

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

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