krniro
Forum Replies Created
-
Forum: Plugins
In reply to: [ICS Calendar] Calendar not Showing eventsHi, just resolved. I tricked it with a start date. Now it’s working, otherwise it does not take into account events which starts in past & still going.
Forum: Plugins
In reply to: [ICS Calendar] Calendar not Showing eventsThank you for support. But, there are events also before July 31st. It shows those events correctly in Outlook.
Maybe the issue is, that this even has a start in past & ends in future. Does your plugin shows events that starts in past, but still active?
BR.
Forum: Plugins
In reply to: [ICS Calendar] Calendar not Showing eventsThanks for prompt reply. Please check below link:
http://www.villa-rajna.com/test-ics/
Google Calendar not showing events till March.Forum: Developing with WordPress
In reply to: form-action.phpYes, you are right. This was an issue. I added function to external file & everything works.
Thanks again!Forum: Plugins
In reply to: [ICS Calendar] Calendar not Showing eventsOne more, I tried to combine above calendar with Google with one space, but without success. Is there anything else I’m missing?
Google calendar:
https://calendar.google.com/calendar/ical/ofm5m2asp2qnt08am229n6gnrc%40group.calendar.google.com/public/basic.icsThanks!
Forum: Plugins
In reply to: [ICS Calendar] Calendar not Showing events@room34 thank you for prompt answer. I tried today the same, but it didn’t show events.
Thanks for helping!BR, Marin.
Forum: Developing with WordPress
In reply to: form-action.php@bcworkz thank you for reply. I think that the form is working & action is called. When I get redirected to blank post-admin.php I can see on Inspection screen, tab Network, that I have the data of my form.
I also realized, that I’m missing redirect. I added redirect, but somehow I’m still landing on post-admin.php blank page. I have also tried with action attribute as full, even though I have WP_DEBUG as true, but without sucess.<?php //Add Calendar to DB function acr_addRoom() { if ( isset($_POST["name"]) && isset($_POST["maxUnits"]) && isset($_POST["partlyBooked"]) > 0){ //get values from form $name = sanitize_text_field($_POST["name"]); $maxUnits = intval($_POST["maxUnits"]); $partlyBooked = intval($_POST['partlyBooked']); //inert into DB global $wpdb; $acr_rooms_table = $wpdb->prefix.'acr_rooms'; $wpdb->insert( $acr_rooms_table, array( 'name' => $name, 'maxUnits' => $maxUnits, 'partlyBooked' => $partlyBooked )); } wp_redirect( admin_url("admin.php?page=availability_calendar_rental_overview&setting=roomAdded")); exit; } add_action( 'admin_post_acr_addRoom', 'acr_addRoom' ); ?> <div class="wrap"> <h1>Add Room Info</h1> <form method="post" action="admin-post.php"> <input type="hidden" name="action" value="acr_addRoom" /> <table class="form-table"> <tr> <td><label for="name">Name</label></td> <td align="left"><input name="name" placeholder="Room Type A" id="name" type="text" class="regular-text code" required /> </td> </tr> <tr> <td><label for="maxUnits">Number of rooms</label></td> <td align="left"><input placeholder="10" name="maxUnits" id="maxUnits" type="number" class="regular-text code" min="1" required /> </td> </tr> <tr> <td><label for="partlyBooked">Threshold for "partly booked"</label></td> <td align="left"><input placeholder="1" name="partlyBooked" id="partlyBooked" type="number" class="regular-text code" min="1" required /> </td> </tr> </table> <br /> <input class="button button-primary" type="submit" value="Add Room" /> </form> </div>