Etienne
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Hestia] Need have the new X twitter logoThanks for the update, looking good.
Forum: Themes and Templates
In reply to: [Hestia] Need have the new X twitter logoHi,
Any updates on this? We’re talking about a logo and a URL.
Regards, Etienne
Forum: Themes and Templates
In reply to: [Hestia] Slow on first load + warningsHi,
Would it be possible to reply on this item? Otherwise we need to rework the whole site to a new theme because this will not generate any visitors.
Thank you! ??
Forum: Plugins
In reply to: [Easy Quotes] rotation view mode: make order also randomHi Jürgen,
Thanks for the quick support on this solution and looking good!
WP did not see it as a new version but downloaded and uploaded your latest one and it works fine.
Thanks!
Forum: Themes and Templates
In reply to: [OneColumn] Theme update: new mobile navigationThanks Guido, works nice.
Forum: Themes and Templates
In reply to: [OneColumn] Theme update: new mobile navigationHi Guido,
Where can I find the latest header.php for Onecolumn Child theme?
Mobile menu is vanished indeed.Regards, Etienne
Hi Joe,
Updated plugin, works fine now.
Thanks for quick response and proper solution!
Regards,
Etienne
Good to hear Joe!
Thanks for the update.
Hi Joe,
Checked out the ltype=”name” as well: no success. Maybe useful for you to know: using this at type=”month” works indeed correct as well.
Also no differences detected between being logged in or logged out.Hope you crack the code really soon so the shortcode will work up to spec. Thanks!
Forum: Plugins
In reply to: [My Calendar - Accessible Event Manager] Location tagsHi Joe,
Found it already, sorry ??
Forum: Plugins
In reply to: [My Calendar - Accessible Event Manager] Location tagsThanks for quick reply Joe, I’ll dive into that!
And as mentioned: how can the location URL also be shown in the pop-up screen (after clicking on a date with an activity)?
Oops, could not edit above version any more, made functionality for adding address information as well:
function create_conn_to_location_array($entry){ // define array to write data from connections dbase to my calendar locations dbase $array = array("location_label" => $entry->getOrganization(), "location_street" => $entry->getAddresses()[0]->line_1, "location_city" => $entry->getAddresses()[0]->city, "location_postcode" => $entry->getAddresses()[0]->zipcode, "location_longitude" => $entry->getAddresses()[0]->longitude, "location_latitude" => $entry->getAddresses()[0]->latitude, "location_zoom" => 16, "location_access" => 'N;'); return $array; } function add_calendar_location($entry) { // add new calendar location based on connection entry global $wpdb, $table_prefix; $value_array = array_merge ( create_conn_to_location_array($entry), array("location_id" => $entry->getId()) ); $wpdb->insert($table_prefix."my_calendar_locations", $value_array); } add_action('cn_post_process_add-entry', 'add_calendar_location'); function update_calendar_location($entry) { // update calendar location based on connection update global $wpdb, $table_prefix; $id = $wpdb->get_results("SELECT location_id FROM ".$table_prefix."my_calendar_locations WHERE location_id = ".$entry->getId()." LIMIT 1"); if ($id[0]->location_id == $entry->getId()) $wpdb->update( $table_prefix."my_calendar_locations", create_conn_to_location_array($entry), array("location_id" => $entry->getId())); else add_calendar_location($entry); } add_action('cn_post_process_update-entry', 'update_calendar_location');
Kept id from connections and my calendar-location equal to use shortcodes for easier linking of calendar events to connections and vice versa.
Every new connections is also made as a my calendar location, kept dbase-update on ‘low-level’:
function add_calendar_location($entry) { // add new calendar location global $wpdb, $table_prefix; $wpdb->insert($table_prefix."my_calendar_locations", array("location_id" => $entry->getId(), "location_label" => $entry->getOrganization()), array("%d", "%s")); } add_action('cn_post_process_add-entry', 'add_calendar_location'); function update_calendar_location($entry) { global $wpdb, $table_prefix; // check if record exists. If so: update. If not: create $id = $wpdb->get_results("SELECT location_id FROM ".$table_prefix."my_calendar_locations WHERE location_id = ".$entry->getId()." LIMIT 1"); if ($id[0]->location_id == $entry->getId()) $wpdb->update( $table_prefix."my_calendar_locations", array("location_label" => $entry->getOrganization()), array("location_id" => $entry->getId()), array("%s"), array("%d") ); else add_calendar_location($entry); } add_action('cn_post_process_update-entry', 'update_calendar_location');
Note: for now only company name is defined.
Address info will need bit more playing around with PHP and $entry values due to possible multiple available addresses.Hi Joe, got it working with the hooks provided by Connection plugin. Thanks for linking together.
Thanks, good solution and got it working.