Archive

Category Archives for "DAP"

How to Create Facebook API Key

When you use WordPress plugins that interface with Facebook via APIs, you'll have to generate a Facebook App ID & Secret Key to use the plugin.

Watch this short video to see how to quickly and easily create a Facebook App ID & Secret Key for your domain!

Our Facebook Plugins

FB ShareToUnlock: Hide Premium Content behind a cool "ShareToUnlock" template. Users can share your page on Facebook to access the hidden content.

FB LeadMachine: 1-Click Facebook Registration Plugin

DigitalAccessPass (DAP): A membership plugin for WordPress that supports 1-click login with Facebook.

MailerLite Integration

MailerLite provides all the latest email marketing features designed to help you grow subscribers and build stronger relationships. 

MailerLite also has a FREE plan and it includes:

  • Up to 1,000 subscribers
  • Send up to 12,000 emails per month
  • Full access to features like automation, landing pages, advanced segmentation and more

Steps to Integrate DAP with MailerLite

1

Get MailerLite API Key

Login to your MailerLite account. You'll find your API Key in the Integrations page.

Click on "Use" under Developer API. You'll find your API Key there.

2

Create your Groups in MailerLite

Create your Groups in MailerLite >> Subscribers >> Click on Groups.

3

Add API Key in DAP >> Products >> Manage Connections Page

Go to DAP >> Products >> Manage Connections page and add a new connection for

 MailerLite. Enter your MailerLite API key on this page.

4

Add New Automation

Go to DAP >> Products >> Manage Automation page, click on "Product  Automation",

select the product and add two automation rules:

  • Add users to your MailerLite group when they get access to product in DAP.
  • Remove users from your ML group when they lose access to product in DAP.
5

Test the Integration

Add a new user to product that's connected to ML via DAP Members >> Add Member page.
Login to your ML account and click on Subscribers. See if you find the new subscriber in ML.

How to create a Member Invoice page in DAP!

Please watch this video to see you can create a member-facing invoice page in DAP. 

Also, if you're on DAP v7.6 and LiveLinks v4.6 (or above), be sure to visit DAP admin >> setup >> DAP Security page and delete "invoices" folder as it's not longer required. You only have to do this once.

PayKickstart Integration

If you want to use PayKickstart  as your shopping  cart platform, good news is... DAP has a full-fledged integration with PKS!

The following events are fully integrated with DAP.

  • Purchase Complete 
  • Refunds & Cancellations
  • Upsells 

When your buyers complete a purchase via PKS, they'll be given automatic and instant access to your DAP product.

If you process a refund or cancellation in PKS, your buyers will instantly lose access to the product in DAP.​

In fact, DAP's integration with PayKickstart (PKS) is actually better than the integration we currently have other cart platforms like Thrivecart and Samcart because everything is automated with PKS, including refunds and cancellations.

Please refer this documentation from PayKickstart on how to configure PKS for DAP integration.

Clickbank Integration

Clickbank Integration with DAP

1. Login to your ClickBank account

2. Go to the "Account Settings" tab at the top

3. Click on "My Site" from the sub-menu at the top.

4. Under Advanced Tools, update the Instant Notification Service (INS) URL (accept the terms of service etc), and make sure the URL points to:

http://YourSite.com/dap/dap-clickbank-6.0.php (Version 6.0)

Replace YourSite.com above with your actual domain name.

5. Enter any secret key in Clickbank.  Whatever you enter in the Secret Key field in ClickBank, enter the same value (must be ALL UPPERCASE) in to your DAP Admin Dashboard on your web site, at:

DAP Admin -> Setup > Config > Payment Processing > Secret Authorization Key field

6. Create your product in Clickbank.  

7. Create same name product in DAP.

IMPORTANT: The Product Title in CB must match the Product Name in DAP. 

The product price in DAP does not have to match your CB product price.  DAP will use the CB price for purchases made via CB. The price that you set in DAP is ignored for CB purchases.

8.  That's it.  When users complete CB purchase, Clickbank will notify DAP and DAP will automatically create a membership account for your user.  If you want DAP to send out a welcome email with login credentials to your members, be sure to customize your welcome email content in DAP products page >> Notifications tab >> Welcome email field.


Clickbank Automatic Login


DAP can automatically login your members after a successful purchase. They don't have to wait for their welcome email to login.  The buyers will get auto-logged-in when they click on the 'Complete My Purchase' button on the Clickbank page after they complete purchase. But even if they decide to abort and do not click on the 'Complete My Purchase' button, DAP will still create membership account and give users access to purchased product(d) using CB INS notification.

