GithubHelp home page GithubHelp logo

sproctor / php-calendar Goto Github PK

View Code? Open in Web Editor NEW
140.0 28.0 67.0 4.72 MB

PHP-Calendar

Home Page: http://www.php-calendar.org/

License: Apache License 2.0

Shell 0.37% PHP 71.24% JavaScript 23.21% CSS 5.18%

php-calendar's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-calendar's Issues

Don't remove all occurrences on event modification

Instead we should make a list of old occurrences.
Run through the list of occurrences to be created.
Where an occurrence to be created is on the old list, remove it from the old list, otherwise create the occurrence in the DB.
After all of the new occurrences have been processed, any occurrences on the old list should have their DB entries removed.

Error Unrecognized date format.

Everything works flawlessly......except when you click on "search" it brings up this error:

Error

Unrecognized date format.
Backtrace

#0 /homepages/42/d330887186/htdocs/wisemen101/calendar/includes/form.php(353): soft_error('Unrecognized da...')
#1 /homepages/42/d330887186/htdocs/wisemen101/calendar/includes/form.php(193): FormDateQuestion->get_specific_html(Object(Form), Array)
#2 /homepages/42/d330887186/htdocs/wisemen101/calendar/includes/form.php(735): FormQuestion->get_html(Object(Form), Array)
#3 /homepages/42/d330887186/htdocs/wisemen101/calendar/includes/search.php(112): Form->get_form()
#4 /homepages/42/d330887186/htdocs/wisemen101/calendar/includes/search.php(120): search_form()
#5 /homepages/42/d330887186/htdocs/wisemen101/calendar/includes/calendar.php(679) : eval()'d code(1): search()
#6 /homepages/42/d330887186/htdocs/wisemen101/calendar/includes/calendar.php(679): eval()
#7 /homepages/42/d330887186/htdocs/wisemen101/calendar/includes/calendar.php(625): do_action()
#8 /homepages/42/d330887186/htdocs/wisemen101/calendar/includes/embed.php(36): display_phpc()
#9 /homepages/42/d330887186/htdocs/wisemen101/events.php(62): include('/homepages/42/d...')
#10 {main}

respond to [email protected]

Occurrence display clarification

When making an event that spans on more than 24 hours, display should be different:

  • on display_event from
When: Apr 5, 2013 - Apr 12, 2013 at 5:00 PM to 6:00 PM

to

When: from Apr 5, 2013 at 5:00 PM to Apr 12, 2013 at 6:00 PM

This behaviour should be a function in phpoccurrence class, with a field to detect once in constructor if the timespan is more than 24 hours.

Permission errors

From the ToDo list
When a user tries to access a page that requires permissions, give them a login screen if they aren't logged in

function permission_error($message)

in util.php line 33
could give a warning (with ui-state-warning) and redirect to login page

How to change the chinese Language

I have download the latest version of php-calendar php-calendar-2.0-rc6.zip but it can't support chinese language, can you tell me how to solve this problem thank you very much!

Multiple day events - Repetitions

If an event spans on more days, disallow the possibility of repetitions.
If span > 1 day disable daily repetition
If span > 1 week disable weekly repetition

Festivities

Different color for days which are:
-national / local festivities
-other days off

Edit categories error

error
Edit categories error

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`gid`='1'
WHERE `catid`='1'' at line 6
SQL  : UPDATE phpar_categories
SET
`name`='TEST6',
`text_color`='#232121',
`bg_color`='#bc3838'
`gid`='1'
WHERE `catid`='1'
#0 C:\xampp\htdocs\phpar\includes\phpcdatabase.class.php(795): PhpcDatabase->db_error('???????????????...', 'UPDATE phpar_ca...')
#1 C:\xampp\htdocs\phpar\includes\category_submit.php(72): PhpcDatabase->modify_category('1', 'TEST6', '#232121', '#bc3838', '1')
#2 C:\xampp\htdocs\phpar\includes\calendar.php(713) : eval()'d code(1): category_submit()
#3 C:\xampp\htdocs\phpar\includes\calendar.php(713): eval()
#4 C:\xampp\htdocs\phpar\includes\calendar.php(659): do_action()
#5 C:\xampp\htdocs\phpar\index.php(78): display_phpc()
#6 {main}

Fix updater

The code to prevent the installer from running breaks the update function. Update should be moved to its own script and require a logged in admin to run.

Cannot create user at admin page

Just for master branch, according the comment for latest commit of user_create.php file:
'Move create user form to its own page'.
user_create.php has changed its workflow like other form page:
'If form.submit_form exists, then invoke function process_form()'.
However there is NO hidden field 'submit_form' at all in the form constructed by function display_form().
After submitting the form, nothing will be done but displaying an empty one.

Error modifying occurrence

Hi, great product, very useful! Spotted a fairly obvious bug tho -

  1. Add an Event
  2. Click on the Event, click on Modify Occurence
  3. Change the To Date, click on Submit Occurence - and you get:

