Adding a calendar to my website - php

I am making a website from scratch that will let users create accounts. I plan on having 4 type of accounts(Customer,Employee/Owner,Rep/Salesman,and Dealer). Out of those 4 type of accounts, the owner and the rep are the only ones who will see a calendar once they log-in. The owner should be able to modify events from the rep's calendar, and the rep can obviously modify his/her own calendar as well. I am not planning on making a calendar from scratch, but rather to get one that meet my needs from my website. I honestly don't know where to start looking, or what are some good scripts to get what I want done, so any help and thoughts are appreciate it.
Thanks!

This seems like quite a large task.
But have a look at this website with this calendar script in PHP, it might be a good place to start. If you want to hand code it.

Related

Custom Style Calendar with Google Calendar Events

If a client presented a project to make a webpage that displays a custom-styled calendar (with their google calendar events), what would be the best route to go? I'm trying to get started on a project to display a calendar on my tv via a Raspberry Pi. I've tried to search for everything I can on the topic, and it's been difficult to find anything that's clear enough to give me some direction. I figured asking the question on here may draw some attention from more experienced programmers. Much Thanks! I attached an image that's a rough example of what I'm hoping to create:

How To Add "User Account" Functionality To Basic PHP Software?

I hired a programmer to make a basic program in for me that is written in PHP.
I am hosting it on my own web host.
It is basically a web crawler that returns data on certain websites that are entered into the database.
This software was created without any "user account" functionality- it is just a single instance that is not even properly protected by a login/password button.
I want to finish developing this cloud-hosted software and then be able to sell it to people on a monthly subscription. Obviously I will need a way to create an account for every person that signs up- so they can each access their own account of the software with their own database of whatever websites they want to enter into the software(in other words just how every cloud software works).
My question is definitely a newb one, but basically I want to know, what technology is used to do this? What kind of program/service/code is used to add simple "user account functionality to a basic cloud software?
P.S. I would ask the guy who made it but he took my money and ran after making a a piece of junk.
The way that this is done is to modify the PHP to add a login feature. There is unlikely to be an out of the box solution that will work. Rather than having to create a new database every time someone signs up, you would modify the existing database to add a user column to each table, and then update the code to only display the data for the currently logged in user.
Unless you want to spend a few months learning PHP and whatever database you are using, you're going to want to hire another programmer to do this for you. Someone good would charge $200-300 for this. Or you can try taking the lowest bidder for $50 or so, and hope they don't run off too.

Adding an appointment to specific user's calendars using with php-ews

I am trying to add an appointment using php-ews to an Exchange 2007 user's calendar. I have the code set up to add to the currently connected user's calendar and that works fine. This user also has permissions to write to other user's calendars. Does anyone know how I would go about directly adding calendar events to some one else's calendar? (I don't want to invite them)
After really digging into ews I finally figured this out and it's pretty easy. You just assign the user to the folder. So if you have:
$request->SavedItemFolderId->DistinguishedFolderId->Id = 'calendar';
Just add:
$request->SavedItemFolderId->DistinguishedFolderId->Mailbox->EmailAddress = 'email#domain.com'
And that's it.
For reference: above mentioned method works for all things you might want to do "on behalf" of a user, be it a task, event or a message. The idea is to have one account that has privileges to other accounts and do the required tasks "on behalf" of other users. This approach simplifies communication with EWS.
For the people who come here seeking more answers regarding communication with EWS via PHP take a look # EWSWrapper that wraps itself around and expands php-ews to make things easier :)

Email notifications for when events align with location. How?

I am looking at building a webapp in php/mysql that people can log into, and sign up to receive email notifications when a certain event is at their chosen location, e.g a jack johnson concert in new zealand, receivng a notification when he comes to that location to perform. I am guessing that there is some online concert database that apps like shazam use that i could intergrate with.
Any help on building this sort of app would be appreciated, most importantly the notification system and how that integrates with another concert database and the users details .
I have a basic knowledge of php/mysql, I'm guessing I should use a framewok for this, if anyone knows one useful for this task that would be appreciated too.
Thankyou!
Always check ProgrammableWeb when looking fr APIs. I found the Gruvr API:
Gruvr offers tons of geocoded concert data, with about 170K upcoming
shows for 45K bands currently listed. You can ask for upcoming
concerts by location or by band. The results can be returned as
geoRSS, KML, or dynamic map links.
For triggering events, checkout momentapp, which lets you schedule delayed HTTP requests.
Maybe you could start from there. What you could do is when somebody signs up with their location, check Gruvr if there are any upcoming concerts in their area, then schedule a request with momentapp which will trigger your email notification script at a specified time before the event to alert the user.
You can also use CRON as an alternative to using a 3rd-party service like momentapp.
I think your question can be broken down into more questions.

Best way to implement a Calendar interface using Google Cal feeds for events?

I'm building a site for my school as a pet project, which would include accounts for all students. I want to display a calendar for each student that should have the following features:
It should be able to import events from multiple Google Calendar feeds. Compatibility with either the XML, ICAL or HTML feed will do.
It should be able to give different colors to different events based on the feeds which they originated from.
It would be nice if the calendar could also give different colors based on certains tags in the event titles, like all events starting with "Test: " will be red, and all events starting with "Deadline: " can be blue.
The interface should be nice, but simple. It should be easy to implement, and no dependency on Javascript would be good. Preferably, it will work simply on PHP.
It must provide 3 views of the calendar: Month, Week & Agenda
Features I don't require are:
Write ability (the calendars can/should be read-only)
Multiple-day events or recurring events
Links or html content inside events
What would be the simplest pre-made solution to implementing this? Currently, I am trying out various solutions like FullCalendar, and the various solutions listed at the Plans Website. However, none of them are perfect, because either they are not supported any more, or require javascript, or don't have all the features I need. I'm also gonna check out the GWT-cal plugin, and the Zend Calendar GData framework, but any feedback on your experiences with any of these would be good.
Can someone suggest the easiest way of getting this working?
Ok the word limit on comments is ridiculously low and irritating, so after having posted two comments and still having more to say, I decided to just post an answer. Sorry...
Yes, GCal is perfect, but I can't trust the technologically challenged students of my school to manually subscribe to ical feeds. So i wanna provide a site where people can select from a list of courses, and automatically get a customized event feed.
Right now, I have a rough implementation going by making a common Google Account that has separate calendars for each course. Then with some url trickery, I embed a custom iframe that gives a special read-only version of the calendar with only the calendars applicable to that specific user. This will probably raise problems when I want email notifications of events and stuff, and might force me to go into the Google Calendar API in detail. :(
Can you check out my other question at Is there anything wrong with the way I'm implementing a Calendar on my site? and give some feedback?
you should check out gwt-cal. versin 0.8.x only provides day/week view but the 0.9.0 branch implements an Agenda view with a Month view in progress.
First of all, GWT-cal is not PHP, it is Java. Secondly, why do you not want to work with JavaScript? Finally, if you are importing it all from Google Calendar, why not use Google Calendar as it has almost all you are requesting and can handle all of the user accounts and such?
The way I understand the project is you are attempting to either make one page that displays many different calendars from all the students or have each student sign in and view their calendar. Is that correct?
I would build (or find) an app that mixes the selected iCal feeds together to create a new feed, so that it can be subscribed to in GCal/iCal/Outloook/30boxes/...
If you still want a display you might try WebCalendar.
IIRC there are also some Drupal modules for this kind of thing.

Categories