Coder Social home page Coder Social logo

radiant-event-calendar-extension's Introduction

Welcome to Radiant

Radiant is a no-fluff, open source content management system designed for small teams. It is similar to Textpattern or MovableType, but is a general purpose content management system (not just a blogging engine).

Build Status

Radiant features:

  • An elegant user interface
  • The ability to arrange pages in a hierarchy
  • Flexible templating with layouts, snippets, page parts, and a custom tagging language (Radius: http://radius.rubyforge.org)
  • A simple user management/permissions system
  • Support for Markdown and Textile as well as traditional HTML (it's easy to create other filters)
  • An advanced plugin system
  • Operates in two modes: dev and production depending on the URL
  • A caching system which expires pages every 5 minutes
  • Built using Ruby on Rails
  • And much more...

License

Radiant is released under the MIT license and is copyright (c) 2006-2018 John W. Long and Sean Cribbs. A copy of the MIT license can be found in the LICENSE file.

Installation and Setup

Radiant is a traditional Ruby on Rails application, meaning that you can configure and run it the way you would a normal Rails application.

See the INSTALL file for more details.

Installation of a Prerelease

As Radiant nears newer releases, you can experiment with any prerelease version.

Install the prerelease gem with the following command:

$ gem install radiant --prerelease

This will install the gem with the prerelease name, for example: ‘radiant-0.9.0.rc2’.

Upgrading an Existing Project to a newer version

  1. Update the Radiant assets from in your project:

     $ rake radiant:update
    
  2. Migrate the database:

     $ rake production db:migrate
    
  3. Restart the web server

Development Requirements

To run tests you will need to have the following gems installed:

gem install ZenTest rspec rspec-rails cucumber webrat nokogiri sqlite3-ruby

Support

The best place to get support is on the mailing list:

http://radiantcms.org/mailing-list/

Most of the development for Radiant happens on Github:

http://github.com/radiant/radiant/

The project wiki is here:

http://wiki.github.com/radiant/radiant/

Enjoy!

-- The Radiant Dev Team http://radiantcms.org

radiant-event-calendar-extension's People

Contributors

blj avatar fatangel avatar seancribbs avatar will-r avatar

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

Watchers

 avatar  avatar  avatar

radiant-event-calendar-extension's Issues

Sass::SyntaxError event_calendar.sass

on my environment there seams to be a minor bug:
Sass::SyntaxError: Properties aren't allowed at the root of a document.
sass/admin/event_calendar.sass: line 22

$radiant_red: #cc0000

removed it ... works fine now

SQLite requires default value for not null column

The MoreEventData migration adds a uuid column and sets :null => false, but SQLite gives an error that a default value must be specified.

The migration should probably either add :default => '' or remove the :null => false

When working with Google Calendar, the start/end is all messed up

Hi,

When I sync a ical file from Google, the start/end times are all messed up. If I load that EXACT ical in to iCal.app on a mac, it works exactly correct. This leads me to believe that it is a fault on this extension and not the ical itself. Could you look in to this issue?

Otherwise, the extension is BEAUTIFUL!

Keehun

Missing module/grid.sass

When trying out the extension on a clean radiant 0.9rc2 install I get the error message "File to import not found or unreadable: modules/grid.sass". Am I missing some other extension dependency or something?

Problem with calendars:each tag

I was having a problem with the calendars:each tag. Trying to loop through each calendar and display the first event. Turns out that the calendars tag is setting tag.locals.calendars to all calendars and then later on when you go to get events, it's using:

tag.locals.calendars ||= set_calendars(tag)

So it's always getting events for all calendars rather than the current calendar in the cycle.

My simple solution was to change these tags:

 tag 'calendars' do |tag|
   #  -removed- tag.locals.calendars ||= set_calendars(tag)
   tag.expand
 end

 tag 'calendars:each' do |tag|
   result = []
   set_calendars(tag).each do |cal|  #changed this line
     tag.locals.calendar = cal
     result << tag.expand
   end
   result
 end

now it works for me.

removing an event_venue errors

looks like the markup for the remove screen is a straight cut of the event remove screen. Will attempt to fix and submit patch

Calendar is broken

When trying to use r:events:as_calendar, I am getting this error CalendarPeriod.between requires either start or finish datetime.

iCal events not automatically deleted

When synchronized with an iCal source (in my case with Google Calendar), events are not removed when they are deleted from the calendar. Even if they are no longer available in the iCal source.

This causes events to stay visible on the radiant site, while they no longer exist in the calendar source.

Typo?

I was having an issue with this extension:

ActionView::TemplateError (Mysql::Error: Table 'rl_radiant.event_venues' doesn't exist:
SELECT * FROM event_venues ORDER BY title asc) on line #6 of
vendor/extensions/event_calendar/app/views/admin/events/_form.html.haml:

I tried to uninstall it -- but when I did, I got an error with this spelling:

undefined method `add_colum' for #<ActiveRecord:...

Shouldn't that be "add_column", with an "n"? Maybe this is the part of the source of my problem with the extension?

day of week doesn't work

This is the code that is there

def day
  Date::DAYNAMES[start_date.day]
end

This is what it should be

def day
  Date::DAYNAMES[start_date.wday]
end

_form.html.haml syntax error

Version 1.4.1

Processing Admin::EventsController#new (for 193.222.161.6 at 2011-05-06 09:45:27) [GET]
Parameters: {"action"=>"new", "controller"=>"admin/events"}
@event_venue is nil
Rendering template within layouts/application
Rendering admin/events/new

ActionView::TemplateError (compile error
/home/radiant/vendor/extensions/event_calendar/app/views/admin/events/_form.html.haml:34: syntax error, unexpected '\n', expecting tASSOC
/home/radiant/vendor/extensions/event_calendar/app/views/admin/events/_form.html.haml:64: syntax error, unexpected kDO_BLOCK, expecting kEND
...;end; form.edit_description do;
^
/home/radiant/vendor/extensions/event_calendar/app/views/admin/events/_form.html.haml:72: syntax error, unexpected kDO_BLOCK, expecting kEND
form_bottom.edit_metadata do;
^
/home/radiant/vendor/extensions/event_calendar/app/views/admin/events/_form.html.haml:88: syntax error, unexpected kDO_BLOCK, expecting kEND
_hamlout.buffer << "

\n\n";end; form_bottom.edit_venue do;
^
/home/radiant/vendor/extensions/event_calendar/app/views/admin/events/_form.html.haml:113: syntax error, unexpected kDO_BLOCK, expecting $end
... form_bottom.edit_timestamp do;
^) on line #34 of vendor/extensions/event_calendar/app/views/admin/events/_form.html.haml:
31: = f.check_box :all_day, :disabled => imported
32: = f.label :all_day, t('event_admin.form.all_day'), :class => 'minor'
33: %p.end_date
34: = f.label :end_date, :value => f.object.end_date.to_s, t('event_admin.form.end')
35: = f.text_field :end_date, :class => 'textbox date time', :disabled => imported
36:
37: .recurrence

vendor/extensions/event_calendar/app/views/admin/events/_form.html.haml:113:in `compile!'
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:11:in `render'
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:90:in `non_haml'
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:11:in `render'
vendor/extensions/event_calendar/app/views/admin/events/new.html.haml:14
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:204:in `call'
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:204
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:567:in `call'
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:567:in `haml_bind_proc'
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:210:in `form_for'
vendor/extensions/event_calendar/app/views/admin/events/new.html.haml:13
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:343:in `call'
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:343:in `capture_haml'
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:545:in `with_haml_buffer'
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:339:in `capture_haml'
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:88:in `capture'
radiant (0.9.1) lib/radiant/admin_ui/region_partials.rb:13:in `method_missing'
vendor/extensions/event_calendar/app/views/admin/events/new.html.haml:12
radiant (0.9.1) app/helpers/admin/regions_helper.rb:6:in `call'
radiant (0.9.1) app/helpers/admin/regions_helper.rb:6:in `render_region'
vendor/extensions/event_calendar/app/views/admin/events/new.html.haml:7:in `_run_haml_vendor47extensions47event_calendar47app47views47admin47events47new46html46haml'
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:13:in `render'
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:13:in `render'
radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:20:in `process'
passenger (2.2.8) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
passenger (2.2.8) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
passenger (2.2.8) lib/phusion_passenger/railz/application_spawner.rb:385:in `start_request_handler'
passenger (2.2.8) lib/phusion_passenger/railz/application_spawner.rb:177:in `spawn_application!'
passenger (2.2.8) lib/phusion_passenger/utils.rb:184:in `safe_fork'
passenger (2.2.8) lib/phusion_passenger/railz/application_spawner.rb:153:in `spawn_application!'
passenger (2.2.8) lib/phusion_passenger/spawn_manager.rb:272:in `spawn_rails_application'
passenger (2.2.8) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
passenger (2.2.8) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (2.2.8) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
passenger (2.2.8) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
passenger (2.2.8) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
passenger (2.2.8) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.8) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.8) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'