Watch this video to see how you can autologin your members to DAP after their Clickbank Purchase

Auto-Login your members to their membership area after a Clickbank Purchase.

CB Autologin URL:

Enter the CB autologin URL in your Clickbank Products page >> Thank You Page field.

For e.g.   http://www.YOURSITE.com/dap/dap-CB-autologin.php?corderamount=47&cprodid=2&cproditem=facebook+secrets&redirect=/thankyou.html

The corderamount should be set to your product price in the thankyou url querystring.

The cproditem needs to be set to your CB product name (replace space with "+" in the name, for ex- "facebook secrets" will be "facebook+secrets").

The cprodid needs to be set to your CB product ID.

Set the redirect tag to tell dap where to send the user after they are logged-in automatically. If you want to redirect to http://YOURSITE.com/thankyou.html, then set the CB thankyou URL to:

Clickbank Products page >> Thank You page URL

cb_product

Clickbank - Refund/Cancellations

If a customer contacts you to request a refund or cancellation, you can initiate a refund or cancellation ticket from within your ClickBank account. And when you complete the refund / cancellation in CB, DAP will automatically remove user’s access to product.

1) Login to your CB account. Just visit the Transactions page of your account which is located under the Reporting Tab.

2) On the Transactions page, you can look up the order by the customer’s email address or order number.

3) A link to open a ticket on any order is available when you search for transactions (orders) from the Transaction page under the Reporting tab. Simply click on the “T” in the Actions column for that order. The Actions column is on the far left of the table.

4) When the ticket comes up, select “More options…” from the drop-down menu and choose the option to either refund or cancel the order as you needed. Add a comment showing that you as the vendor have honored the customer’s request for a refund or cancellation and then process the action and send the notice to the customer by pressing the “Send” button.

5) As the vendor, when you request a refund/cancellation, the ticket processes in 5 minutes, not one business day. It is assumed you do not want to try to save the sale if you enter the request yourself. You have 5 minutes to close the ticket before the refund/cancellation occurs, in case you mistakenly created the ticket.

6) After the refund/cancellation is complete in CB, CB will send an INS notification to DAP.

DAP will automatically remove the user’s access to the product. The users can still login to their membership but can no longer access any protected content under this product.

Setting Up DAP & CB PitchPlus Integration

The basic idea is the same for DAP/CB integration, whether it’s one product, or multiple Upsell products .

  • Start with CB INS (and Autologin) integration as specified in this document. 
  • Now, if you were selling just one product, then you could follow the steps above for 'autologin'. After a successful purchase, your buyers will be auto-logged-in to their membership where they can access the purchased product. If you do not want to autologin your buyers after purchase, you could send them to a static “Thank You” page where you would tell them to check their email inbox for login details, and by that time CB would have already notified DAP via their “Instant Notification Service” (INS – kind of like Paypal’s IPN), and DAP would have already sent them the welcome email to the buyer’s email address, which contains their login and password to the member’s area.
  • But if you want to offer upsells, then instead of sending them to a thank-you or members page after the first purchase, you basically send them to the sales page of your next upsell, that’s all.

Once that’s done, then for every Front-end product or Upsell-product, they are all integrated with DAP the same way. Just make sure the Clickbank Product Title and the “Product Name” in DAP both match, that’s it!

And for the last product in your upsell, be sure to point it to a static page containing a message like “Thank You, please check your email inbox for login details”.

And since CB notifies DAP separately for each product purchased, right then and there, if they end up buying 3 products during checkout (1 main + 2 upsells), then DAP will send the user 3 separate welcome emails (that you can customize in DAP products page >> Notifications tab).

Plus since they would be using the same email id for all 3 purchases, DAP will give them access to all purchased products under a single DAP account. So they need to log in to just one account to access content from all products that they just purchased.


























 




































How to setup your Member Login Page

STEP 1:   Add a new page in WordPress.

Say you call it Login.

STEP 2:  You’ll find a “DAP Member Pages” button on the page.

Click on it to get started.

STEP 3:  Select Member Login and click on Next

 

STEP 4:  Generate Login Shortcode

When you select “Member Login” option and click on the Next button, it’ll bring up a login shortcode generator.

 

Configure Post-Login URL

If you configure a post-login URL, DAP will redirect users to that page upon login.

For e.g.

