View Full Version : HOW TO: Copy, rather than Move Calendar events?
ataraxia
01-03-2005, 11:58 AM
How could I hack vb3.0.4 code to make it possible to Copy, rather than Move, events from one calendar to another?
Or, if you want to get really elegant, offer both Copy and Move options?
Is there any way to do this without a hack?
Thanks
ataraxia
01-08-2005, 07:27 PM
How could I hack vb3.0.4 code to make it possible to Copy, rather than Move, events from one calendar to another?
In the case 'domove': section of calendar.php (ver 3.0.5) this bit of code is what "moves" a calendar:
$DB_site->query("
UPDATE " . TABLE_PREFIX . "event
SET calendarid = $newcalendarid
WHERE eventid = $eventinfo[eventid]
Could this be modified to Copy, rather than move by SELECT all of the source event record fields and then INSERT them into a new record with the target calendar ID? I.e. "clone" the old record but change the ID# so that it will ALSO be displayed in a different calendar as a completely separate record.
I'm new to MySQL and don't quite know how to do that (and take a chance of really messing up my message base.) Can someone help. please.
I would think that there would be lots of people who would like to be able to "clone" events from one calendar to another.
.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.