Giter Site home page Giter Site logo

geekontheroad / pmpro-limit-post-views Goto Github PK

View Code? Open in Web Editor NEW

This project forked from strangerstudios/pmpro-limit-post-views

0.0 0.0 0.0 144 KB

Integrates with Paid Memberships Pro to limit the number of times non-members can view posts on your site.

Home Page: https://www.paidmembershipspro.com/add-ons/pmpro-limit-post-views/

PHP 100.00%

pmpro-limit-post-views's Introduction

=== Paid Memberships Pro - Limit Post Views Add On ===
Contributors: strangerstudios
Tags: paid memberships pro, pmpro, nytimes, new york times, post limits, limit, posts
Requires at least: 4.0
Tested up to: 5.1
Stable tag: .6

Integrates with Paid Memberships Pro to limit the number of times non-members can view posts on your site.

== Description ==

Inspired by sites like the New York Times, which limits users to 5-10 monthly article views before redirecting users to a paywall. The plugin sets a cookie for each visitor to track their views per month. This means that (just like the NYTimes sites) it is incredibly easy to circumvent this protection by using a different computer, browsers, or incognito mode, etc. The idea is not to completely block users from your site, but to gently nudge returning readers to sign up for an account.

== Installation ==

1. Make sure you have the Paid Memberships Pro plugin installed and activated.
1. Upload the `pmpro-limit-post-views` directory to the `/wp-content/plugins/` directory of your site.
1. Activate the plugin through the 'Plugins' menu in WordPress.
1. Configure settings on the Limit Post Views settings page.
1. Make sure your PMPro levels page mentions the post viewing limit so users know why they are being redirected.

== Frequently Asked Questions ==

= I found a bug in the plugin. =

Please post it in the GitHub issue tracker here: https://github.com/strangerstudios/pmpro-limit-post-views/issues

= I need help installing, configuring, or customizing the plugin. =

Please visit our premium support site at http://www.paidmembershipspro.com for more documentation and our support forums.

== Changelog ==
= .6 =
* BUG FIX: Fixed issue with PMPro 2.0 menus.
* ENHANCEMENT: Cleaned up the JavaScript code a bit.
* ENHANCEMENT: WordPress coding standards review.
* ENHANCEMENT: Adding a link to the plugin settings page in the plugin's action links.
* ENHANCEMENT: Improving settings page layout and documentation.

= .5 =
* BUG: Fixed issue where current user's level ID wasn't used properly when NOT using JavaScript and counting views per level.
* BUG: Fixed PHP warning when PMPRO_LPV_USE_JAVASCRIPT wasn't defined.

= .4 =
* BUG: Fixed issue where the addon would crash if PMPro was not activated.
* ENHANCEMENt: Now tracking views per level for cases where users upgrade their level during the middle of the month/etc.
* ENHANCEMENT: Moved the redirect code into a pmpro_lpv_redirect() function.
* ENHANCEMENT: Added a pmprolpv_has_membership_access filter that can be used to override the behavior of the code that redirects users away from content.
* ENHANCEMENT: Added a pmprolpv_post_types filter that can be used to tell the addon to allow and limit views on other post types. Defaults to just array('post').

= .3 =
* BUG: Fixed issue where non-post pages and views (e.g. archive pages) were being tracked as page views. (Thanks, Squarelines)
* ENHANCEMENT: Added ability to change post view limit intervals to hour, day, week, or month.
* ENHANCEMENT: Added settings page.

= .2 =
* Added JavaScript option. Set at the top of the main plugin file.

= .1 =
* Initial version.

pmpro-limit-post-views's People

Contributors

ideadude avatar kimcoleman avatar andrewlimaza avatar femiyb avatar eighty20results avatar sjolshagen avatar jarrydlong avatar messica avatar

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.