[DAPLoginForm template="template2" redirect="/mylandingpage"]

(DAP will redirect users to /mylandpage when they login.)

If you don’t set a shortcode level redirect, DAP will use the post-login redirect URL set in DAP setup >> config page or in the DAP products page.

Select a Page or Sidebar login template. 

Here are the available Page Login Templates:

Here are the available Sidebar Login Templates:

SIDEBAR TEMPLATE 1                    SIDEBAR TEMPLATE 2:


 

 

 

 

 

 

 

 

 

Old Shortcode: %%LOGIN_FORM%%

The new shortcode is a replacement for the old %%LOGIN_FORM%% shortcode. Simply upgrading LiveLinks on your site will not automatically install the new shortcode or login template.

You must replace the old shortcode – %%LOGIN_FORM%% – with the new one, in order to see the new login templates in action.

The old shortcode will still be valid, and your old login form will still work even after you upgrade DAP.

If you need to switch back to the old code at any time, it will still work just fine. But replace it with the new shortcode as the new templates are mobile-responsive.

 

Multiple Login Pages

Due to the new feature of setting a post-login URL right in the shortcode itself (via the redirect tag), you can now have multiple login pages on different parts of your web site. If you don’t specify a redirect tag, then the default post-login rules will apply. However, you can now override the default rules for specific login forms on specific pages, using the new shortcode. This is especially useful if you have a content hub where you have multiple WordPress installations on the same domain, for different niches (or different sub-niches).

Page & Sidebar Templates

We are releasing  5 pre-built login page templates and 2 sidebar templates. See video above for demo of all 7 templates.

5 PAGE TEMPLATES

You can use template1, template2, template3, template4 or template5  in the shortcode.

2 SIDEBAR TEMPLATES

[DAPLoginForm template="sidebar1"] [DAPLoginForm template="sidebar2"]

Login Widget

To have the DAP login form show up in your web site’s sidebar, simply add the sidebar template shortcode to a text widget and add the widget to your sidebar.

[DAPLoginForm template="sidebar1"]

OR

[DAPLoginForm template="sidebar2"]

Login Form Customization Options

You will find the login template files under the /wp-content/plugins/DAP-WP-LiveLinks/includes/login/templates/ folder.

Updating the Templates:

Say you are using template1 and want to update the HTML of that template.

Just make a copy of /wp-content/plugins/DAP-WP-LiveLinks/includes/login/templates/template1/template1.html to /wp-content/plugins/DAP-WP-LiveLinks/includes/login/templates/template1/customtemplate1.html.

Make the updates to the custom HTML file and upload back to the template1 folder. Do not remove any merge tags from the template.

Updating the CSS:

To update the CSS of a template, make a copy of /wp-content/plugins/DAP-WP-LiveLinks/includes/login/templates/template1/style.css to /wp-content/plugins/DAP-WP-LiveLinks/includes/login/templates/template1/customstyle.css.

Make the updates to the custom CSS file and upload back to the template1 folder.

Login Form Width:

If you wish to change the login form’s width, you can update it in the style.css (look for  width: 400px in style.css). Of course, don’t change the default file, as it will be overwritten in a future release. So always make a custom copy of your own, and make the changes to that file.

Bring Your Own Template

You will probably not have a need to create your own template as there are 7 responsive pre-built templates that you can cust0mize, but if you want to create one, please follow these steps.

Create a new template under /wp-content/plugins/DAP-WP-LiveLinks/includes/login/templates.

Say you call it ‘mytemplate‘.

Then copy over the style.css and template1.html from template1 folder to this mytemplate folder.

Rename template1.html to  mytemplate.html.  Leave the name style.css as is.

Now make the updates to mytemplate.html and style.css and upload the mytemplate folder (and the files under it) to /wp-content/plugins/DAP-WP-LiveLinks/includes/login/templates/ folder.

Now you can reference this template in the shortcode:

[DAPLoginForm template="mytemplate"]

That’s it.

 

1-Click Member Registration

1-Click Signup For Logged-In Members

Here are the steps to allow your "logged-in" members to signup for your free products with the click on a button, without having to enter their name, email etc.

STEP 1:  Create your Free Product in DAP 

  • Visit DAP admin >> products page.
  • In the Billing & Access tab, set product type to FREE, and set "Allow Free Signup" to "Y".

STEP 1:  Publish this Free Signup Code in your Members Area