Error
Malformed time in "end" date.

Backtrace
#0 D:\uniformserver\UniServer\www\calendar\includes\occur_form.php(196): soft_error('Malformed time ...')
#1 D:\uniformserver\UniServer\www\calendar\includes\occur_form.php(115): get_timestamp('end')
#2 D:\uniformserver\UniServer\www\calendar\includes\occur_form.php(31): process_form()
#3 D:\uniformserver\UniServer\www\calendar\includes\calendar.php(679) : eval()'d code(1): occur_form()
#4 D:\uniformserver\UniServer\www\calendar\includes\calendar.php(679): eval()
#5 D:\uniformserver\UniServer\www\calendar\includes\calendar.php(625): do_action()
#6 D:\uniformserver\UniServer\www\calendar\index.php(77): display_phpc()
#7 {main}

Multiple day events - Appereance

On the calendar vvie can be detected the span on different days so that could be presented as on first day "from 5:00 PM - eventName" (if occupies all second day "all day - eventName") on final day "till 6:00 PM - eventName"

it would be acceptable to put like (continued) on subsequent events.

Calendar for each user

Now every user is a separate calendar, recommend to add in my calendar event can add other users, then put the other user's calendar list changes at the same time, English is not very good, don't know if I describe clearly

"Drop tables" option drops ALL tables !

After a failed installation. I checked the option "Drop tables" to avoid any creation error message. The result was to see all my table gone.

Disable the option before you can fix the bug !

Search

The search appears to be broken on version 2.0, rc6. You can also see it on this link: http://www.php-calendar.com/php-calendar/ . Should I use a different version for our calendar, or is there a fix that I can use? Thank you.

Calendar title default

If no title is given during installation there's a notice
Notice: Undefined index: title in [cut]\includes\phpccalendar.class.php on line 35
$result should have defaults?

Import external ICS file

Any possibility of importing/subscribing to an external ICS file? We have a public ICS file of holidays. Would be wonderful to see this globally in PHP-Calendar for everyone to see.

display_week navbar

Like display_month.

Now there's an error deriving from a month_navbar in display_week.php

Modifying event with irregular occurrences

If you modify a repeating event that had an occurrence removed, or an event with occurrences at random interval, all of the occurrences will be removed when the event is modified.

Modifying an event where we cannot determine the pattern should either display a list of occurrences (which can have their times/dates adjusted individually), or the "when" section should be disabled behind a checkbox.

Migration path from 1.1

I'm working on this now. It might be worthwhile generalizing it to import calendars on the current version as well.

Forgery Error

Hi, when trying any action on the installed calendar on my web host's server, I get the following errors (this is from creating an event):

Error
Secret token mismatch. Possible request forgery attempt.

Backtrace

#0 /hermes/bosoraweb177/b1740/ipg.springbranchitcouk/garnier3/php-calendar/includes/calendar.php(723): soft_error('Secret token mi...')
#1 /hermes/bosoraweb177/b1740/ipg.springbranchitcouk/garnier3/php-calendar/includes/event_form.php(305): verify_token()
#2 /hermes/bosoraweb177/b1740/ipg.springbranchitcouk/garnier3/php-calendar/includes/event_form.php(31): process_form()
#3 /hermes/bosoraweb177/b1740/ipg.springbranchitcouk/garnier3/php-calendar/includes/calendar.php(679) : eval()'d code(1): event_form()
#4 /hermes/bosoraweb177/b1740/ipg.springbranchitcouk/garnier3/php-calendar/includes/calendar.php(679): eval()
#5 /hermes/bosoraweb177/b1740/ipg.springbranchitcouk/garnier3/php-calendar/includes/calendar.php(625): do_action()
#6 /hermes/bosoraweb177/b1740/ipg.springbranchitcouk/garnier3/php-calendar/index.php(77): display_phpc()
#7 {main}

custom theming

We need the ability to add custom theme URLs to the theme list.

jpicker images

When calendar isn't in the topmost folder, jpicker images don't appear due to the hardcoded values in the javascript.
Must be configured via the settings in the main call
http://www.digitalmagicpro.com/jPicker/

More, if there's a click on the input box, could be called the picker (must be written a callback on the onclick event)

Embedding Issues..

Hi, I've embedded the calendar into one of my web pages which works fine. However, as soon as any of the navigaton links (i.e last month, %month name% ro display event) are used, the calendar redirects to it's vanilla index.php.

Is there a way of maintaining the embedded view throughout?

Thanks,

Dan

Error Log Entry

Thought you might be interested. This error pops up in the error log when entering, deleting or modifying an event

[18-Aug-2013 12:37:29 America/New_York] PHP Catchable fatal error: Object of class Html could not be converted to string in /home/~user/public_html/calendar2/includes/util.php on line 72

PHP Version 5.4.17
MySQL Version 5.5.32
Apache 2.2.25

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.