Rendering /home/radiant/public/500.html (500 Internal Server Error)

undefined method 'nice_start_time'

Hi,

I just setup this nice extension within a fresh Radiant, I've follow your recommendation on this website to setup the minimal pages and I get this error while browsing the public URL '/events': undefined method `nice_start_time' for #

The Location, Calendar have been created along with a new Event connected to them. Then I've created a new layout with the relevant tags and a new page (type event) with the following code: <r:events:as_calendar month="now" month_links="true" />

There is no error in the log file. May you need additional info, kindly let me know.
Thank you, regards,
Maurice

Ability to defer calendar refresh

Hi all -- I have an application that uses the event_map extension and it seems like the refresh really slows down a page load. Since I'm the only one adding events to the iCal calendar, I'd like to manually refresh the calendar. That way, visitors to the site don't suddenly have to wait for a page load.

If no one wants to contribute this feature, I'll create it and issue a pull request. Thanks for such a brilliant extension, visitors to my site really gush about this feature.

Postgresql does not like boolean = 1

I'm using Postgresql and came across an error when displaying calendar index action:

 ActiveRecord::StatementInvalid: PGError: ERROR:  operator does not exist: boolean = integer
 LINE 1: ....event_id = 13 AND ("event_recurrence_rules"."active" = 1)) 

