The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Add Calendar Event Automatically?
Does anyone know of a way I could call a function to add an event into the public calendar from an external script? I have a section on my site where people add information on weekend events and such. It would be great if these events could be automatically added into the calendar.
Anyone know of a way these kinds of events can be auto-listed into the vBulletin calendar? |
#2
|
||||
|
||||
No thoughts on this?
Any help, perhaps even pointers to other hacks which have this functionality, would be appreciated. |
#3
|
|||
|
|||
I'm just trying to sort this out right now (I'm assuming you're familiar with php/mysql).
I've been using my external events system to insert new records into the events table. I've added a new column to the events table to hold the ID of the corresponding record in my external events table so that I can update the events table when I update my external table. I've got the recurring events working. I'm left with a couple of issues: 1) I'm having a little trouble with the time zone offset which I don't fully understand (I enter event dates using the Unix timestamp function in MySQL but this seems to go wrong because we have DST here at the moment and the events end up on the wrong day. 2) I do not know what the utc column is for. I don't know if any of this helps...maybe you have got further than me. Any input from anyone would be appreciated. |
#4
|
||||
|
||||
Hi Richard,
I was wondering if there was any consequences of just going straight to the database in inserting a new event. For example, putting in a new thread right into the database doesn't update the searchindex and such. Other than that, I can't say I've started really working on this.... |
#5
|
|||
|
|||
I don't think so, but I don't know for sure. I'll let youknow how I get on!
cheers |
#6
|
|||
|
|||
Have you considered just getting rid of the other area where you have users add events and have them add them straight to the vb calender?
That is what I'm about to do as I've always had a seperate calender of events on my site... but with the latest vb upgrades I'm going to drop my old crappy calender program and do what I said above. |
#7
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|