Skip to content

Commit

Permalink
Readme update, more settings text.
Browse files Browse the repository at this point in the history
  • Loading branch information
ideadude committed Feb 21, 2019
1 parent 2790f1d commit 709b1d4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
7 changes: 6 additions & 1 deletion adminpages/limitpostviews.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,17 @@ function pmprolpv_settings_field_use_js() {
$use_js = get_option( 'pmprolpv_use_js' );
?>
<input value="1" type="checkbox" id="use_js" name="pmprolpv_use_js" <?php checked( $use_js, 1 ); ?>>
<label for="use_js"><?php _e("If you have page caching enabled or the PHP redirect otherwise won't work, check this to add our JS code to protected pages.", 'pmpro-limit-post-views' ); ?></label>
<?php
}

// Display settings page.
?>
<h1><?php esc_html_e( 'Limit Post Views Add On', 'pmpro-limit-post-views' ); ?></h1>
<h1><?php esc_html_e( 'Limit Post Views Add On', 'pmpro-limit-post-views' ); ?></h1>
<hr />
<h2><?php esc_html_e( 'How this Plugin Works', 'pmpro-limit-post-views' );?></h2>
<p><?php _e( "Users who visit a post and don't have access to it will be allowed to view the post as long as they haven't reached their limits set below. Once their limit is reached, they will be redirected to the page set below.", 'pmpro-limit-post-views'); ?>
<p><?php printf( __( "By default, this plugin does not work with pages or other Custom Post Types. You can <a href='%s'>apply Limit Post Views to other post types by following the instructions here</a>.", 'pmpro-limit-post-views' ), 'https://www.paidmembershipspro.com/offer-limited-access-to-restricted-page-or-custom-post-type-content-using-the-limit-post-views-add-on/' ); ?></p>
<hr />
<form action="options.php" method="POST">
<?php settings_fields( 'pmpro-limitpostviews' ); ?>
Expand Down
2 changes: 1 addition & 1 deletion pmpro-limit-post-views.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Paid Memberships Pro - Limit Post Views Add On
* Plugin URI: https://www.paidmembershipspro.com/add-ons/pmpro-limit-post-views/
* Description: Integrates with Paid Memberships Pro to limit the number of times members and visitors can view posts on your site.
* Version: .5
* Version: .6
* Author: Paid Memberships Pro
* Author URI: https://www.paidmembershipspro.com
*/
Expand Down
9 changes: 5 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: strangerstudios
Tags: paid memberships pro, pmpro, nytimes, new york times, post limits, limit, posts
Requires at least: 4.0
Tested up to: 4.7
Stable tag: .5
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.

Expand All @@ -30,7 +30,9 @@ Please post it in the GitHub issue tracker here: https://github.com/strangerstud
Please visit our premium support site at http://www.paidmembershipspro.com for more documentation and our support forums.

== Changelog ==
= .5.1 =
= .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.
Expand All @@ -39,7 +41,6 @@ Please visit our premium support site at http://www.paidmembershipspro.com for m
* 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.
Expand Down

0 comments on commit 709b1d4

Please sign in to comment.