• The following patch creates a better warning when a user has exceeded their posting limits.

    diff --git a/wp-content/plugins/limit-post-creation/limit-post-creation.php b/wp-content/plugins/limit-post-creation/limit-post-creation.php
    index 50befa9..6814087 100644
    --- a/wp-content/plugins/limit-post-creation/limit-post-creation.php
    +++ b/wp-content/plugins/limit-post-creation/limit-post-creation.php
    @@ -100,9 +100,9 @@ function spaw_lpc_check_cap($capabilities) {
    
      //if limit is setted and reached deny access to user for new post
      if($limit==true && ($nrPosts>$limit || $nrPosts==$limit)){
    -     wp_die( __('<div style="color:red;font-size:20px">Limit Post/Page Creation Warning</div>
    -<div style="font-weight:bold">You reached the maximum published allowed Post, return to
    -<a href="index.php">Dashboard</a> or contact your administrator</div>') );
    +     wp_die( __('<h1 style="color:red;font-size:24px">Limit ' . ucfirst($page_type) . ' Creation Warning</h1>
    +<p>You\'ve reached the maximum of <strong>' . $nrPosts . '</strong> published post per <strong>' . $timeLimit . '</strong>.</p>
    +<p>Please return to the <a href="">Dashboard</a> or contact the administrator if you feel that this is in error.</p>') );
      }
         return $capabilities;
     }

    http://wordpress.org/extend/plugins/limit-post-creation/

  • The topic ‘[Plugin: Glue Labs Page/Post Creation Limits] More verbose Limit Page/Post Creation Warning [PATCH]’ is closed to new replies.