This is because Postgresql does not like testing a boolean against an integer. MySql and other database flavors are more generous.

Here's the fix:

in app/models/event.rb:

 has_many :recurrence_rules, :class_name => 'EventRecurrenceRule', :dependent => :destroy, :conditions => {:active => true}

Hope this helps someone else and hopefully it'll be incorporated into this most excellent extension. Thanks,
Kevin

event_calendar.sass issues

The event_calendar.sass stylesheet file does not seem to be correct giving this error:

  public/stylesheets/sass/event_calendar.sass:43
  public/stylesheets/sass/event_calendar.sass:43
  radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/script/parser.rb:208:in`assert_tok'
  radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/script/parser.rb:68:in `parse_mixin_definition_arglist'
  radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/engine.rb:494:in`parse_mixin_definition'
  radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/engine.rb:377:in `parse_line'
  radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/engine.rb:270:in`build_tree'
  radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/engine.rb:292:in `append_children'
  radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/engine.rb:291:in`each'
  radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/engine.rb:291:in `append_children'
  radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/engine.rb:175:in`to_tree'
  radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/files.rb:35:in `tree_for'
  radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/plugin.rb:97:in`update_stylesheet'
  radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/plugin.rb:83:in `update_stylesheets'
  radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/plugin.rb:78:in`each'
  radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/plugin.rb:78:in `update_stylesheets'
  radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/plugin.rb:76:in`each'
  radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/plugin.rb:76:in `update_stylesheets'
  radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/plugin.rb:63:in`check_for_updates'
  radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:19:in `process'

Application error

Hi,

i have radiant 0.9.1 and installed the calendar extension as a gem but when trying to edit events i always get this error

