Cleveland Heights-University Heights Public Library Webdeveloper
Forum Replies Created
-
Forum: Plugins
In reply to: [Book a Room] Divi and [meetingRooms] shortcodeI see you updated and the content looks better. I did notice that you are showing an older bug that I though I had fixed.
It was letting me (not logged in) try to reserve today, but after the current time. THIs is an issue with the compare for the reserve buffer.
I put out another update. Can you let me know when it’s installed. I’d like to see if this fixes this for you.
Forum: Plugins
In reply to: [Book a Room] Divi and [meetingRooms] shortcodeI put up a new update that uses the return instead of include. CAn you try again?
Forum: Plugins
In reply to: [Book a Room] Divi and [meetingRooms] shortcodeI think this is due to my shortcodes ‘echoing’ instead of ‘returning’ values. I’m looking into it now.
Forum: Plugins
In reply to: [Book a Room] Divi and [meetingRooms] shortcodeI just made an update. This wraps the content on those public pages in a <div> with some clearfix css applied. Can you let me know if this helps?
Forum: Plugins
In reply to: [Book a Room] Branch not created when creating branchI am working on converting to PHP 7+. I have some other applications that we use here at my own library that we need to convert as well, which I’m also working on, but rest assured I am making the move to 7 as soon as I can.
Forum: Plugins
In reply to: [Book a Room] Divi and [meetingRooms] shortcodeI’m taking a look. I probably need to add a container for the page in CSS. Can you create a branch, room and room container while I look into things?
Forum: Plugins
In reply to: [Book a Room] Registration form fieldsWhile this is all planned, it’s complex and will take some time. Please keep checking back as I’m making more changes.
I just put up a new version. New meeting requests will save their created time with the local time and should present correctly. Unfortunately this won’t affect older items.
Can you let me know if this looks better?
At this point I may make some changes that directly enter the date in local format for the creation date.
This would avoid all of the timezone problems.
I’ll play around on my test site and see how this works.
I have a line I wrote up that you can add to fix this, but it’s still not accepting DST. Working on it.
TI_CREATED is set by the server to log in real time when it was created.
The times it is pulling are coming from ti_startTime and ti_endTime. Are those correct?
That third line is returning UTC.
Your WordPress time and MySQL time look good if your local time is 12:44.
Strange. Are you able to access your database entries? Can you see if the entries are being recoreded properly in the wp_bookaroom_times table? They should be readable in plain text.
There looks to be a difference between the server time zone used by PHP (the 6:44 pm) and your WordPress time zone (12:44 pm).
But both your WordPress and MySQL time zones show 12:44 pm.
Is the 12:44 pm your correct local time?
(As an example, my server is in AZ, but I’m in OH.I get:
07-02-18 2:50 pm 2018-07-02 14:50:53 07-02-18 6:50 pm2:50 pm is my correct local time)
I’m not sure how savvy you are, but let me know if you can do this:
On a settings page that isn’t used much, we’re going to add some testing lines.
If you look at the file:
wp-content > plugins > book-a-room > templates > content > mainAdmin.phpIt starts with:
<link href="<?php echo plugins_url(); ?>/book-a-room/css/bookaroom_meetings.css" rel="stylesheet" type="text/css"/> <?php require( BOOKAROOM_PATH . 'templates/mainSettings/helpTableSetup.php' ); ?>Can you change this to (just adding those preme lines):
<link href="<?php echo plugins_url(); ?>/book-a-room/css/bookaroom_meetings.css" rel="stylesheet" type="text/css"/> <?php require( BOOKAROOM_PATH . 'templates/mainSettings/helpTableSetup.php' ); preme( date( 'm-d-y g:i a', current_time( 'timestamp' ) ) ); preme( current_time( 'mysql' ) ); preme( date( 'm-d-y g:i a', time() ) ); ?>Then go into the Content Settings page. You should see some dates at the top. Can you let me know what they are? If you can’t do this, let me know and I’ll look at other ways I can try and debug this.
The first thing is to make sure that your WordPress is set to local timezone.
If your host is in a different timezone than your MySQL server, you may need to set that in cpanel or have your host set that.
IF that doesn’t help I can look at forcing it as a setting.