Archive

Category Archives for "DAP"

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.

How to manage Error Pages in DAP

When an unauthorized visitor tries to access your premium content that you've protected in DAP Products Page => ContentResponder tab, they're going to see an error page.

You can fully customize the contents of your error page. 

There are 2 error page fields in DAP:

1.  DAP products page -> Error Page URL (this is a product level setting).

2. DAP Setup -> Config page (this is a global site-level setting).​​

Here's how DAP figures out the right Error Page URL for protected content.

  • If the content is protected under just one DAP product, then that product’s "Error Page URL" settings will apply.
  • If the content that user is trying to access is protected under "more than 1 DAP Product", then DAP uses the global error page URL setting (under Setup > Config > Error Page URL).

To keep things simple and less confusing, you can leave the product level "error page url" field empty. This way, DAP will always use the global setting.

How to customize your Error Page content.

1) Display an "In-Page Error Message"

You can show users the standard DAP error message, or you can customize the message and add your own text. 

Not-Logged-in Members will see this default error message:

Logged-in Members will see this default error message:

If you want to display the standard dap version, just leave the error page fields in DAP to the default value (/dap/product-error.php).

If you want to customize the error message, please refer this post.

-OR-

2) Redirect to a WordPress Error Page

Users can be redirected to any error page of your choice (WordPress page or post, or a completely non-WP page). So you can design an error page in wordpress, have whatever content you want on that page, and configure DAP to always send users to this error page when they try to access protected content.

Just set the URL of your error page in DAP setup -> config page -> Error Page URL field.  And empty out the content of "error page url" field in DAP products page for all of your products. This way, anytime users visit protected pages to which they don't have access, they'll always be redirected to your customized WP error page.

Refer this post for more details.

How to customize DAP Login Form

Steps to customize your DAP Login Form:

Say you are using this shortcode on your login page and want to customize the style:

[DAPLoginForm template="template5" redirect="http://yoursite.com/redirectHere"]

(Use the redirect tag to redirect users to whatever page you want post-login)

1. FTP to your site.

2. Visit /wp-content/plugins/DAP-WP-LiveLinks/includes/login/templates/template5 folder.

3. You'll find style.css and template5.html in that folder.

4. If you want to update css, instead of updating the css file directly, copy style.css in that folder to customstyle.css and make your updates to customstyle.css.

5. If you want to update html, instead of updating the template5.html file directly, copy template5.html in that folder to customtemplate5.html and make your updates to customtemplate5.html.

6. Now upload both customstyle.css and customtemplate5.html back to the same folder (/wp-content/plugins/DAP-WP-LiveLinks/includes/login/templates/template5).

That's it.

5

How to use DAP to deliver your Lead Magnet

You can use your DAP membership site in many different ways.

You can use it to deliver just your lead magnet (for email list building) or to deliver a mix of free and paid products/services.

Profitable membership sites use a strategic combination of free and paid offers to build a targeted list of email subscribers, maximize average transaction value and customer lifetime value. You could launch your DAP membership site with just a lead magnet offer. This way you can start building your email list right away instead of waiting until your paid product is ready. You can add your paid products into the mix later.

DAP allows you to create an opt-in form to directly sign-up users to your Free Product/List. Your users can sign up by entering just their First Name & Email Id. They'll be added to your members list in DAP. After they signup, they'll receive access to your free (but protected) content. You can also use DAP's built-in auto-responder feature to drip out emails to the users of your free product (or you can connect DAP to a 3rd party email marketing platform)

On one of my own sites, I use DAP to deliver just the lead magnet. I don't sell any other products on that site currently.  You can check it out here.

Here are the steps to use DAP to deliver your lead magnet:

1

Define your Free Product

In the DAP Admin Menu, go to Products/Levels => Manage page.  Define your product and designate it as 'Free'. You can leave "post-login url" field empty if you want to use a global post-login URL (that you can set in DAP Admin => Setup => Config page) that applies to all of your products. Your users will be redirected to this page when they login.

