Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter wakatashi

    (@wakatashi)

    Fantastic, this has done the trick and I can now do everything I need to do.

    Thanks, Chad, for your top-notch support on this.

    Dave

    Thread Starter wakatashi

    (@wakatashi)

    Hi Chad,

    Thanks for getting back to me on this. I’ve tested with wp_securify and it does work. But it then blocks all content unless there’s a current subscription, rather than allowing the public content but blocking the members-only content. What I’d like to do (using pseudo-code) is something along the lines of:

    if (content marked as members-only using WP-members) {
    	if (external lookup of membership determines there's a current subscription) {
    		return $content;
    	}
    	else {
    		$content = "Sorry, your subscription has lapsed";
    		return content$
    	}
    }
    else {
    	return $content;
    }

    Can something like this be done, where it takes account of whether the page is marked to be blocked to non-members?

    Thanks,
    Dave

    Thread Starter wakatashi

    (@wakatashi)

    Thanks t-p – those links were helpful.

    I’ve found the problem: my “WordPress Address (URL)” and “Site Address (URL)” were both set to https://www.domain com. However, in the config files in /etc/apache2/sites-enabled, the line “RewriteCond %{SERVER_NAME} =domain.com” appeared. The solution was to change everything to “domain.com” (without the www prefix).

    And I needed to restart the Apache service to allow the change to take effect.

    Now it works – hooray! Thanks.

    • This reply was modified 6 years, 6 months ago by wakatashi.
    • This reply was modified 6 years, 6 months ago by wakatashi.
Viewing 3 replies - 1 through 3 (of 3 total)