<div id="stylized" class="dap_direct_signup_form"><form id="dap_direct_signup" name="dap_direct_signup" method="post" action="http://yoursite.com/dap/signup_submit_members.php"> <button type="submit">Sign Up</button><input type="hidden" name="productId" value="1" /><input type="hidden" name="redirect" value="/login" /></form></div>

  • Enter this code in WP "Text" editor.
  • Replace "yoursite.com" with your domain name.
  • Replace the value of the "productId" tag with your DAP product Id.
  • Replace the value of "redirect" tag  with the URL of the page where you want users redirected after they signup.

STEP 3:  Create a free signup script and upload to the "dap" folder on your site:

  • Create a file called "signup_submit_members.php".
  • Add the following lines of code to this file:

<?php

include_once ("dap-config.php");

$autoLogin = isset($_REQUEST['autoLogin']) ? $_REQUEST['autoLogin'] : "Y";

if( !Dap_Session::isLoggedIn() ) {
header("Location:" . Dap_Config::get("LOGIN_URL"));
exit;
}

$session = Dap_Session::getSession();
$user = $session->getUser();
$user = Dap_User::loadUserById($user->getId());

if(isset($user)) {
$_REQUEST["first_name"]=$user->getFirst_name();
$_REQUEST["email"]=$user->getEmail();
$_REQUEST["last_name"]=$user->getLast_name();
$productId = $_REQUEST["productId"];
logToFile("registerUser: productId=" . $productId);

registerUser("signup_submit_members",$autoLogin, $productId);
}
else {
header("Location:".Dap_Config::get("LOGIN_URL"));
exit;
}

return;

?>

  • Save the file
  • Upload it to the "dap" folder on your site.

STEP 4:  Make sure that the signup button is only visible to the logged-in members

You can use the DAP shortcode (or protect the signup page in DAP) to make sure that the signup button only visible to logged-in members that don't already have access to the free product.

For e.g.  

If you want to show the 1-click signup button to only logged-in members that don't already have access to product Id = 1, you can use this shortcode:

[DAP hasNoAccessTo="1" isLoggedIn="Y"]

<div id="stylized" class="dap_direct_signup_form"><form id="dap_direct_signup" name="dap_direct_signup" method="post" action="http://yoursite.com/dap/signup_submit_members.php"> <button type="submit">Sign Up</button><input type="hidden" name="productId" value="1" /><input type="hidden" name="redirect" value="/login" /></form></div> 

[/DAP]


STEP 5: Test to make sure everything works as expected

Login as a user.

Visit the signup page.

See if the 1-click button is visible.

Click on the button to signup.

Upon signup, you should receive access to the free product. 

If your product is single opt-in, upon signup, the users will be automatically logged-in as well.


DAP Hourly Cron & Stuck Jobs

Cron jobs allow you to run scheduled tasks, that run automatically, frequently, silently, in the background, without requiring manual intervention.

DAP uses cron jobs to do things like…

  • Manage Import/Export
  • Send out autoresponder emails
  • Send out broadcast emails
  • Manage your outgoing queue of emails so that you can stay within your cheap web host’s strict hourly email sending limits
  • Process and manage affiliate data & commissions , and
  • Clean up jobs

DAP requires you to set up a cron job to do all of the tasks above.

This name of the DAP cron script is /dap/dap-cron.php. It should be set up to run once every hour at the top of the hour in your Webhosting Cpanel -> Cron tab. If you run it more than once an hour, it can slow down your site, cause performance issues and also the previous cron session might still be active (unless your host can automatically prevent another cron session from being initated if previous one has not completed yet). So we highly recommend that you only schedule it to run once every hour. 

See this document for more details on the DAP cron command, how to set it up in your Webhosting cpanel etc.

If you've just purchased DAP or if you're a DAP platinum member, just open a support ticket and we'll install the DAP hourly cron for you.

Here are a few cron tips that'll help you troubleshoot any cron-related issues:

1.  Cron Status

If you're not sure whether the DAP hourly cron is active OR if you know that the cron is running but your scheduled jobs are not being processed, just visit DAP Admin => System => Job Queue page and you'll find all the details there.

2. Stuck Jobs

If there are jobs stuck with 'error' status in cron, it will prevent other queued jobs from running. So if your scheduled jobs are not processing, set the start date to a date in the past, set the view jobs to 'view failed jobs' and click the 'search' button (see the image above). It'll bring up all jobs that failed with error. Remove those jobs from the queue. This will allow DAP to process other jobs.

1 2 3 16