-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
probable solution for touchscreens #163
Comments
Hi, I have placed a + (plussign) as a link again. in includes/functions.php just after In the month-view you will see a link [ + ] if you click or tap on it a new entry can be made. Regards, |
Hello Jan. Would you mind providing a bit more detail on this. I have added the code as you directed but it just ends up stop the webcalendar from loading. This is where I have placed your code as instructed... Have I done something wrong? With the addition of the code again the webcal simply doesn't load... Any help is very much appreciated!!! Much Thanks, John |
I will copy a bigger part of the code. |
Hi,
It is working in my calendar and that of the customer. Regards, |
Jan this is so very much appreciated...!!!
Thank you, John
Sent: Thursday, February 27, 2020 at 12:50 AM
From: "janvanl" <[email protected]>
To: craigk5n/webcalendar <[email protected]>
Cc: john-mcdermott <[email protected]>, Comment <[email protected]>
Subject: Re: [craigk5n/webcalendar] probable solution for touchscreens (#163)
Hi,
this is the code from line 4592 to 4610.
if ( ! $ssi ) {
/* translate ( 'First Quarter Moon') translate ( 'Full Moon' )
translate ( 'Last Quarter Moon') translate ( 'New Moon' )
*/
$userCatStr = ( strcmp ( $user, $login ) ? 'user=' . $user . '&' : '' )
. ( empty ( $cat_id ) ? '' : 'cat_id=' . $cat_id . '&' );
$tmp = ( empty( $moons[$date] ) ? '' : $moons[$date] );
$moon_title = ( empty ( $tmp ) ? '' : translate ( ucfirst ( $tmp )
. ( strpos ( 'fullnew', $tmp ) !== false ? '' : ' Quarter' ) . ' Moon' ) );
$ret = ( $can_add ? '
<a title="' . $newEntryStr . '" href="edit_entry.php?' . $userCatStr
. 'date=' . $date . '"><img src="images/new.gif" alt="' . $newEntryStr
. '" class="new" /></a>' : '' ) . '
<a class="dayofmonth" href="day.php?' . $userCatStr . 'date=' . $date
. '">' . substr ( $date, 6, 2 ) . '</a><span style="float:right"><a href="edit_entry.php?date='.$date.'" title="Einzelklick fügt einen neuen Termin ein."><b><u>[ + ]</u></b></a> </span>' . ( empty ( $tmp )
? '' : '<img src="images/' . $tmp . 'moon.gif" title="' . $moon_title
. '" alt="' . $moon_title . '" />' ) . "<br />\n";
$cnt++;
}
It is working in my calendar and that of the customer.
Mind the quotes. Seems you made a mistake there.
Regards,
Jan
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Got it to work on a fresh 1.3 install. So can confirm that.
Unfortunately, it does not appear to work with a cpanel updated install from 1.29->1.3. No idea why.
Again appreciated in any case!!!
Thank you Jan
Cheers, John
Sent: Thursday, February 27, 2020 at 12:50 AM
From: "janvanl" <[email protected]>
To: craigk5n/webcalendar <[email protected]>
Cc: john-mcdermott <[email protected]>, Comment <[email protected]>
Subject: Re: [craigk5n/webcalendar] probable solution for touchscreens (#163)
Hi,
this is the code from line 4592 to 4610.
if ( ! $ssi ) {
/* translate ( 'First Quarter Moon') translate ( 'Full Moon' )
translate ( 'Last Quarter Moon') translate ( 'New Moon' )
*/
$userCatStr = ( strcmp ( $user, $login ) ? 'user=' . $user . '&' : '' )
. ( empty ( $cat_id ) ? '' : 'cat_id=' . $cat_id . '&' );
$tmp = ( empty( $moons[$date] ) ? '' : $moons[$date] );
$moon_title = ( empty ( $tmp ) ? '' : translate ( ucfirst ( $tmp )
. ( strpos ( 'fullnew', $tmp ) !== false ? '' : ' Quarter' ) . ' Moon' ) );
$ret = ( $can_add ? '
<a title="' . $newEntryStr . '" href="edit_entry.php?' . $userCatStr
. 'date=' . $date . '"><img src="images/new.gif" alt="' . $newEntryStr
. '" class="new" /></a>' : '' ) . '
<a class="dayofmonth" href="day.php?' . $userCatStr . 'date=' . $date
. '">' . substr ( $date, 6, 2 ) . '</a><span style="float:right"><a href="edit_entry.php?date='.$date.'" title="Einzelklick fügt einen neuen Termin ein."><b><u>[ + ]</u></b></a> </span>' . ( empty ( $tmp )
? '' : '<img src="images/' . $tmp . 'moon.gif" title="' . $moon_title
. '" alt="' . $moon_title . '" />' ) . "<br />\n";
$cnt++;
}
It is working in my calendar and that of the customer.
Mind the quotes. Seems you made a mistake there.
Regards,
Jan
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Note that there is a setting, stored as |
In regard to the comment from @adam12b1 above, that is not what ADD_LINK_IN_VIEWS is used for. That option enables/disables the ability to add (via double click) events from any of the custom view pages (view_m.php, view_w.php, etc.). Without this option being enabled, users need to go to a standard view (month.php, week.php, etc.) to add an event with the double click. It may be worth adding better help text for that option to better describe this feature. Otherwise, this issue is a duplicate of #140, so I am closing this one. |
Hi,
I found
https://www.jqueryscript.net/other/jQuery-Plugin-For-Double-Click-Tap-Detection-doubleTap.html
You use dblclick_add.js
I will try if it helps changing to the jquery plugin.
Regards,
Jan
The text was updated successfully, but these errors were encountered: