Elxis CMS Forum

Extensions => Components => Topic started by: apkoutsou on May 17, 2009, 16:24:18

Title: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: apkoutsou on May 17, 2009, 16:24:18
Well, I'm pleased to announce that Event Calendar for Elxis CMS 2008.x and 2009.x+ (both component and module) finally reached its beta stage!!!

Before uploading the packages to EDC, I'd like to share a release candidate (beta version) for bug-tracking and feature-testing by the community.

Please download and install the attached packages and feedback with comments, tracked bugs, feature suggetions etc., so that I can fix or include them respectively to the final release!

Download links:
* Event Calendar (component)
* Event Calendar (module)
* Event Calendar (module) - css code for customize.css (just to save your time  ;))

Beta stage is closed. Please check in ECD for the next official release.
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: babis1 on May 18, 2009, 15:40:16
i have tested ,so far so good, when i am ready i give a link but i have a problem because i want larger event titles, how can i make titles with more letters i thing the bigest now is 14 letters, i search in some files (js,classes php) but i havent time to search all of theme, please tell me where you give the max numbers of letters in every event title.
Thanks
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: apkoutsou on May 18, 2009, 16:06:42
thnx babis1!

Everything is controlled by the css file (path: /components/com_eventcalendar/templates/default.css), so you should look there first. There are explainatory comments inside css code and the classes are named in a well understandable way...

Nevertheless, be a bit more specific: you mean in month/week/day -view or when displaying a single event? So that I can tell you which class is responsible for the font-size...
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: mitsoud on May 18, 2009, 16:20:45
Το έβαλα και εγώ σε μια καινούργια δουλειά που ετοιμάζω
Κατα αρχήν συγχαρητηρια, Τώρα πρ΄το πρόβλήμα που βλέπω είανι ότιενώ εχω βάλει για αυριο μια εκδήλωση, μου λέει ότι Δεν υπάρχουν προσεχείς εκδηλώσεις.
Επίσης νομίζω ότι πρέπει να υπάρχει η δυνατότητα να απενεργοπηείται η περιοδικότητα
Although I hve put an event for tomorrow the module when is published said that there is no event for the future..
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: babis1 on May 18, 2009, 17:53:24
look i have pe one event with the title Event Calendar for Elxis CMS 2008.x and 2009.x+, at the front i see only Event Calendar... i want to change how many letters you can see inside the td of every day
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: apkoutsou on May 18, 2009, 22:03:07
@mitsoud:
thnx  :D
That's weird... It doesn't work for me either, though it did... I'll see what's wrong...
Why to deactivate periodicity? Which case does it serve? The start/end dates are publishing dates! So you may set the same day as start/end date and let periodicity to (default) every day and so limit the range of event to one day...Have you an event e.g. on 13 and 15/05/2009, set the start date to 13/05/2009 and the end date to 15/05/2009 and add an exception on 14/05/2009... Soon I'll create a wiki page with examples and instructions...

@babis1:
Well that's something that's not controled by css... Cropping length was calculated for okto theme...
Go to /components/com_eventcalendar/eventcalendar.html.php (lines 184, 290, 300, 308, 315 and 324), find the function
Code: [Select]
eUTF::utf8_trim($day_event->title), 0, 15)and replace 15 with the desired length...
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: babis1 on May 18, 2009, 22:37:00
ok thanks it work i make the 15............. :o 105  :P , for the moment is tested here http://www.foschristu.gr/events/
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: apkoutsou on May 19, 2009, 00:59:38
@babis1:
For better visual results open /components/com_eventcalendar/templates/default.css and add

Code: [Select]
margin-left: 10px;
in every .event_calendar_xxxx_table class in the css file (so that the component has a small distance from the left column), e.g.:

Code: [Select]
.event_calendar_month_table {
font-family:Arial;
padding:5px;
border:solid 1px #CFCFCF;
border-collapse:collapse;
margin-top: 10px;
width: 100%;
}

tutns to:

Code: [Select]
.event_calendar_month_table {
font-family:Arial;
padding:5px;
border:solid 1px #CFCFCF;
border-collapse:collapse;
margin-top: 10px;
margin-left: 10px; <-----------------------|
width: 100%;
}

Have also in mind that when the compont is released, there shall be more templates, including a gray one, that shall fit your site the most...  ;)

@mitsoud:
I found the bug: when the event is limited in one day (e.g. starts 2009-05-20 and ends 2009-05-20, whatever its time is) then it is not displayed at the forthcoming section of the module... I'll work on it...
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: datahell on May 19, 2009, 11:29:46
Nice job apostolis and a really useful component.
When you finish it I will take a look to it to make fixes if needed in order to run smoothly under Elxis 2008/2009. I care mostly for the validity of the SEO PRO extension and the 2009.0 compatible SEO PRO base names. Event Calendar should use the "events" SEO PRO base name under Elxis 2009.0+.
http://wiki.elxis.org/wiki/SEO_PRO_base_names (http://wiki.elxis.org/wiki/SEO_PRO_base_names)
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: apkoutsou on May 19, 2009, 22:27:52
thnx datahell! It's very important to hear something like that from you!!  ;D

Till now, only one bug is tracked, so I hope that after this weekend, the component shall be ready for release (and so a copy will be sent to your mailbox)
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: apkoutsou on May 22, 2009, 21:30:04
Well, this is the last day of beta testing! This weekend I'll fix the only bug that was tracked, and then release the component/module!

Any last suggestions/bugs/etc. until tonight...
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: nikos65 on May 22, 2009, 23:35:15
Thanks apkoutsou for your nice work  :)
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: apkoutsou on May 23, 2009, 12:52:55
thnx nikos65!!

The bug is fixed! The problem was in line 286 (mod_eventcalendar.php):
Code: [Select]
$working_day = strtotime( "+1 day", time() );
The time() function returns both date and time which caused a wrong result of calcRecursion() function. This function checks if working date is inside event periodidcity, so the passed timestamp should be clear of times - only date!

Here is the correct code:
Code: [Select]
$working_day = strtotime( "+1 day", mktime(0, 0, 0, date("m"), date("d"), date("Y")) );
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: datahell on May 23, 2009, 22:22:35
Αν θες να βρεις το timestamp της αυριανής μέρας το πιο σωστό είναι αυτό:

$working_day = mktime(0, 0, 0, date('m'), date('d') + 1, date('Y'));

Η PHP έχει εσωτερικούς μηχανισμούς που υπολογίζουν αν πήγαμε στον επόμενο μήνα ή έτος, τον αριθμό των ημερών του μήνα, τα δίσεκτα έτη κλπ. Οπότε το παραπάνω θα σου δίνει πάντα σωστά την αυριανή ημέρα (12 η ώρα το βράδυ).

Παράδειγμα:
το: mktime(0, 0, 0, 5, 32, 2009);
Θα μας δώσει: 1 Ιουνίου 2009

το: mktime(0, 0, 0, 2, 32, 2009);
Θα μας δώσει: 4 Μαρτίου 2009

Εναλλακτικά:
$working_day = time() + 86400; (όχι όμως 12 το βράδυ, αλλά δεν σε ενδιαφέρει εσένα για τον σκοπό που το θες).

Σημείωση
Οι συναρτήσεις strtotime και strftime είναι λίγο αργές και πρέπει να χρησιμοποιώνται μόνο όταν δεν βρίσκουμε καλύτερη μέθοδο.
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: mitsoud on May 26, 2009, 18:52:36
o.k the bug is fixed but I still want to disable periodiciti, because it appears when I click the event


Periodicity Every Day