Same goes for Sales Page URL and Error-Page URL. If you leave these fields empty, DAP will use the global setting from DAP Admin => Setup => Config page for these fields.

Set "Allow Free Signup" to "Yes" otherwise DAP will not allow free registrations/opt-ins to this product.

2

Set Access Duration

Visit Products/Levels => Manage page => Pricing tab and enter the number of days of access the member should get when they sign up for this Product. If you want them to receive full and forever access, set "Membership Duration" to 9999.

3

Define Single or Double-Opt-in

If you want your users to opt-in to your list by clicking on a confirmation link before they can access your free content, then set up your double-opt-in email content in the Double-Optin Email: Subject & Body field.

If you want your registered users to receive access to your content right after they signup, without having to wait for a confirmation email and opting-in, then leave the Double-Optin Email: Subject & Body field empty. It'll make your list (product) a single-opt-in list. DAP will auto-login your members upon registration only if your product/list is set up as a single-opt-in list. Please be aware that this will likely increase spam signups as users can use any junk email to signup and don't have to verify it to receive content access.

You can setup your double-opt-in email in DAP Products  Page => Notifications tab.

4

Set up your Welcome Email

Setup your Welcome email in DAP Products Page => Notifications tab => Welcome Email Subject & Body field. Use this email to send your members their login credentials (email, password etc). 

If it's a double-opt-in product/list, then the double-opt-in email gets sent first. Only after the users click on the confirmation link in the double-opt-in email, and complete the opt-in process, the welcome email gets sent.

If it's a single-opt-in list, the welcome email gets sent right after they enter name/email and hit the signup button. The users are also automatically logged-in to their membership area upon registration.

