Quote:
Originally Posted by ataraxia
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:
PHP Code:
$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.
.