And it seems a litle stupid.... :)(http://periodicity.jpg)

Also another bug
If I click the link of the category"ΕΚΔΗΛΩΣΕΙΣ" as you see in the picture. I get an error the link goes to nowhere...

[attachment deleted by admin]
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: apkoutsou on May 27, 2009, 02:24:00
Ok! I'll include an option to disable periodicity display at event-view...

Please copy here the link created by the module, in order to understand what may be wrong...Or even better post the address of your site!!
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: mitsoud on May 27, 2009, 12:47:27
Thank you for accept my comments
This is the link when I click on category
http://localhost/index.php?option=com_eventcalendar&task=catview&catid=60&Itemid=2
it opens http://localhost/xampp !!!
The site is only in my PC yet.. I will send you a link when it will be ready, 10 days by now
Thankyou
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: apkoutsou on May 27, 2009, 15:42:19
the link you gave will not work anywhere but on your computer!!! localhost is the name each server understands itself. So if I type localhost in my webbrowser, I'll be send to my own server not yours... So you have to replace localhost with your public ip (the one that your provider gives you) set your router to send HTTP requests to your pc and apply new firewall rules in router and OS...

I suggest that you upload your site first and then we'll see if the problem remains...

Moreover, I'll publish the module later, maybe next week, since my time this period is limited...
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: apkoutsou on May 31, 2009, 23:40:05
ok! the first release is out on EDC...

@mitsoud: your suggestion was included  ;)
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: mitsoud on June 01, 2009, 15:45:20
Thank you Apostolis It's very nice. In one week about the site with the calendar will be on air, I will send you a message, thank's again
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: mitsoud on June 02, 2009, 18:50:36
I found something strange in chrome browser (only withe stable version happens)
 when I click on an event, the event doesnt open under the front page module but near, I mean under the right column of template,(see the picture)
I go to eventcalendar.html.php, I made a paragrapg from line 462 to line 497 also one <p>&nbsp; </p> to line 498 and Everything is O.K. now.. :)

[attachment deleted by admin]
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: apkoutsou on June 02, 2009, 19:00:31
please tell me the url of your site...
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: mitsoud on June 03, 2009, 11:47:09
My site is only in my pc by the moment, Please be patient, it will be on air in one week
Thank you
(we are very very lucky about the php file of the Greek History, thans again)
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: ngprogr on June 29, 2009, 18:02:38
Καλησπέρα σας και μπράβο για την πολύ καλή δουλεια που κάνετε.
Έχω εγκαταστήσει το event calendar αλλά στα αριστερά απο το ημερολόγιο μου εμφανίζει 23 ,24,25,26,27 και είναι υπερσύνδεση.
Μπορείτε να μου εξηγήσεται τι είναι αυτό γιατί δεν έχω καταλάβει και πως μπορώ να το σβήσω ώστε να μην εμφανίζεται.

Ευχαριστώ για την πολύτιμη βοηθειά σας...
Καλή δύναμη σε όλους
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: webgift on June 29, 2009, 18:08:39
Αν είχες να μας δώσεις ένα link τότε θα ήταν καλύτερα .!
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: apkoutsou on June 29, 2009, 20:14:35
Είναι ο αριθμός της εβδομάδας! Από το config panel του event calendar μπορείς να επιλέξεις τόσο εάν θα εμφανίζεται ο αριθμός σαν υπερσύνδεσμος (που παραπέμπει στην εβδομαδιαία προβολή) όσο και αν θα εμφανίζεται γενικά ο αριθμός της εβδομάδας...

Menu >> Components >> Event Calendar >> Configuration
Tab Εμφάνιση >> Εμφάνιση αριμθού εβδομάδων || Εμφάνιση αριμθού εβδομάδων ως σύνδεσμος

Τώρα που χαλάρωσα από την δουλειά θα καθίσω να ολοκληρώσω τον οδηγό στο Wiki ώστε να βρίσκετε άμεσα λύση σε όλα αυτά τα προβλήματα!!!
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: webgift on June 29, 2009, 23:39:03
Σιγά σιγά φίλε μου ... όλα θα τα στρώσουμε!
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: mitsoud on July 02, 2009, 12:18:11
check here calendar www.xristianiki.gr
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: apkoutsou on July 02, 2009, 13:45:50
Έχει κάτσει πολύ ωραία στο site (το οποίο είναι πολύ καλό!!!)...
Title: Re: Event Calendar for Elxis CMS 2008.x and 2009.x+
Post by: ngprogr on July 02, 2009, 19:22:50
Σας ευχαριστώ πολύ για την πληροφορία...
Ημουν πνιγμένος και γι αυτό δεν μπόρεσα να σας ευχαριστήσω Νωρίτερα.

Καλό απόγευμα σε όλους. ;D