Skip to content

Quick Start & Examples

Yusuf Fauzan edited this page Dec 4, 2022 · 10 revisions

Quick Start

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.

Getting Started

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.

Setup MyCRED

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.

  1. Find MyCRED in the menu and open the page

    image

  2. Expand the buyCRED by clicking it and follow those given the red line.

    Note: AuthCRED work best when you select Popup as the checkout image

  3. Collapse the buyCRED and expand the Sell Content and follow those given red lines.

    Mark the checkbox that you will use for selling advanced chapters. In this example: we choose Posts image

  4. Save the settings by clicking Update Settings at the bottom of page

  5. Now, go to buyCred Gateways submenu under myCRED menu then expand Paypal Payments Standard and customize the value to your own liking

    image image

Setup AuthCRED

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

Create a locked chapter or advanced chapter

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.

image

Then set the scheduled date, in this case, we want it on 3 December. Click OK and finally click the Schedule button!

image

Try to log in as a normal user and you should have this,

image

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,

image

Examples

Shortcodes written below will not be explained properly, please go to Available Shortcodes for an in-depth explanation.

Create register, login, forgot password, and change password page

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]

image

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]

Create top up page

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]

image

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]

image

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]

image

Create user icon, balance, login, and logout link navigation

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,

image

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.

image

Using Table of Contents shortcode

[authcred-toc category="series-a" replace="Series A" prepend="Chapter " lock="icon"]

image