Ian Anderson Gray
Forum Replies Created
-
I’m not sure how the plugin implements redirection- do you rewrite links from https:// to https:// and vice versa? If so, I am wondering whether it is the Roots Theme that is causing the issues. Roots makes all links site relative. This might mean that the HTTPS plugin won’t work.
I’d rather not list the URL at the moment as the site hasn’t gone live yet.
It’s difficult to know what settings you might need for this. I’ve built a custom theme built on the Roots theme.
Could you tell me what is supposed to happen with WordPress HTTPS? It looks like it doesn’t do what I want to do out of the box.
For the time being I’ve created my own work around by adding the following to my functions.php file:
$https_URL = "https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; $http_URL = "https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; if((strpos($_SERVER["REQUEST_URI"],"/login/") !== FALSE OR strpos($_SERVER["REQUEST_URI"],"/contact/") !== FALSE) && $_SERVER["HTTPS"] != "on") { header("Location: $https_URL",TRUE,301); exit(); } // This forces logged in users to use HTTPS if (is_user_logged_in() && $_SERVER["HTTPS"] != "on"){ $newurl = "https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; header("Location: $https_URL"); exit(); } // Forces not logged in users to use HTTPS (except for certain pages) if (!is_user_logged_in() && $_SERVER["HTTPS"] == "on" && strpos($_SERVER["REQUEST_URI"],"/login/") === FALSE && strpos($_SERVER["REQUEST_URI"],"/contact/") === FALSE){ header("Location: $http_URL",TRUE,301); exit(); }
It’s a bit of a hack, but it works. I’d far rather use the WordPress HTTPS plugin.
Thanks!
Sorry for delay. I’ve tried disabling all plugins except for EO but with no success. The order in the query string is DESC but obviously something is going wrong.
Unfortunately it isn’t working for me. Is there anything I can give you to troubleshoot? All I can say it isn’t working despite putting the above code in my functions.php file.
Thanks, Stephen. Sorry for being really thick (still a bit of a noob!). I’m assuming I put this in my functions.php file? If not, where do I put it? I only want it to alter the order for the events archive template. I tried adding it to my functions.php file without success.
Forum: Plugins
In reply to: [Event Organiser] [Plugin: Event Organiser] One Map of all venuesThanks, Stephen. I’ll have a play when I have more time. It would be great if EO had this facility in the future, but I expect you’ve got other things on your priority list!
Thanks again for a really professional plugin!
Thanks, however I’m not using a shortcode- I am using the event Archive template file which uses a WordPress loop. I’m still a bit of a WordPress noob so I can’t work out how to change the order. Is it supposed to be ordered by date Ascending? I’d have thought it was more helpful to order the archive in date descending. Is there a way I can modify the template to achieve this?
Forum: Plugins
In reply to: [Event Organiser] [Plugin: Event Organiser] Conflict with W3 Total CacheJust wondering if there was any update on this? I am having the same issue.
Forum: Plugins
In reply to: [Yoast SEO] [Plugin: WordPress SEO by Yoast] Breadcrumbs no longer allow HTMLFabulous! Really good news.
I know there are different thoughts on this one, but what’s the thought on making the breadcrumbs outputted as an unordered list or at least giving the option of this?
Forum: Plugins
In reply to: [Yoast SEO] [Plugin: WordPress SEO by Yoast] Breadcrumbs no longer allow HTMLI have to say I don’t really like changing the code of plugins over multiple sites- it’s a pain to manage- especially when an update comes along. Hopefully this can be looked into?
Forum: Plugins
In reply to: [Yoast SEO] [Plugin: WordPress SEO by Yoast] Breadcrumbs no longer allow HTMLThanks, Thomask- works really well. I also had to change the link text and url lines to remove the
esc_html
bit:$link['text'] = $link['text']; $link['url'] = $link['url'];
Forum: Plugins
In reply to: [Yoast SEO] [Plugin: WordPress SEO by Yoast] Breadcrumbs no longer allow HTMLJust looked at the update log and seen that the Breadcrumbs has been completely rewritten and now use rich snippets – https://support.google.com/webmasters/bin/answer.py?hl=en&answer=185417
I’m all for this and I think it’s a great idea. However, this is going to make it more difficult to customise and it still outputs without using a list. It would be great if there was a setting to allow to output as a list, choose a divider (eg.
<span class="divider">/</span>
) and allow html generally (for example putting a home icon for home eg<i class="icon-home"></i> Home
I don’t think there is a work around at the moment for what I do as I can’t even turn rich snippets off (something I’d be reluctant to do, but would make things easier)
Forum: Plugins
In reply to: [Event Organiser] [Plugin: Event Organiser] custom fields in venueThanks, Stephen, this looks great.
Sorry I never got back to you- just madly busy.
I’m only starting to understand WP hooks and meta data, but I am assuming that Events Organiser 1.4 might allow me to add extra fields to venues?
Thanks, Stephen. I hadn’t realised that was a WordPress thing for custom post types. I’ll check the Stack Exchange post when my brain is working- it looks really helpful.
I have another question, but I’ll leave that for another post.
Forum: Plugins
In reply to: [Pronamic Google Maps] [Plugin: Pronamic Google Maps] Zoom controlsFab, thanks. This works really well. Be great if it could be added into the next release.