Entries Tagged 'Personalization' ↓

Merge Tags in WordPress Posts

Here are the merge-tags that you can use in your WP posts, and what they mean.

%%MSG%%

1) Create a WP “page” with the slug “error”, and it can be accessed at http://YourSite.com/error/

2) In the body of the page, put the text %%MSG%% – followed by whatever copy you want.

3) Enter the URL from Step #1 on your “Products” page, in the field “Error Page URL”

4) Logout of DAP, and log back in for the changes to take effect.

Impact: When someone tries to visit a link that has expired, or a link that they don’t have access to, they will be redirected to the above URL, and the system error message will be shown where you put in the merge code %%MSG%%.

%%SALES_PAGE_URL%%

This text in your blog post/page content, will be replaced by the “Sales Page URL” field from the Products page.

%%AFFDETAILS%%

This will be replaced by the entire Affiliate section from the default home page at YourSite.com/dap/

%%USERPROFILE%%

This will be replaced by the user profile from the default home page at YourSite.com/dap/

%%USERLINKS%%

This will be replaced by the user links section (the list of what products and what links user currently has access to) from the default home page at YourSite.com/dap/

%%FIRST_NAME%%

This will be replaced by the first-name of the user.

%%EMAIL%%

This will be replaced by the email id of the user.

%%MEMBER_HOME_PAGE%%

This will be replaced by whatever is in “Config > Advanced > URL of your User-Profile page”

%%AFF_LINK%%

This will be replaced by the raw affiliate link of the member. If you want it to show up as a link in your blog post, use it like this:

<a href=”%%AFF_LINK%%”>%%AFF_LINK%%</a>

Creating Member & Affiliate Sections within WordPress

The “Member’s Home Page” (YourSite.com/dap/index.php) has 3 sections.

  • Member Links – %%USERLINKS%%
  • Affiliate Section – %%AFFDETAILS%%
  • Member Profile (username/password) – %%USERPROFILE%%

All three of these can be displayed within your WordPress blog.

Creating a “Member Links” Page within WordPress

Create a WordPress “Page” (not ‘post’) with the text %%USERLINKS%% in the body of the page, and a title of say, Your Links, and save the new page.

If you used the text “Your Links” for the title, then the actual link to this page would be YourSite.com/blog/your-links/

Creating a “Member Profile” Page within WordPress

Create a WordPress “Page” (not ‘post’) with the text %%USERPROFILE%% in the body of the page, and a title of say, User Profile, and save the new page.

If you used the text “User Profile” for the title, then the actual link to this page would be YourSite.com/blog/user-profile/

Creating an “Affiliate” Page within WordPress

Create a WordPress “Page” (not ‘post’) with the text %%AFFDETAILS%% in the body of the page, and a title of say, Affiliate, and save the new page.

If you used the text “Affiliate” for the title, then the actual link to this page would be YourSite.com/blog/affiliate/

That’s it!

Creating A Login Page Within WordPress

Now DAP already provides you with a built-in login form, at YourSite.com/dap/login.php

But if you want to put this form “within” your WordPress blog, so as to give your login form the same Look & Feel as the rest of your blog, all you need to do, is…

1) Create a WordPress “Page” (not ‘post’) with the text %%LOGIN_FORM%% in the body of the page, and a title of say, Login, and save the new page. If you used the text “Login” for the title, then the actual link to this page would be YourSite.com/blog/login

2) This page now shows up as “Login” along with the rest of your “pages” on your blog.

3) Go to DAP Admin > Config > Advanced (drop down). Scroll down to the field that says:

Location of your login page (eg., if using WordPress). Should start with a forward slash (`/`)

In the text box, enter the link to the login page from Step 1, minus the domain name. So, it would look like:

/blog/login

That’s it!

When someone clicks on the “Login” link, or tries to access a post that they are not authorized to, the user is redirected to the login page.

Related: Where is the Logout Link?

DAP WP LiveLinks Plugin

Once you install this plugin, when someone visits your blog, they will ONLY see posts that they are “eligible” to view. This applies to your blog’s main page as well.

So, if a casual visitor arrives at your blog, they only see titles and their summaries for posts that have NOT been protected (not added to DAP at all).

For instance, if you have 100 posts, and have protected 95 of them, then on your blog’s home page, this visitor will see only 5 blog posts – titles and summaries – in TOTAL.

They won’t even see the titles or bodies of the protected posts. And if they somehow get the link to it (from someone else, by email, say) and try to visit it, then the existing DAP protection kicks in, and they’re asked to login first to determine if they have access to that post “as of now”.

But once this same visitor logs in, all blog posts that were HIDDEN earlier MAGICALLY re-appear ;-) And they see all posts that they are CURRENTLY eligible to access (this excludes posts to which access already expired, and posts to which they don’t have access YET – i.e., future availability).

If you want a certain portion of even your protected posts to always show up, even if the user is not eligible to see the post, see DAP “Sneak-Peek”.

This plugin lets you do two other things:

1) You can PERSONALIZE blog post titles and content with MERGE variables.

So, if you create a blog post with the title “Welcome %%FIRST_NAME%%“, then when your member logs in, they will see “Welcome John“.

Available merge variables;

%%FIRST_NAME%% -  Gets replaced with their first name

%%EMAIL%%  – Gets replaced with their email

%%MEMBER_HOME_PAGE%% -  Gets replaced with the ‘login’ page

2) You can also put the Login Form on any WP “Page”.

Personalization For Your Blog Posts

1) Personalize post Titles and Content with MERGE variables:

%%FIRST_NAME%% -  Gets replaced with their first name
%%EMAIL%%  – Gets replaced with their email
%%MEMBER_HOME_PAGE%%
-  Gets replaced with the ‘login’ page

So if you create a blog post with the title “Welcome %%FIRST_NAME%%“, then when your member views that post after they’ve logged in, they will see “Welcome John“.

2) Personalize the Login Form:

You can put the Login Form on any WP “Page”.

3) Personalize Member and Affiliate Information:

Put Member & Affiliate Info on any WP Page