Processing Admin::CalendarsController#show (for 213.182.245.164 at 2010-11-07 12:00:34) [GET]
Parameters: {"action"=>"show", "id"=>"1", "controller"=>"admin/calendars"}
Redirected to http://mysite/admin/event_calendar/calendars/1/edit
Completed in 9ms (DB: 3) | 302 Found [http://mysite/admin/event_calendar/calendars/1]

Processing Admin::CalendarsController#edit (for 213.182.245.164 at 2010-11-07 12:00:34) [GET]
Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/calendars"}
Rendering template within layouts/application
Rendering admin/calendars/edit

ActionView::TemplateError (undefined method `keywords' for #Calendar:0x7fae40620200) on line #60 of /usr/lib/ruby/gems/1.8/ge
ms/radiant-event_calendar-extension-1.3.6/app/views/admin/calendars/_form.html.haml:
57: .metadata
58: %p.keywords
59: = f.label :keywords
60: = f.text_field :keywords, :class => "textbox"
61:
62: - form_bottom.edit_timestamp do
63: = updated_stamp @Calendar

can you help me please?

undefined method `slug' for nil:NilClass

I created a page called Calendar, as per the README, and added <r:events:as_calendar month="now" month_links="true" /> and made it an Event Calendar type. I created two test events, when I go to /events I get the error message:

undefined method `slug' for nil:NilClass

Any idea what this is related to?

UUIDTools error

When I try to create an event, I get this:

uninitialized constant Event::UUIDTools

I have just now installed the uuidtools gem, restarted the server, and tried again, but I am still getting this error. Thoughts?

Month Calendar beginning/end

Hi,

It's working and fine, but I think handling of beginning and ends of the monthly views could be refined. For instance, December starts on a Tuesday but November dates are shown until then. That's perfect BUT when there's an event on those days, they are not shown, which could cause a lot of confusion. So either have events printed on those extra days, or have them not be shown at all.

Thanks,
Keehun

Google Calendar with recurring events crashes on refresh

My Google Calendar crashes with the following error if I use the private calendar link, or if I make all events public. I can work around this by setting the calendar to public but showing only free/busy data, and then manually setting events to public when I create them.

My conjecture is that the error comes from the fact that I have certain events set to repeat forever. The obvious solution would be to offer a cut-off date in the calendar admin panel, defaulting to several years in advance. Not sure how easy / hard it would be to implement.

Processing Admin::IcalsController#refresh (for 122.164.241.81 at 2010-01-07 03:33:34) [PUT]
  Parameters: {"action"=>"refresh", "_method"=>"put", "authenticity_token"=>"JKPxSDJLQ7XUMKC1pu5WtCW6V5DA6dimg3+/tfwXa1w=", "id"=>"1", "controller"=>"admin/icals"}
RiCal parse error with: Meh: This component is unbounded, cannot produce an array of occurrences!.

ArgumentError (This component is unbounded, cannot produce an array of occurrences!):
  /home/jsenechal/.gems/gems/ri_cal-0.8.5/lib/ri_cal/occurrence_enumerator.rb:172:in `to_a'
  /home/jsenechal/.gems/gems/ri_cal-0.8.5/lib/ri_cal/occurrence_enumerator.rb:193:in `occurrences'
  vendor/extensions/event_calendar/app/models/ical.rb:53:in `parse_file'
  vendor/extensions/event_calendar/app/models/ical.rb:52:in `each'
  vendor/extensions/event_calendar/app/models/ical.rb:52:in `parse_file'
  vendor/extensions/event_calendar/app/models/ical.rb:48:in `open'
  vendor/extensions/event_calendar/app/models/ical.rb:48:in `parse_file'
  vendor/extensions/event_calendar/app/models/ical.rb:44:in `parse_file'
  vendor/extensions/event_calendar/app/models/ical.rb:16:in `refresh'
  vendor/extensions/event_calendar/app/controllers/admin/icals_controller.rb:18:in `refresh'
  radiant (0.8.1) vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:19:in `process'
  /dh/passenger/lib/phusion_passenger/rack/request_handler.rb:91:in `process_request'
  /dh/passenger/lib/phusion_passenger/abstract_request_handler.rb:206:in `main_loop'
  /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb:376:in `start_request_handler'
  /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application'
  /dh/passenger/lib/phusion_passenger/utils.rb:182:in `safe_fork'
  /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application'
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:351:in `__send__'
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:351:in `main_loop'
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously'
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:162:in `start'
  /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
  /dh/passenger/lib/phusion_passenger/spawn_manager.rb:261:in `spawn_rails_application'
  /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
  /dh/passenger/lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
  /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
  /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
  /dh/passenger/lib/phusion_passenger/spawn_manager.rb:254:in `spawn_rails_application'
  /dh/passenger/lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application'
  /dh/passenger/lib/phusion_passenger/spawn_manager.rb:286:in `handle_spawn_application'
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:351:in `__send__'
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:351:in `main_loop'
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously'

Rendering /home/.lunchbox/jsenechal/rails/radiant_test/public/500.html (500 Internal Server Error)

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.