Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > Pre-Sales Questions > General

General Get answers to your questions before purchasing the Easy PHP Calendar.

Closed Thread
 
Thread Tools Search this Thread Display Modes

Importing Multiple Events
Old 11-22-2009, 01:53 PM   #1
dave_gordon
Calendar User
 
dave_gordon is offline
Join Date: May 2005
Posts: 33
Default Importing Multiple Events

Hi Brian/Gervais,
I need to import 3 events for each week for a period of 3 years, so as you can apprechiate this is fairly long winded. The three seperate events all last the same length of time, and the only thing that changes is the descriptiion which denotes a price, which is the part that changes.

Can you tell me when (if atall) the Import facility will be available and will it be compatible with v6.

If not in the near future do you know if there is a hack or 3rd party tool that I can purchase seperately to easily import multile events.

Also, I'm using the flat file setup.
Many thanks in advance
Dave

Last edited by dave_gordon; 11-22-2009 at 01:57 PM. Reason: Add text
 

Old 11-22-2009, 02:17 PM   #2
dave_gordon
Calendar User
 
dave_gordon is offline
Join Date: May 2005
Posts: 33
Default

Sorry, I also forgot to mention that each of the seperate events is the same catgory?
Regards
Dave
 

Old 11-22-2009, 05:08 PM   #3
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

I was going to say that you could enter a few events, export your database, find the entries that you just did and find the commonality between them, and then simply replicate the lines... but since you're using the flat-file, you don't even need to export anything.

I would suggest that you create a new file for this test. Then enter you first three events or so, just enough to figure out the pattern. If I remember correctly, each event is separated by a -||- (dash, pipe, pipe, dash) and each field is separated by a | (pipe).

Once you find the pattern, then you just need to repeat the same lines over and over. You'd need to change the date value (you can use the php function gregoriantojd for help on that one) and the price for each event, but pretty much everything else should stay the same.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 11-23-2009, 09:01 AM   #4
dave_gordon
Calendar User
 
dave_gordon is offline
Join Date: May 2005
Posts: 33
Default

Many thanks for you assistance Gervais, and I understand what you are saying.

The only problem is if I look in the caldat.php file the first enteries are the Julian Start and End days.

I don't know php so will be manually editing and using Excel to convert the days to Julian, but when I enter 01/08/2010 to 01/15/2010 I expect it to read 10008|10015 but instead the file says 2455205|2455212. Can you explain?

Many thanks in advance
Dave
 

Old 11-23-2009, 12:16 PM   #5
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

The 2455205 is actually the Julian Day format for Jan 8, 2010. The 10008 is not the actual Julian Date. 10008 just means it's the 8th day of the year 10.

You got confused with ordinal date, and the "julian day number".

http://www.vertex42.com/ExcelTemplat...-calendar.html

That link gives you how to convert Gregorian dates into Julian day number.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 11-23-2009, 12:36 PM   #6
dave_gordon
Calendar User
 
dave_gordon is offline
Join Date: May 2005
Posts: 33
Default

Many thanks once again Gervais.

For those that ae interested the calculation is;

=DATE(Y,M,D)+2415018.5
where Y is the year, M is the month, and D is the day, and DATE(Y,M,D) could be replaced with just a standard Excel date. The problem is that this only works for years after 1901.
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
List View: can you group multiple events in one box by date? lynnephelps General 1 10-13-2009 03:53 PM
Single Day with Multiple Events Catmando General Support 1 07-02-2009 09:10 PM
Input multiple events wwwong@co.sanmateo.ca.us General 1 02-03-2009 10:54 AM
Multiple events on one day lmrapp General Support 7 09-04-2007 02:23 PM
Multiple Events balmori General Support 1 10-05-2005 04:21 PM



All times are GMT -4. The time now is 07:51 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |