#26 2013-01-18 10:48:15

Beninho
Member
From: Lannion - France
Registered: 2012-04-05
Posts: 10
Website

Re: Event Calendar [MODULE] - [UPDATED - 06-07-2012]

I have update EventCalendar for Ionize 0.9.9.
It works, but there are few bugs in my datepicker, french date format bug...

I don't have Github repo, but I can send it by email.

Offline

#27 2013-06-09 16:40:01

hoaxer
Member
Registered: 2013-06-04
Posts: 2

Re: Event Calendar [MODULE] - [UPDATED - 06-07-2012]

Is there a version for latest ionize release?
As I understood new version uses different format of config file - I've tried to change it to the one similar of Demo module and it appeared in modules list, but everything is messed up. Is there any list of api changes so that it would be possible to try to update the module by myself?

Offline

#28 2013-07-15 10:33:30

adamos42
Ionize Friend
From: Hungary
Registered: 2010-09-20
Posts: 390
Website

Re: Event Calendar [MODULE] - [UPDATED - 06-07-2012]

For me this module does not work on 1.0.4


Webdeveloper, Programmer, Application developer, Ionize friend
@adamos42

Offline

#29 2013-07-16 00:14:06

ukyo
Community Manager
From: Marmaris - Turkey
Registered: 2010-05-19
Posts: 734
Website

Re: Event Calendar [MODULE] - [UPDATED - 06-07-2012]

Didn't updated module, all files on github if someone want to make something i will accept pull-requests


<ion:ukyo from="Turkey" />
Ionize CMS Türkçe Dil Çeviri Dosyaları | My Github Repositories
Please send your first message to a forum section, not forum users or administration.

Offline

#30 2013-12-31 13:51:18

cip
Member
Registered: 2012-02-24
Posts: 10

Re: Event Calendar [MODULE] - [UPDATED - 06-07-2012]

for version 1.0.4

change config/config.php file to:

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$config['module']['eventcalendar'] = array
(
    'module' => "eventcalendar",
        'name' => "Event Calendar Module",
        'module_eventcalendar_folder' => 'Eventcalendar',
        'module_eventcalendar_addons_folder' => 'admin/eventcalendar_addons/',
        'module_eventcalendar_folder_lowercase' => 'eventcalendar',
        'module_eventcalendar_url' => admin_url() . 'module/' . 'eventcalendar' . '/',
        'module_eventcalendar_assets_folder' => base_url(). 'modules/' . 'Eventcalendar' . '/assets/',
        'module_eventcalendar_views_folder' => base_url(). 'modules/' .'Eventcalendar' . '/views/',
    'description' => "Author eventcalendar module. Manage articles's authors.<br/>This module is one Demo module, based on the tutorial available on: http://doc.ionizecms.com/en/tutorials",
    'author' => "",
    'version' => "",

   

    'uri' => 'eventcalendar',
    'has_admin'=> TRUE,
    'has_frontend'=> TRUE,

   
);

return $config['module']['eventcalendar'];



change controllers/admin/eventcalendar.php , funtion _addons to:

function _addons($object = array()) {
        $CI = & get_instance();
        $data['article'] = $object;
                                 
        $data['controller_url'] = admin_url() . 'module/' . 'eventcalendar' . '/eventcalendar/';
               $CI->load_addon_view(
                'eventcalendar',
                'article',
                'options_top',
                'admin/eventcalendar_addons/addon_article_side_top',
                $data
                );
    }


i'm testing module so i don't know if all module is working, but you have basic functionality at least

Last edited by cip (2013-12-31 13:52:54)

Offline

#31 2014-01-04 15:33:10

Stephan
Member
Registered: 2014-01-04
Posts: 1

Re: Event Calendar [MODULE] - [UPDATED - 06-07-2012]

Thanks a lot for the info with 1.0.4. I was just about to try and integrate the calendar and then found this. So that's just perfect timing. smile

I'm only just beginning to try this module out and so far had to also change the following:

Issue: I couldn't save events in the backend. The Ajax-Request returned a PHP-Error.
File: models/eventcalendar_model.php, line 78:
Old:  $user = $this->connect->get_current_user();
New: $user = User()->get_user();

Issue: Error in Frontend 'Tag missing':
Rename file:
Old: libraries/tags.php
New: libraries/eventcalendar_tags.php

Issue: Error in Frontend 'Tag missing: category_id'
Fix tag-name in file views/eventcalendar_header.php, Line 163
Old:  <div id="category_<ion:category_id/>" style="display: inline-block; padding: 0 10px;">
New:    <div id="category_<ion:id_category/>" style="display: inline-block; padding: 0 10px;">

Issue: Calendar not shown in frontend; Firebug shows errors loading assets (css/js):
Fix in file views/eventcalendar.php:
Insert at the very top: <?php $config = Modules()->get_module_config('Eventcalendar'); ?>
Change lines containing 'config_item' as follows:
Old: config_item('...')
New: $config['...']

Issue: Error in Frontend 'Tag missing ' category_color':
Fix tag-name in file: views/eventcalendar_header.php, line 126
Old: color: '<ion:category_color />',
New: color: '<ion:event_category_color />',

Issue: Event-Color in frontend not properly applied and seemingly other info not displayed properly.
Fix tags in file: libraries/eventcalendar_tags.php, lines 39 - 43
Old:
        "eventcalendar:events:event_category_title" =>          "event_id_category",
        "eventcalendar:events:event_category_subtitle" =>       "event_id_category",
        "eventcalendar:events:event_category_description" =>    "event_id_category",
        "eventcalendar:events:event_category_name" =>           "event_id_category",
        "eventcalendar:events:event_category_color" =>          "event_id_category",
New:
        "eventcalendar:events:event_category_title" =>          "event_category_title",
        "eventcalendar:events:event_category_subtitle" =>       "event_category_subtitle",
        "eventcalendar:events:event_category_description" =>    "event_category_description",
        "eventcalendar:events:event_category_name" =>           "event_category_name",
        "eventcalendar:events:event_category_color" =>          "event_category_color",

regards -Stephan

Last edited by Stephan (2014-01-04 16:37:27)

Offline

#32 2014-05-27 11:41:28

gygy42
Member
Registered: 2014-05-22
Posts: 7

Re: Event Calendar [MODULE] - [UPDATED - 06-07-2012]

Just for all newbies in CodeIgniter  like me (had the same problem with pyrocms modules).

Before looking to complicated stuff why your module don't work:

LOOK AT THE PATH NAME OF THE MODULE!!!!!!!

Example --> Eventcalendar-master NOT OK
                   Eventcalendar  OK (after fixed the code)

Thanks for the module, can wait to used it now.

Sam

Offline

#33 2014-06-02 12:33:35

gygy42
Member
Registered: 2014-05-22
Posts: 7

Re: Event Calendar [MODULE] - [UPDATED - 06-07-2012]

Also for flag:

in views/admin/eventcalendar/index.php line 149

Old

 <td class="left"><img class="pr5" src="<?= theme_url() ?>images/world_flags/flag_<?= Settings::get_lang() ?>.gif" /></td> 

New

 <td class="left"><img class="pr5" src="<?= theme_url() ?>styles/original/images/world_flags/flag_<?= Settings::get_lang() ?>.gif" /></td> 

and also in all files change

<ion:translation term="term" />
with
<ion:lang key="term" />

I still have problem it doesn't save the date when I create an event and also when I try to edit I get a php error
eventcalendar/edit.php

Line Number: 78, 86, 94

If someone has an idea?




P.S. I also changed the view/eventcalendar_json.php to be responsive and without having 2 times jquerry loaded