You can control/configure where the users get sent upon registration in the signup form (I'll cover that in the next step).

You can fully customize the contents of your welcome email in DAP products page -> Notifications tab -> Welcome Email field. You can use the 'personalization tags' to send your members their login email/password.

5

Assign Content to the Product

Visit the DAP Products  Page => Content Responder tab and setup the pieces of content that make up your free product. It could be WordPress pages, posts, downloadables files etc.

5

Set up your Auto-Responder Emails

Visit the DAP Products  Page => Email Autoresponder tab and setup the emails that you want dripped to the users of your free product. These emails are NOT sent out instantly.  These emails get sent when the DAP Hourly Cron job runs at the top of the hour.

So if a user signs up at say 10:15 AM, they will receive the autoresponder emails that you've set to drip "Day 1" at 11:00 AM. Say they sign up on 9/1/16, they'll receive day-1 email at the top of the hour when cron runs and day-2 email at midnight (start of day 2). DAP uses your 'server time' to drip emails.

6

Generate Free Sign-up Form and Publish

Visit the DAP Products  Page => Generate Signup Form tab and generate your 'Free' Signup form here. Publish this signup form on your opt-in page to allow your prospects to signup and gain access to your free content.

7

Use 3rd-party Signup Form

If your WordPress theme comes with nice opt-in forms and you want to use that instead of a DAP generated signup form, then see if your theme allows you to enter "custom signup form code" in their settings. If yes, just copy the DAP generated signup form code in there and it'll automatically integrate your signup form with DAP. 

8

Integrate DAP with other Email Platforms

If you want to integrate DAP with 3rd party email marketing platforms like AWeber, Mailchimp, GetResponse, ConvertKit, ActiveCampaign etc, you can do so in DAP Products page => Notifications tab => Plugin notification section.  I won't be covering the integration details here. We've separate documentation  that covers DAP integration with each of these platforms in detail.

DAPShoppingCart – checkout page shortcode

Sometimes the DAPShoppingCart “checkout” page editor does not work due to plugin or theme conflicts. If it does not work,  just use this shortcode directly on your checkout page.

==>  If your WordPress is installed under the root folder of your site, use this shortcode:

[DAPShoppingCart pagetemplate="template2" prodimage="N" oplive="N" loginmsg="Already A Member? Please Login Here... " paypalimg="http://YOURSITE.com/wp-content/plugins/dapshoppingcart/includes/images/btn_paypalb.png" cctype='<option value="visa">Visa</option><br/>
<option value="mastercard">MasterCard</option>
<option value="discover">Discover</option>
<option value="amex">American Express</option>
' ccimages='<img src="/dap/images/checkout/cc_visa.png" alt=""/><img src="/dap/images/checkout/cc_master.png" alt=""/><img src="/dap/images/checkout/cc_amex.png" alt=""/><img src="/dap/images/checkout/cc_discover.png" alt=""/>' emailmsg="*This will become your Membership Login Email" submitimgurl="http://YOURSITE.com/wp-content/plugins/dapshoppingcart/includes/images/pleasewaitanim.gif" ] [/DAPShoppingCart]

NOTE:  Replace all occurrences of YOURSITE.com with your domain name.

 

==>  Say your WordPress is installed under a folder called “blog”  your site, use this shortcode:

[DAPShoppingCart pagetemplate="template2" prodimage="N" oplive="N" loginmsg="Already A Member? Please Login Here... " paypalimg="http://YOURSITE.com/blog/wp-content/plugins/dapshoppingcart/includes/images/btn_paypalb.png" cctype='<option value="visa">Visa</option><br/>
<option value="mastercard">MasterCard</option>
<option value="discover">Discover</option>
<option value="amex">American Express</option>
' ccimages='<img src="/dap/images/checkout/cc_visa.png" alt=""/><img src="/dap/images/checkout/cc_master.png" alt=""/><img src="/dap/images/checkout/cc_amex.png" alt=""/><img src="/dap/images/checkout/cc_discover.png" alt=""/>' emailmsg="*This will become your Membership Login Email" submitimgurl="http://YOURSITE.com/blog/wp-content/plugins/dapshoppingcart/includes/images/pleasewaitanim.gif" ] [/DAPShoppingCart]

NOTE:  

  1. Replace all occurrences of YOURSITE.com with your domain name.
  2. Replace all occurrences of “blog” with your WordPress installation folder name.

 

Affiliate Links & Stats Page

Your logged-in members will find their unique affiliate link and their affiliate commissions/stats on this page. You can use the [DAPAffiliateInfo] shortcode to create this page.

Watch this video to see how-to create member-facing pages in DAP

Here're the steps to create "My Affiliate Link & Stats" Page.

  • Login to your WordPress admin dashboard.
  • Create a new WordPress Page. Say you call it "My Affiliate link & Stats".
  • Now click on the "DAP Member Pages" button to generate the shortcode.
  • Now select "Affiliate Info and Stats" and click on the next button.
  • Generate shortcode and save / publish the page.
  • Now when your logged-in members visit this page, they'll find all their affiliate details on this page - total referrals, earnings, their unique affiliate link, payment details, traffic stats etc.

Invoice Page

You can use [DAPShowTransactions] shortcode to create an invoice page. This shortcode will display a list of all the payments made by the logged-in member and an invoice link for each. Your members can click on the "View PDF" link to view their invoice.

Steps to create an Invoice Page.

  • Login to your WordPress admin dashboard.
  • Create a new WordPress Page. Say you call it "My Purchase Receipts".
  • Now click on the "DAP Member Pages" button.
  • In the editor, select "Member Invoice" and click on Next.
  • Select a Page Template, Invoice Template, enter logo image URL and fill in the rest of the fields.
  • Please NOTE: If you do not enter a valid "logo image" url, then the invoice pdf won't show up. So be sure to enter a valid URL for your logo image. For ex - http://yoursite.com/images/mylogo.jpg
  • Click on Generate Shortcode button. Save the page. Now login to your membership, visit the page and you'll find all the payment orders listed on the page.
  • Here's an example of "My Purchase Receipts" page:
  • Here's an example of an invoice pdf that opens up when a logged-in members clicks on the "View PDF" link on the purchase receipts page.
  • If you want to customize the page template or the invoice template, please hire a css/html developer to make the updates. We do not offer support for custom css/html updates.

Customization

CSS Update

Create a copy of the css file and add "custom" in the file name.

For ex: (if you are using template1):

Create a copy of /wp-content/plugins/DAP-WP-LiveLinks/includes/transactions/template1/transactiontemplate.css.

Save it as customtransactiontemplate.css. 

Make the updates.

Upload customtransactiontemplate.css back to  /wp-content/plugins/DAP-WP-LiveLinks/includes/transactions/template1 folder.   

Page Template Header Update

Create a copy of the header file and add "custom" in the file name.

For ex:

Create a copy of /wp-content/plugins/DAP-WP-LiveLinks/includes/transactions/template1/transactionHeaderTemplate.html.

Save it as customtransactionHeaderTemplate.html

Make the updates.

Upload customtransactionHeaderTemplate.html back to  /wp-content/plugins/DAP-WP-LiveLinks/includes/transactions/template1 folder.   

Page Template Update

Create a copy of the header file and add "custom" in the file name.

For ex:

Save it as customtransactionTemplate.html

Make the updates.

Upload customtransactiontemplate.html back to  /wp-content/plugins/DAP-WP-LiveLinks/includes/transactions/template1 folder.   

Invoice Template Update

Create a copy of the invoice template file and add "custom" in the file name.

For ex:

Create a copy of /wp-content/plugins/DAP-WP-LiveLinks/includes/transactions/invoices/template1/custominvoicetemplate.html

Save it as custominvoicetemplate.html

Make the updates.

Upload custominvoicetemplate.html back to  /wp-content/plugins/DAP-WP-LiveLinks/includes/transactions/template1 folder.   



My Profile Page

This is the page that displays all of the member profile fields. When your logged-in members view this page, they’ll find all their profile information (for ex- email, password, address fields, custom fields etc) displayed on this page. They can also update their profile information on this page.

Watch this video to see how-to create member-facing pages in DAP

Steps to create a Member Profile Page

1. Login to your WordPress admin dashboard.

2. Create a new WordPress Page. Say you call it “My Profile”.

3. Now click on the “DAP Member Pages” button.

And then select “My Profile” and click on Next.


4. It’ll bring up an editor window where you can configure the fields that you want to display on the profile page.

Just set the fields that you don’t want to display on the profile page to “NO”.

5. You can also select the custom fields that you to display.

6. If you enter a “Redirect URL” in the editor , your members will be redirected to that page after they update their profile.

If not, they will remain on the same page.

7. Click on the “Generate Shortcode” button to generate the [DAPMyProfile] shortcode.

8. You can now publish the page.

Say you’ve already created a parent page called “Members” or “Member-Home” or “My Account”,  you can just add the newly created “My Profile” page as a sub-page under the parent.

How-to organize your Member Pages

Please refer this documentation for more details on how-to organize your member-facing pages.

 

 

My Content Page

This page will display a list of all the purchased products (and the available content under each product) to the logged-in member. You can customize what you want to show on this page.

Watch this video to see how-to create member-facing pages in DAP

Here're the steps to create "My Content" Page.

  • Login to your WordPress admin dashboard.
  • Create a new WordPress Page. Say you call it "My Content".
  • Now click on the "DAP Member Pages" button.
  • Next click on "My Content" to create a MyContent shortcode.
  • It'll bring up an editor window where you can select a MyContent template, customize style and messages, and also configure the fields that you want to show/hide on your MyContent page.
  • If you want the "My Content" page to only show certain products, you can enter a comma-separated list of product Ids and the "My Content" shortcode will restrict the list to just those products.
  • If you want the My Content to display all products (that the logged-in member has access to), then set it to ALL (default). You can also hide specific product Ids by entering a comma-separated list of Ids in the Hide Product Ids field.

  • You can configure the "My Content" shortcode to just display the basic product details (and not the individual pieces of content that belongs to each product).
  • Now when a logged-in member visits the MyContent page, DAP will automatically display a list of all their products (free & paid) and all the available content under each product. Here's an example: