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 CommunityCustomizationHacks and Mods (Moderators: scott, DanO, Marty)EmailNotify2 and OneClick Event entry
Pages: [1]   Go Down
Print
Author Topic: EmailNotify2 and OneClick Event entry  (Read 525 times)
0 Members and 1 Guest are viewing this topic.
ash
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: May 12, 2003, 05:09:00 PM »

I have installed both of these plugins and they work fine individually.  I have also changed my add-event button to work with OneClick.  Problem is that I don't get an email when one click is used (notify and digest are fine, it is also fine if I add an event using the standard add-event button).  

I also found a thread stating that if the old version of oneclick was used then to ensure that the line

&handleCustomFunction("after_add_event");

was included at the bottom of the command_add_oneclick_event.pl script.  It is!  I have also tried the new OneClick script dated 2003.  That doesn't work either.

The setting from the admin pages have also been checked and are setup to send emails for any event additions, deletions or amendments, but to no avail.

Output when I run the calendar.cgi command=doemail is:

"Checking if any emails need to be sent<BR>#"

Only thing changed from the standard installation is that my $BASE_DIR is set as I didn't want the calendarscript directory under my cgi-bin.  Would that make a difference?

debug.pl reports no problems at all!

Any help would be greatly appreciated.

rgds

Ash.

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #1 on: May 12, 2003, 09:01:00 PM »

 
quote:
I also found a thread stating that if the old version of oneclick was used then to ensure that the line

&handleCustomFunction("after_add_event");

was included at the bottom of the command_add_oneclick_event.pl script. It is!


To work with EmailNotify2 I believe that line has to be changed to:

&handleCustomFunction("after_schedule_event");

Dan O.


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

Logged
ash
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #2 on: May 13, 2003, 01:04:00 PM »

Have changed "add" to "schedule" and it makes no difference :-(

Any more ideas? :-)

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #3 on: May 13, 2003, 02:32:00 PM »

Are you using any other plug-ins? Maybe one of the others is also using the after_schedule_event calendar hook?

If you are, try moving the EmailNotify2 to the top of the plug-ins list (although it may stop the other from working then).

You could also try changing the line towards the top of the command_add_oneclick_event.pl file from:

unless(&handleCustomFunction("before_add_event"))

to

unless(&handleCustomFunction("before_schedule_event"))

I don't have any other ideas. Sorry.

Dan O.

[This message has been edited by DanO (edited May 13, 2003).]

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #4 on: May 13, 2003, 07:54:00 PM »

I see where the problem may be now.
In the command_add_oneclick_event.pl file right before the new line that you modified:

&handleCustomFunction("after_schedule_event");

try adding:

$in{'EVENT_id'} = $id;

Let me know if that works.

Dan O.


[This message has been edited by DanO (edited May 13, 2003).]

Logged
ash
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #5 on: May 21, 2003, 04:28:00 AM »

Sorry to take so long to get back to you. Seems that I have found a bug in emailnotify2 when a reoccurring event is added that stops the plugin from working altogether! Starting a new thread for that one but it meant that I couldn't test your ideas.

I have tried all of your suggestions but still can't get it working. I even tried adding the EVENT_id=id line whilst leaving the after_add_event line. I need to get the calendar 'live' as soon as possible so have had to disable the plugin.

If you do have any more ideas then I'd be happy to try them for you.  It would be nice to get it working.

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #6 on: May 21, 2003, 03:17:00 PM »

** whilst leaving the after_add_event line **

That definitely will not work as the EmailNotify2 is called via the after_schedule_event CalendarScript hook.

** If you do have any more ideas **

Do you have any other plug-ins installed which may be using the after_schedule_event CalendarScript hook?

Other than that, no ideas. Sorry.

Dan O.

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

Logged
ash
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #7 on: May 21, 2003, 04:08:00 PM »

Only two plugins I have installed are OneClick and EmailNotify2.

Perhaps the problem is with the EmailNotify2 plugin, but it works fine (other than with reoccuring events :-#) when adding/modifying events with OneClick disabled.

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #8 on: May 21, 2003, 06:22:00 PM »

As long as you have

code:
$in{'EVENT_id'} = $id;
&handleCustomFunction("after_schedule_event");

}

1;


At the end of the command_add_oneclick_event.pl file, I don't see why it wouldn't work. The only other thing I can suggest is try to contact TubaDave and see if he can help.

Sorry.

Dan o.

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #9 on: June 04, 2003, 06:45:00 PM »

I have updated the command_add_oneclick_event.pl file in the OneClick Event Entry plug-in to include the after_schedule_event hook so hopefully it will work out of the box with the EmailNotify2 plug-in.

All updated files are contained in the OneClick.2003-06.zip
file now available at the Unofficial CalendarScript - Mods and Plugins site.

Let me know if there are any (more) problems.

Dan O.

[This message has been edited by DanO (edited September 10, 2003).]

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