<?php $config = Modules()->get_module_config('Eventcalendar'); ?>
    <link rel='stylesheet' type='text/css' href='<ion:base_url />modules/Eventcalendar/assets/css/fullcalendar.css' />
    <link rel='stylesheet' type='text/css' href='<ion:base_url />modules/Eventcalendar/assets/css/fullcalendar.print.css' media='print' />
    <script type='text/javascript' src='<ion:base_url />modules/Eventcalendar/assets/js/fullcalendar.min.js'></script>
    <script type='text/javascript' src='<ion:base_url />modules/Eventcalendar/assets/js/wtooltip.min.js'></script>
        <script type='text/javascript'>

            $(document).ready(function() {
	
                $('#calendar').fullCalendar({
                    header: {
                        left: 'title',
                        center: 'prev,next today',
                        right: 'month,agendaWeek,agendaDay'
                    },
                    buttonText: {
                        prev:     '&nbsp;&#9668;&nbsp;',  // left triangle
                        next:     '&nbsp;&#9658;&nbsp;',  // right triangle
                        prevYear: '<ion:lang key="module_eventcalendar_year" />-1', // <<
                        nextYear: '<ion:lang key="module_eventcalendar_year" />+1', // >>
                        today:    '<ion:lang key="module_eventcalendar_today" />',
                        month:    '<ion:lang key="module_eventcalendar_month" />',
                        week:     '<ion:lang key="module_eventcalendar_week" />',
                        day:      '<ion:lang key="module_eventcalendar_day" />'
                    },
                    monthNames:[
                        '<ion:lang key="january" />',
                        '<ion:lang key="february" />',
                        '<ion:lang key="march" />',
                        '<ion:lang key="april" />',
                        '<ion:lang key="may" />',
                        '<ion:lang key="june" />',
                        '<ion:lang key="july" />',
                        '<ion:lang key="august" />',
                        '<ion:lang key="september" />',
                        '<ion:lang key="october" />',
                        '<ion:lang key="november" />',
                        '<ion:lang key="december" />'
                    ],
                    monthNamesShort: [
                        '<ion:lang key="jan" />',
                        '<ion:lang key="feb" />',
                        '<ion:lang key="mar" />',
                        '<ion:lang key="apr" />',
                        '<ion:lang key="may" />',
                        '<ion:lang key="jun" />',
                        '<ion:lang key="jul" />',
                        '<ion:lang key="aug" />',
                        '<ion:lang key="sep" />',
                        '<ion:lang key="oct" />',
                        '<ion:lang key="nov" />',
                        '<ion:lang key="dec" />'
                    ],
                    dayNames: [
                        '<ion:lang key="sunday" />',
                        '<ion:lang key="monday" />',
                        '<ion:lang key="tuesday" />',
                        '<ion:lang key="wednesday" />',
                        '<ion:lang key="thursday" />',
                        '<ion:lang key="friday" />',
                        '<ion:lang key="saturday" />',
                    ],
                    dayNamesShort: [
                        '<ion:lang key="sun" />',
                        '<ion:lang key="mon" />',
                        '<ion:lang key="tue" />',
                        '<ion:lang key="wed" />',
                        '<ion:lang key="thu" />',
                        '<ion:lang key="fri" />',
                        '<ion:lang key="sat" />',
                    ],
                    events: "<ion:base_url /><ion:current_lang />/eventcalendar/events",
			
                    loading: function(bool) {
                        if (bool) $('#loading').show();
                        else $('#loading').hide();
                    }
			
                });
		
            });

        </script>
        <style type='text/css'>
            #calendar {
                width: 100%;
                margin: 0 auto;
            }

        </style>
        <div id='wrap'>
            <div id='loading' style='display:none'><ion:lang key="module_eventcalendar_loading" /></div>
            <div id='eventcalendar-categories'>
                <h4><ion:lang key="module_eventcalendar_title_categories" /></h4>
                <ion:eventcalendar:categories>
                    <div class='eventcalendar-category' style="background-color: <ion:category_color />;">
                        <?= ('<ion:category_title />' != '') ? '<ion:category_title />' : '<ion:category_name />' ?>
                    </div>
                </ion:eventcalendar:categories>
                <div class='eventcalendar-category' style="background-color: #3366CC;">
                    <ion:lang key="module_eventcalendar_uncategorized" />
                </div>
            </div>
        <div class="container">
            <h1>Date</h1>
            
            <div id='calendar'></div>
        </div>
        </div>

Last edited by gygy42 (2014-06-02 12:35:43)

Offline

#34 2014-06-15 18:02:54

TanaTeo
Member
Registered: 2014-03-17
Posts: 4

Re: Event Calendar [MODULE] - [UPDATED - 06-07-2012]

Thanks a lot for the calendar. Installed it, followed all the previous directions, and the thing works great. I would love to contribute something to, but so far I have nothing to help out fix the other problems people have mentioned.

Offline

#35 2015-03-31 02:26:56

sanchezandoni
Member
Registered: 2013-11-18
Posts: 15

Re: Event Calendar [MODULE] - [UPDATED - 06-07-2012]

in file "views/admin/edit.php", changed the lines 78, 86 and 94 to:

<input id="url_<?= $lang ?><?= $id_event ?>" name="url_<?= $lang ?>" class="inputtext" type="text" value="<?= $languages["$lang"]['url'] ?>"/>

<input id="title_<?= $lang ?>$id_event" name="title_<?= $lang ?>" class="inputtext" type="text" value="<?= $languages["$lang"]['title'] ?>"/>

<input id="subtitle_<?= $lang ?><?= $id_event ?>" name="subtitle_<?= $lang ?>" class="inputtext" type="text" value="<?= $languages["$lang"]['subtitle'] ?>"/>

There was a problem in the php code which echoed the value for the input.

Offline

#36 2017-01-03 13:26:03

gnadirap
Member
From: CH-Ramsen
Registered: 2012-03-27
Posts: 33
Website

Re: Event Calendar [MODULE] - [UPDATED - 06-07-2012]

Is this module compatible with 1.0.9 ?

Regards

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations