Giter Site home page Giter Site logo

zeen101 / leaky-paywall-content-auto-archiver Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 44 KB

Automatically lets you set articles, posts, and any other content as "Archived". Allowing you to given only certain members access to older content.

PHP 98.25% JavaScript 1.75%

leaky-paywall-content-auto-archiver's People

Contributors

greenhornet79 avatar jadellad1 avatar lewayotte avatar

Watchers

 avatar  avatar  avatar  avatar

leaky-paywall-content-auto-archiver's Issues

Auto Archive Options Missing In Multi-site, not operational in Single Site

You are able to select when posts should become archived but then no one can access them. They are met with an encouragement to upgrade even though they have the permission as part of their subscription.

In the multi site environment, there is no granting of archive access at all on the subscription level.

4.10.3 Changes Impacting Auto Archiver

$message = '<div id="leaky_paywall_message">';
if ( !is_user_logged_in() ) {
$message .= $leaky_paywall->replace_variables( stripslashes( $settings['subscribe_archive_login_message'] ) );
} else {
$message .= $leaky_paywall->replace_variables( stripslashes( $settings['subscribe_archive_upgrade_message'] ) );
}

Replace_variables function was removed from Leaky Paywall's class.php file to include/class-restrictions.php file. This causes a php fatal error to occur when trying to load the Subscribe_or_Login message.

A global needs to be created for the leaky paywall restrictions class so the replace_variables function can be added.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.