Calendar plugin for AppGini version 1.0 released

Topics related to AppGini plugins/add-ons go here.
sathukorala
AppGini Super Hero
AppGini Super Hero
Posts: 121
Joined: 2020-02-16 16:29

Re: Calendar plugin for AppGini version 1.0 released

Post by sathukorala » 2020-07-14 05:46

sathukorala wrote:
2020-07-10 15:09
Calendar plugin doesn't support YYYY-MM-DD HH:MM:SS format (like 2020-07-01 05:54:00) but the SPM plugin uses YYYY-MM-DD HH:MM:SS format

Is there a way to change SPM date time format to other formats like YYYY/MM/DD HH:MM:SS format?
Or is there a way around to avoid this hassle?

Found a workaround

After installing the SPM plugin:
goto hooks > TABLE_NAME_filter.php file:

Edit following with format: 'YYYY/MM/DD HH:mm:ss (or any other format you prefer):

Code: Select all

<script>
		$j(function(){
			//date
			$j("#from-date_2 , #to-date_2 ").datetimepicker({
				format: 'YYYY/MM/DD HH:mm:ss'   //config
			});

			$j("#from-date_2" ).on('dp.change' , function(e){
				date = moment(e.date).add(1, 'month');  
				$j("#to-date_2 ").val(date.format('YYYY/MM/DD HH:mm:ss')).data("DateTimePicker").minDate(e.date);
			});
		});
	</script>

That format will work with both Calendar plugin and SPM together

User avatar
ronwill
Veteran Member
Posts: 228
Joined: 2015-08-08 10:12
Location: Cheltenham UK +Weatherford USA

Re: Calendar plugin for AppGini version 1.0 released

Post by ronwill » 2020-08-13 01:28

ronwill wrote:
2020-05-26 13:32
Anyone else having issue with displaying events on iPads / iPhones (see images)?
Working for other devices.
devices.jpg
Anyone else experienced this?
Ron - Gloucestershire, UK: AppGini Pro V 23.15 Rev 1484 - LOVING IT!
Plugins: Mass Update + Search Page Maker + Summary Reports + Calendar + Messages
Bizzworxx: AppGiniHelper + Inline Detail View
Alejandro Landini: To-Do List + MPI + TV Field Editor
Other: Udemy Course

User avatar
zibrahim
Veteran Member
Posts: 137
Joined: 2020-01-28 18:30
Location: Malaysia

Re: Calendar plugin for AppGini version 1.0 released

Post by zibrahim » 2020-08-13 02:19

Hi Ron,
I am not experiencing what you are seing. Both my iphone and ipad are displaying as expected.
Even if I requested Desktop view, it still appear nicely.
IMG_1759.jpg
IMG_1759.jpg (87.51 KiB) Viewed 3026 times
IMG_1761.jpg
IMG_1761.jpg (71.76 KiB) Viewed 3026 times
Zala.
Appgini 24.10.1579, MacOS 14.3.1 Windows 11 on Parallels.

User avatar
ronwill
Veteran Member
Posts: 228
Joined: 2015-08-08 10:12
Location: Cheltenham UK +Weatherford USA

Re: Calendar plugin for AppGini version 1.0 released

Post by ronwill » 2020-08-13 15:35

Thanks Zala,

Back to the drawing board for me to try and find out what is causing it to happen, I'll probably setup a duplicate project without any tweaks/changes and see what that throws up.

Cheers,
Ron
Ron - Gloucestershire, UK: AppGini Pro V 23.15 Rev 1484 - LOVING IT!
Plugins: Mass Update + Search Page Maker + Summary Reports + Calendar + Messages
Bizzworxx: AppGiniHelper + Inline Detail View
Alejandro Landini: To-Do List + MPI + TV Field Editor
Other: Udemy Course

User avatar
ronwill
Veteran Member
Posts: 228
Joined: 2015-08-08 10:12
Location: Cheltenham UK +Weatherford USA

Re: Calendar plugin for AppGini version 1.0 released

Post by ronwill » 2020-08-13 16:27

ronwill wrote:
2020-08-13 15:35
Thanks Zala,

Back to the drawing board for me to try and find out what is causing it to happen, I'll probably setup a duplicate project without any tweaks/changes and see what that throws up.

Cheers,
Ron
Found it!

Seems that I must have deleted this line (headers.php): <div class="users-area container theme-bootstrap theme-3d theme-compact">
My settings in my AG application theme settings file had USE 3D EFFECTS checked. When I unchecked 3D and kept above div line out it all worked ok, when I re-checked for 3D and put the div line in it also works.
I would not have found it without going file by file / line by line as there were no other visible issues just the one with iPhone/iPad - It's just lucky I started with the right file to check LOL.

Thanks for your responding, Cheers, Ron
Ron - Gloucestershire, UK: AppGini Pro V 23.15 Rev 1484 - LOVING IT!
Plugins: Mass Update + Search Page Maker + Summary Reports + Calendar + Messages
Bizzworxx: AppGiniHelper + Inline Detail View
Alejandro Landini: To-Do List + MPI + TV Field Editor
Other: Udemy Course

sclifton
Posts: 8
Joined: 2020-10-21 10:31

Re: Calendar plugin for AppGini version 1.0 released

Post by sclifton » 2020-10-21 11:44

a.gneady wrote:
2020-04-09 13:37
zibrahim wrote:
2020-04-05 02:55
Hi guys,
I am using this new plugins a lot and I noticed that if the event started more that 2 weeks before it cross the following month, it will not be shown in the following month.
Example, my event start on April 25th 2020 and last until May 10th 2020. The event bar only will show up until 2nd May in the April Month view and when I click to the following month (May), I will not see the event anymore in the May calendar view.
But if I change the event start on April 26th, then I can see the continuity in the May calendar.
Appreciate if someone can verify this.
Thanks guys. Stay at Home.

Zala.
Staying at Home.
I'll investigate this issue and see if it can be fixed. My guess is that fullcalendar issues an ajax request to retrieve events, with a specific start and end date ... The ajax response sends the events in the requested date range ... but maybe this needs to be changed so that the events sent are those starting a bit earlier than the specified start date. I'll investigate this and make the necessary fixes in the next release.

Alternatively, you can in the meantime edit file <application-root>/plugins/calendar/generate.php and delete line 431 so:

428 $eo = array('silentErrors' => true);
429 $res = sql(
430 "SELECT {$fields} FROM {$from} AND
431 `{$table}`.`{$startDateField}` >= '{$start}' AND
432 ({$eventDatesWhere}) AND
433 ({$customWhere})", $eo
434 );

becomes:

428 $eo = array('silentErrors' => true);
429 $res = sql(
430 "SELECT {$fields} FROM {$from} AND
431 ({$eventDatesWhere}) AND
432 ({$customWhere})", $eo
433 );

You will then be able to view calendar entries which start in an earlier month but also cover days within the current month view.

The original SQL conditional fragment enforced retrieving entries ONLY where they commence during the CURRENT month which is the reason why the moment a user switches to the next month, they don't see ongoing calendar entries. As far as I can tell, this change has no negative consequences and multi-month calendar entries are now included and displayed correctly.

This change only needs to be made once since generate.php is a static file, used to create calendar specific PHP and JS file content in the hooks folder.

I hope that helps!

User avatar
zibrahim
Veteran Member
Posts: 137
Joined: 2020-01-28 18:30
Location: Malaysia

Re: Calendar plugin for AppGini version 1.0 released

Post by zibrahim » 2020-10-24 04:10

Hi sclifton,
Fantastic ! I have applied your method and it is working great !!!
Thank you so much and stay safe my friend.
Zala.
Appgini 24.10.1579, MacOS 14.3.1 Windows 11 on Parallels.

sclifton
Posts: 8
Joined: 2020-10-21 10:31

Re: Calendar plugin for AppGini version 1.0 released

Post by sclifton » 2020-11-02 21:26

zibrahim wrote:
2020-10-24 04:10
Hi sclifton,
Fantastic ! I have applied your method and it is working great !!!
Thank you so much and stay safe my friend.
You're very welcome - glad it helped!

User avatar
zibrahim
Veteran Member
Posts: 137
Joined: 2020-01-28 18:30
Location: Malaysia

Re: Calendar plugin for AppGini version 1.0 released

Post by zibrahim » 2020-11-09 23:24

Hello everyone,
Just wondering if anybody has tested the Calendar Plugin Version 1.2 ?
I found out yesterday when I was re-downloading all the plugins.
By the way is there any mailing list that I can subscribe to be notified when new plugins version released?
Zala.
Appgini 24.10.1579, MacOS 14.3.1 Windows 11 on Parallels.

SkayyHH
Veteran Member
Posts: 425
Joined: 2015-04-27 21:18

Re: Calendar plugin for AppGini version 1.0 released

Post by SkayyHH » 2020-11-10 16:18

hi. I have tested them. Works fine for me. There was a bug that events lasting several days were not displayed correctly. That is now fixed :-)

However, i miss recurring events. e.g. to show birthdays ...

Kai

Post Reply