In PayPlans, we have created a plugin that handles article restrictions. It is compatible with Joomla and K2 articles.
Content Hider Plugin
For a better understanding about what is the purpose of this plugin, supposedly, the site admin has 500 articles and wants users to purchase individual articles, site admin would need to create 500 plans and 500 PayPlans apps. This is so tedious and difficult task to setup.
However, using the Content Hider Plugin, the site admin only have to create 1 plan and does not need to setup any PayPlans app. This would make site admin life so easy and he/she can sell 500 articles at different prices too.
Plugin Configuration
Navigate to Extensions > Plugin Manager > PayPlans - Content Hider, and enable and configure it accordingly.
Login URL
Set the Login URL to where you want to redirect the user for login. By default, users will be redirected to the Joomla User login page.Please use the non-SEF URL for the login URL.
Article Restriction Setup
There are 2 areas of a restricted article; the first area represents subscription and the second represents the restricted.
- Multiple plan ids are not allowed.
- Use the toggle editor to write content and tag. If any HTML codes are included in the content, then it will not work.
- Only 1 article can be purchased at a time
- If you have added 2 buttons on the article for purchase, and each of the buttons is set for a different price and plan, once the article was purchased, both buttons will disappear.
Subscription Area
In the subscription area, users will see a button to subscribe to a plan with a specified amount. When users do not have access to a certain article then this button will be visible otherwise, the button will be hidden once the user has subscribed to the article.The site admin needs to put a simple tag in the article.
{pp-contentseller-subscribe}{/pp-contentseller-subscribe}Example:{pp-contentseller-subscribe purpose=buy plan_id=1 price=25}Buy Blog{/pp-contentseller-subscribe}
Site admin can customize the following parameters of a plan in the above tag.
Parameter: purpose
Mandatory: Yes
Format: String
Description: This can be any one-word string. Example:- buy, rent, etc. It can be used for admin reference.
Parameter: plan_id
Mandatory: Yes
Format: Numeric
Description: Set the id of PayPlans-Plan
Parameter: price
Mandatory: No
Format: Decimal
Description: The amount admin wants to charge for a particular article
Parameter: expiration_type
Mandatory: No
Format: String
Description: Expected Values:- fixed, forever, recurring, recurring_trial_1, recurring_trial_2
Parameter: expiration_time
Mandatory: No
Format: 12-digit
Description: Set a 12-digit format for the value of time. For example: 010000000000 (1 Year), 000100000000 (1 Month), 000004000000 (4 days), 000002000000 (2 days)
Parameter: recurrence_count
Mandatory: No
Format: Numeric
Description: Number of recurrence counts.
Parameter: trial_price_1
Mandatory: No
Format: Decimal
Description: Amount for the first trial
Parameter: trial_time_1
Mandatory: No
Format: 12-digit
Description: Set a 12-digit format for the value of time. For example: 000004000000(4 days)
Parameter: trial_price_2
Mandatory: No
Format: Decimal
Description: Amount for the second trial
Parameter: trial_time_2
Mandatory: No
Format: 12-digit
Description: Set a 12-digit format for the value of time. For example: 010000000000 (1 Year)
Restricted Area
The restricted area contains paid content. Paid content is visible to end users only when they have access to the respective article. This means paid content will be visible after subscribing to a certain article.Site admin needs to put a simple tag in the article.
{pp-contentseller-restrict}{/pp-contentseller-restrict}Example:{pp-contentseller-restrict}Insert paid content between these tags{/pp-contentseller-restrict}
Example Restricting An Article
Frontend
Before Subscribe
After Subscribe



