In fact, it's even easier than I thought. We have the mapping in the vb options for event forum. Like 2:254 where 2 is the calendar id and 254 is the forum. So before adding an event in the calendar, if the calendar id matches the calendar id in the options, then we do a query for that forumid to see if it is active for buy thread. If it is, then we plugin an error telling them that this method is not allowed, that they should add the event from the forum and provide them a link to do so, since we have the forumid. And we let the buythread handle it with the method described in previous thread.
We would practically be disabling adding event directly from calendar.
|