Serhioromano / bootstrap-calendar

Full view calendar with year, month, week and day views based on templates with Twitter Bootstrap.
http://bootstrap-calendar.eivissapp.com/
MIT License
3.02k stars 1.29k forks source link

Add events? #781

Open J-D-Oleary opened 2 years ago

J-D-Oleary commented 2 years ago

Hello,

I have read the documentation on adding events but am having a hard time figuring out exactly how to go about it. We are using this calendar inside of a wordpress site. Any help would be greatly appreciated!

Neozxz commented 2 years ago

十分感谢,邮件已经收到!

cablegunmaster commented 2 years ago

Ok, what is your level of coding? Can you make your own PHP websites? (from scratch without wordpress?) Can you make your own website and use a database? If this is the case this is your tool.

Otherwise you might want to use another plugin for it, as this is not a plugin. And it does not work out of the box with wordpress. You need to do some tinkering to get it working.

You need a table "events" With

"id" as incremental (number int) "title" as string. "url" (string) "class" (can be in DB dont have to be ) "start" (unix timestamp) "end" (unix timestamp) (could be optional)

After this you feed the table (make yourself some select query from that table) in php and add the result as an array to the retrieve function as stated in the readme.md as an array and you get the result on the Calendar.

The whole example is on: https://github.com/Serhioromano/bootstrap-calendar
Please read it!

If you got any problems with what you encounter, please write it down and please write down what you have tried and what you want it to do in the end. because Its all in your head. And I have no idea what you are trying to accomplish.