New events calendar template

More
11 years 2 months ago #33163 by fgossart
I this month calendar view template, I just like to have some links to browser months/years.
In the template I put some parameters to have x months before and after, but there is no effects.

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #33168 by igcorreia
I am also preparing a project to work with this template.

Baiscly each item is an EVENT. So if the user want to search what are the events available from THIS DATE to THAT DATE is this possible? This would be great.

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #33169 by fgossart
I will try now to debug the template and hope to understand how it works

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #33177 by fgossart
I think I have found a first bug in settings Display Events in future (custom value).
Actually the value has no effect, all the futures events are displayed.
In category_items.php i change the < with > on the second check . I think it's copied from before and not correct.
if ($displayEventsInFuture == 2) {
if (($dateToCheck[1] > ($today[1] + $displayEventsMonthInFutureCustom)) && ($dateToCheck2[1] > ($today[1] + $displayEventsMonthInFutureCustom)))
continue; // skip it < event doesnt lie in the current month's time range ($today[1] = month e.g. 4)}


it feels better now, I still have to found now how I could navigate through past and future months if possible.

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #33181 by fgossart
another bug ?
Month names ares displayed with bad encoding (février)
In source code it's easyier to use
$monthNames[$nameKey]=JDate::monthToString($nameKey);
and comment //$monthNames[$nameKey] = date('m', strtotime('2012-' . $nameKey));
and comment //$monthNames[$nameKey] = utf8_encode(strftime($MonthDateFormat, strtotime('2012-' .$monthNames[$nameKey])));


and another change
//$startMonth = utf8_encode(strftime('%B', strtotime($startDate)));
$startMonth = $monthNames[intval(strftime('%m', strtotime($startDate)))];

in category_items.php

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #33241 by Rehne
Replied by Rehne on topic New events calendar template
Hi,

please excuse my late response
unfortunately i'm not able to do much because of my bad health
but i would like to respond to a few points / questions
First let me say that I have the adapted the event template of Andrew to the needs of my clients … i am not specialized in PHP programming so i think a lot could be possibly better resolved

Now for the comments:

1. Template Position ‘table’

ggppdk wrote: I see that the category_items.php is not using the template position 'table'
The template will have to be updated to use this and or other template positions…

i do not understand why a table position must be present …. for this case
the render-only position is still available / sufficient … i think a table-position would be misleading to the user because the user is expected a output of a table but the category template don’t yous a table-view yet

2. use/show image field

fgossart wrote: I just try to put image field value (with eventually multiple images as gallery) just before description and I don't see any problem. …

as i said in a previous post
the display of an image (gallery) should be no problem (you have already been made it)
only when ….
e.g. you apply an Multiday event and for the individual dates are different images associates
in the item-view the event fields will be sorted (by php array_multisort) to show the next upcoming date as the first …. but somehow I have problems with images in an array
…. understandable what I mean ….

3. month selector
for this you must be set a few Options in the Template Params > Parameters: LIST LAYOUT
(see attachment)[attachment=0:179xfsha]<!-- ia0 -->event_template_accordion.JPG<!-- ia0 -->[/attachment:179xfsha]

NOTE:
A multiday event actually only appears once as a accordion
which is not correct if the multiday-event go over several months
you have to be modified the following in the gategory-items template to change the behavior
delete line 640
Code:
if ( ($event_catViewLayout == 1) && ($i > $event_startDay) ) continue; // show the event only one time (only in the start month) in the list layout

and put in place of at line 652 after
Code:
$eventMonthKey = $m + $monthAdjust;
following code
Code:
// show the event only one time (in all month) in the list layout $event_MonthKey[$i] = $eventMonthKey; if (isset($event_MonthKey[$i - 1])) { if ( ($event_catViewLayout == 1) && ($event_MonthKey[$i] == $event_MonthKey[$i - 1]) ) continue; }

4. future and past events

fgossart wrote: I this month calendar view template, I just like to have some links to browser months/years.
In the template I put some parameters to have x months before and after, but there is no effects.

i have tested this function again now … mmm…
do you have the problems with Multiday events, or one-day events, calendar- or list-view?
possibly see the NOTE before

but what I have noticed
the param “show EMPTY“ month not working properly for multiday-events fall in multiyears … sorry
i recommend to create one category per year and don’t show empty month
that's what i made in my projects where I used the template … without any Problem

5. Bugs

fgossart wrote: I think I have found a first bug in settings Display Events in future (custom value).
Actually the value has no effect, all the futures events are displayed.
In category_items.php i change the < with > on the second check . I think it's copied from before and not correct…...

thanks … that’s right … i think that the ‘&&’ must also be changed in ‘||’ !?
so the right code is
Code:
if ($displayEventsInFuture == 2) { if (($dateToCheck[1] > ($today[1] + $displayEventsMonthInFutureCustom)) || ($dateToCheck2[1] > ($today[1] + $displayEventsMonthInFutureCustom))) continue; }

fgossart wrote: another bug ?
Month names ares displayed with bad encoding (février)
In source code it's easyier to use….

have you tested it already - with different languages etc. ?
i'm going to look at you when i'm healthy again
i hope soon

Regards
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.319 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline