latcomsystems
Forum Replies Created
-
function lcs_em_ical_item(){ global $wpdb, $wp_query, $wp_rewrite; //check if we're outputting an ical feed if( !empty($wp_query) && $wp_query->get('ical') ){ $execute_ical = false; $filename = 'events'; $args = array(); //single event if( $wp_query->get(EM_POST_TYPE_EVENT) ){ $event_id = $wpdb->get_var('SELECT event_id FROM '.EM_EVENTS_TABLE." WHERE event_slug='".$wp_query->get(EM_POST_TYPE_EVENT)."' AND event_status=1 LIMIT 1"); if( !empty($event_id) ){ $filename = $wp_query->get(EM_POST_TYPE_EVENT); $args['event'] = $event_id; } //single location }elseif( $wp_query->get(EM_POST_TYPE_LOCATION) ){ $location_id = $wpdb->get_var('SELECT location_id FROM '.EM_LOCATIONS_TABLE." WHERE location_slug='".$wp_query->get(EM_POST_TYPE_LOCATION)."' AND location_status=1 LIMIT 1"); if( !empty($location_id) ){ $filename = $wp_query->get(EM_POST_TYPE_LOCATION); $args['location'] = $location_id; } //taxonomies }else{ $taxonomies = EM_Object::get_taxonomies(); foreach($taxonomies as $tax_arg => $taxonomy_info){ $taxonomy_term = $wp_query->get($taxonomy_info['query_var']); if( $taxonomy_term ){ $filename = $taxonomy_term; $args[$tax_arg] = $taxonomy_term; } } } //only output the ical if we have a match from above if( count($args) > 0 ){ //send headers and output ical header('Content-type: text/calendar; charset=utf-8'); header('Content-Disposition: attachment; filename="'.$filename.'.ics"'); em_locate_template('templates/ical.php', true, array('args'=>$args)); exit(); }else{ //no item exists, so redirect to original URL $url_to_redirect = preg_replace("/ical\/$/",'', esc_url_raw(add_query_arg(array('ical'=>null)))); wp_redirect($url_to_redirect, '302'); exit(); } } } remove_action('parse_query', 'em_ical_item'); add_action ( 'parse_query', 'lcs_em_ical_item', 1 );@pyrostevejr The plugin code is incorrect. I created my own function that overrides the one in the plugin and generates the ical files correctly.
That didn’t make a difference. You can check here:
http://thoughtgallery.org/events-2/
Click on any of the iCal links in the list of events. It takes you to a browser page with VCALNDAR code instead of opening a file.This is what the formatting looks like:
<tr>
<td width=”150″>
#_EVENTDATES<br/>
#_EVENTTIMES
</td>
<td width=”*”>
#_EVENTLINK
{has_location}<br/><i>#_LOCATIONLINK, #_LOCATIONTOWN #_LOCATIONSTATE</i>{/has_location}
</td>
<td width=”50″>#_EVENTICALLINK</td>
</tr>
Forum: Plugins
In reply to: [LCS Security] Options not showingI don’t know what else to suggest. If you can, check your logs for any errors. Make sure you don’t have any other security plugins active at the same time. Also, make sure your WordPress version is at least 3.5 and your PHP version is at least 5.4. Try uninstalling and reinstalling the plugin.
Forum: Plugins
In reply to: [LCS Security] Options not showingDid you install and activate it?
Forum: Plugins
In reply to: [LCS Security] Options not showingLook for “LCS Security” in the left panel, it’s not under “Dashboard”.
Dashboard
Posts
Media
Pages
Comments
…
LCS Security
…Forum: Plugins
In reply to: [LCS HTTPS] Questions before installingYou are trying to have your entire site secured with SSL. As I explained several times, our plugin is not meant to do what you are trying to do. Please inactivate it and uninstall it and have a developer fix your unsecure items.
Forum: Plugins
In reply to: [LCS HTTPS] Questions before installingI wouldn’t recommend doing this for 100 pages. The plugin is really meant for making just a few of pages secure when the rest of the site is plain http://. You may want to have a developer take a look at your site and configure it correctly so that everything is forced to HTTPS:// at the host/server level (cpanel or something similar). Then you wouldn’t need any plugins.
Forum: Plugins
In reply to: [LCS HTTPS] Questions before installingAs I explained before, your site normally defaults to https://, but has unsecured local resources, that’s why it is not fully SSL protected. That’s why you are not seeing a fully green padlock.
If you use our plugin, you have to specify every page slug that needs to be HTTPS:// in the settings, otherwise it will redirect to HTTP://
Try adding one or two page slugs to the settings, and you will see that those pages will be HTTPS:// with a fully green padlock. Everything else will be HTTP://
Forum: Plugins
In reply to: [LCS HTTPS] Questions before installingLooks like you have mixed unsecure local content – several images – that is preventing the page from being fully SSL secure. You can try our plugin and specify the pages you are having trouble with to see if it fixes the problem.
I cannot troubleshoot any further because I don’t have access to your admin panel. If you would like a developer to contact you to work with you directly, please fill out the contact form on our site http://www.latcomsystems.com
Forum: Plugins
In reply to: [LCS HTTPS] Questions before installingYou can try installing this plugin to see if it helps resolve your issue. Sometimes, if a page has unsecure resources, it may not work correctly with SSL. Check your fonts, stylesheets, etc, to make sure they are all specified as https://.
Please provide an example URL if you’d like me to take a look at your site.
Forum: Plugins
In reply to: [LCS HTTPS] Home Page doas not redirected to HTTPSThis plugin is meant for specific pages that have their own slugs. For example, if you have an order page with credit card processing, you can specify its slug in the settings. The home page cannot be redirected to HTTPS because it doesn’t have a slug.
Please let us know it this answers your questions.