Re: https with bbPress login
I have no way to test this code right now
but try putting into a file called https-mode.php
and put it into your my-plugins directory
(you might have to create the directory)
and then activate it in your control panel.
In theory it should make bbpress internal urls HTTPS when it detects you are trying to use HTTPS:// (SSL) mode, even though your main bbpress url is HTTP://
<?php
/*
Plugin Name: HTTPS mode
Description: forces internal bbPress URLs from HTTP to HTTPS only when using SSL
*/
add_filter( 'bb_get_uri', 'https_mode',1,3);
add_filter( 'bb_get_option_uri','https_mode',1);
function https_mode($uri,$resource='',$context='') {
if (!empty($_SERVER['HTTPS']) && strpos($uri,'http://')===0) {$uri=str_replace('http://','https://',$uri);}
return $uri;
}
?>