1
andrewum
piCal Event Reminders
  • 2004/5/2 14:08

  • andrewum

  • Just popping in

  • Posts: 13

  • Since: 2004/4/28


I was attempting to set up Event Reminders for my users. I have piCal set up, and Notifications enabled. I was thinking that the notification could just send an email to users, if they have it enabled. But is there any way that the system would send it to the user 3 days in advance?

The only idea I had was that I could modify part of the "Today's Event" block, and set it for 3 days ahead of time. Then users could set up a notification. Unfortunately I'm not able to figure out how to manipulate the code to make this work, if it's even possible...

Any help would be GREATLY appreciated...

Thanks...

2
andrewum
Re: piCal Event Reminders
  • 2004/5/3 15:47

  • andrewum

  • Just popping in

  • Posts: 13

  • Since: 2004/4/28


*bump* plllllease help!

3
GIJOE
Re: piCal Event Reminders
  • 2004/5/3 20:36

  • GIJOE

  • Quite a regular

  • Posts: 265

  • Since: 2003/8/13


hi andrewum.
Quote:

I was attempting to set up Event Reminders for my users. I have piCal set up, and Notifications enabled. I was thinking that the notification could just send an email to users, if they have it enabled. But is there any way that the system would send it to the user 3 days in advance?

Although I have a plan to add Reminders into piCal, I'm sorry that I'm very busy now at another projects.

Quote:
The only idea I had was that I could modify part of the "Today's Event" block, and set it for 3 days ahead of time. Then users could set up a notification. Unfortunately I'm not able to figure out how to manipulate the code to make this work, if it's even possible...

If you want to display events on 3 days ahead, you can hack like this:

blocks/pical_todays_schedule.php

function pical_todays_schedule_show()
{
    global 
$xoopsConfig $xoopsDB ;

    
// 
    
$mod_path XOOPS_ROOT_PATH."/modules/piCal" ;
    
$mod_url XOOPS_URL."/modules/piCal" ;

    
// 
    
require_once( "$mod_path/piCal.php" ) ;
    require_once( 
"$mod_path/piCal_xoops.php" ) ;

    
// 
    
[color=ff0000]$cal = new piCal_xoopsdate'Y-n-j' time() + 86400 ) , $xoopsConfig['language'] , true ) ;[/color]
    
$cal->use_server_TZ true ;

    
// 
    
$cal->conn $xoopsDB->conn ;    // 
    
$cal->table $xoopsDB->prefixPICAL_EVENT_TABLE ) ;
    include( 
"$mod_path/read_configs.php" ) ;
    
$cal->images_url "$mod_url/images/$skin_folder;
    
$cal->images_path "$mod_path/images/$skin_folder;

    
$block['content'] = $cal->get_date_schedule"$mod_url/index.php" ) ;
    return 
$block ;
}


if you mean 3days in advance, change + to - .

4
andycleff
Re: piCal Event Reminders
  • 2005/8/30 11:28

  • andycleff

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/29


I am planning to have some custom work done to create a "reminder" feature for piCal.

Would build off of the existing XOOPS notification engine adding new features executed via a crontab.

Main function would be to allow registered users to sign up for auto email reminders that get sent in advance of events.

Users would be able to select reminders by "this event only", "all events in this category" and "all events on the calendar"

Admin features would include defining email header/footer text, and the number of days in advance of an event to send the reminder emails.

Estimate maybe 15-20 hours of time to build the feature extensions.

Anyone interested in sharing the development cost with me?
Andy Cleff
Ampersand Design, Inc
Doylestown, PA
-----
Helping our clients bring great ideas into shape through integrated marketing, creative branding, print and web strategy, online learning and e-commerce.

www.ampersandesign.net

5
andycleff
Re: piCal Event Reminders
  • 2005/9/28 13:29

  • andycleff

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/29


We're working on the Event Reminders hack for piCal.

Here is what the piCal module will do with Marcan's modifications :

- A user will be able to subscribe to a new notification allowing him to be
notified xx Days before an event start. (XX will be customizable as a config option.) This notification could be set for all events (Global Reminder), for a specific category (Category Reminder) or for a specific event (Event Reminder).

- A cron job will have to be set to be executed each day, for example at
00:00 AM.

- At that time, a script will be executed.

- This script will list all events starting in the next 24 hours.

- It will then list all users who subscribed to the Global Reminder
notification and will send them a notification for each event listed
previously

- The script will then list all users who subscribed to the Category
Reminder notification and will send them a notification for each event
corresponding to the category they subscribed for.

- Finally, it will list all users who subscribed to the Event Reminder and
will send them a notification for each event.

- The text of the notification will use a mail template that you could
customize in piCal/language/english/mail_template

- Unfortunately, the notification cannot be sent in the language of the user
as the way the notification architecture is currently, this cannot be done.
The notification will be sent in 1 language. (default site language). However, the workaround for this is to put as many languages as necessary in the one mail template. For example :

-----French-----
Voici la notification en français....

-----English Version-----
Here is the notification text in english....

- The XOOPS notification architecture will be used as a base for this so
users can subscribe and unsubscriibed to these notifications as they
normally do.

The above will be accomplished with the budget we have. Hopefully within the next few weeks.

If others are willing to contribute some funds to our budget we could also accomplish the following:

- Users who susbcribed to both a global and a category reminder will receive notifiations twice. This could be prevented in the script. If only we had more budget.

- Add two reminder notifications options, both admin configurable: One for advance timeframe (like 1 day) and one for a longer period of time (like 7 days). Again if we just had some more money.


Did I mention we need some more contributions from the community?

Andy Cleff
Ampersand Design, Inc
Doylestown, PA
-----
Helping our clients bring great ideas into shape through integrated marketing, creative branding, print and web strategy, online learning and e-commerce.

www.ampersandesign.net

Login

Who's Online

124 user(s) are online (62 user(s) are browsing Support Forums)


Members: 0


Guests: 124


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits