-
Notifications
You must be signed in to change notification settings - Fork 0
Quick Start & Examples
Before we start, the AuthCRED authentication system needs to be explained how it works. It's pretty similar to WordPress but the password is randomized by default so there's no password input when registering, instead, AuthCRED will send email confirmation + ask the user to set their password.
First, you need to set up the MyCRED first then AuthCRED. To do so please follow MyCRED documentation or below guide, after that find AuthCRED
in the WordPress sidebar menu.
Before we go into this, the setup is based on personal preference so feel free to do changes differently from those shown and other settings in the guide later.
-
Find
MyCRED
in the menu and open the page -
Expand the
buyCRED
by clicking it and follow those given the red line.Note: AuthCRED work best when you select
Popup
as the checkout -
Collapse the
buyCRED
and expand theSell Content
and follow those given red lines.Mark the checkbox that you will use for selling advanced chapters. In this example: we choose
Posts
-
Save the settings by clicking
Update Settings
at the bottom of page -
Now, go to
buyCred Gateways
submenu undermyCRED
menu then expandPaypal Payments Standard
and customize the value to your own liking
Now, let's set up the AuthCRED by finding AuthCRED
in WordPress dashboard menu, and configure them to your own preference. If you wanted an in-depth explanation of each of those setting, please go to Settings
We want to create a locked chapter that should be published within 3 days or a specific date. So let's start by creating a new chapter first, then you should able to see there's a new widget called Sell Content
and do as below.
Then set the scheduled date, in this case, we want it on 3 December. Click OK
and finally click the Schedule
button!
Try to log in as a normal user and you should have this,
If you didn't see that, it may be because the user doesn't have enough points to pay in this case go to Users
in WordPress Dashboard and adjust the user balance,
Shortcodes written below will not be explained properly, please go to Available Shortcodes for an in-depth explanation.
Now that you've done both setups. Let's start by creating 4 normal pages first because we need their ID later, then putting the respective shortcodes below,
Register:
[authcred login_id="8974" type="register"][/authcred]
Login:
[authcred register_id="8972" forgot_id="8976" type="login"][/authcred]
Forgot Password:
[authcred register_id="8972" type="forgot"][/authcred]
Change Password:
[authcred type="change"][/authcred]
Let's start by creating a normal page and putting the shortcode below,
Note: You can put multiple of the shortcode. Remove the new line if the layout breaking.
[authcred-buy gateway="paypal-standard" amount=10 title="Point Title" btn_label="Buy 10 Points"]This is "Point Title" points that will unlock your path to advanced chapters[/authcred-buy]
[authcred-buy gateway="paypal-standard" amount=30 title="Point Title" btn_label="Buy 30 Points"]This is "Point Title" points that will unlock your path to advanced chapters[/authcred-buy]
Psst, since v1.3.0 was released, you're now able to add your own custom cost in the built-in mycred mycred_buy
shortcode by adding cost
argument.
[mycred_buy gateway="paypal-standard" amount="60" gift_to="author" cost=1]Buy This Author 60 Points[/mycred_buy]
The plugin also has the custom design of mycred_buy_form
,
[authcred-buy-dynamic gateway="paypal-standard" title="Point Title" btn_label="Buy Points"]This is "Point Title" points that will unlock your path to advanced chapters[/authcred-buy-dynamic]
We're at last step is to create a menu item navigation where people can see their balance, top up, log in, and log out. To do so by going to Appearance
> Menus
> Select the menu you want to create.
You can create a menu item by this widget,
Then configure them as below,
Note: Putting the point balance shortcode on top of the Top Up page menu item is a personal preference, you can split them into two to look clearer.
[authcred-toc category="series-a" replace="Series A" prepend="Chapter " lock="icon"]
Documentation