Plugin Directory

Changeset 736661


Ignore:
Timestamp:
07/05/2013 01:11:42 PM (13 years ago)
Author:
paaggeli
Message:

update 1.1.2

Location:
content-for-money/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • content-for-money/trunk/contentformoney.php

    r698325 r736661  
    55Author: Panagiotis Angelidis (paaggeli)
    66Author URI: http://panoswebsites.com
    7 Version: 1.1.1
     7Version: 1.1.2
    88License: GPL version 2 or later
    99*/
     
    124124
    125125                <p>With the parameter <strong>amount</strong> you set the price for the hidden content, in this example the price is 11$.</p>
     126
     127                <h4>Parameters:</h4>
     128                <p><b>amount:</b> With the parameter <u>amount</u> you set the price for the hidden content like the example above.</p>
     129                <p><b>display_comments:</b> With the parameter <u>display_comments</u> you can hide the comments giving to this parameter the value 'no'.
     130                <br/>E.g. <b>[paycontent display_comments='no']</b> <i> Here Goes The Content <i> <b>[/paycontent]</b></p>
    126131            </fieldset></div>
    127132    <?php
     
    130135    function HideContent($atts, $content=null){
    131136       extract(shortcode_atts( array(
    132         'amount' => '16'
     137        'amount' => '16',
     138        'display_comments' => ''
    133139      ), $atts ));
    134140
     
    143149        }
    144150        else {
     151                if($display_comments == no){
     152                //hide the comments
     153                function hide_comments(){
     154                    return "You are not allowed to read this comment!";
     155                }
     156                add_filter( 'comment_text', 'hide_comments' );
     157                }//if
     158                //display the paypal button instead the content
    145159                $message=$this->genButton($atts);
    146160                     return  $message ;
    147161             }
    148162    }//end method HideContent
     163   
    149164    /*Now we create the PayPal button*/
    150165    function genButton($a){
     
    167182                    return $button;
    168183                }//end method genButton
    169    
     184
    170185}//end class Contentformoney
    171186}//end if
  • content-for-money/trunk/readme.txt

    r626469 r736661  
    55Requires at least: 3.0.0
    66Tested up to: 3.3
    7 Stable tag: 1.1.1
     7Stable tag: 1.1.2
    88License: GPLv2 or later
    99With this plugin you can hide a part or the entire content of your posts and pages. The hidden content can be seen by members, non members must pay.
     
    5656With the parameter amount you set the price for the hidden content, in this example the price is 11$.
    5757
     58Parameters:
     59
     60'amount': With the parameter amount you set the price for the hidden content like the example above.
     61
     62'display_comments': With the parameter display_comments you can hide the comments giving to this parameter the value 'no'.
     63-E.g. [paycontent display_comments='no'] Here Goes The Content [/paycontent]
     64
     65
    5866[youtube http://www.youtube.com/watch?v=A9PIEoOQzc8]
    5967
     
    7078
    7179== Changelog ==
     80= 1.1.2 =
     81-Added Shortcode Parameter 'display_comments'
     82
    7283= 1.1.1 =
    7384-Added Help Section
Note: See TracChangeset for help on using the changeset viewer.