<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DAP Documentation &#187; Customization</title>
	<atom:link href="http://www.digitalaccesspass.com/doc/category/customization/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.digitalaccesspass.com/doc</link>
	<description>Documentation for DigitalAccessPass.com</description>
	<lastBuildDate>Fri, 27 Jan 2012 11:34:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Customizing vBulletin Login For Single-Signon</title>
		<link>http://www.digitalaccesspass.com/doc/customizing-vbulletin-login-for-single-signon/</link>
		<comments>http://www.digitalaccesspass.com/doc/customizing-vbulletin-login-for-single-signon/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 11:39:26 +0000</pubDate>
		<dc:creator>Ravi Jayagopal</dc:creator>
				<category><![CDATA[3rd Party Integration]]></category>
		<category><![CDATA[Access Control]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Customization]]></category>
		<category><![CDATA[Forums]]></category>
		<category><![CDATA[Setup]]></category>
		<category><![CDATA[vBulletin]]></category>

		<guid isPermaLink="false">http://www.digitalaccesspass.com/doc/?p=2066</guid>
		<description><![CDATA[Here&#8217;s what you need to do to disable the standard vB login form at the top-right corner of your forum pages, and customize it so that you force your members to log in via the DAP login form, so that they&#8217;re logged in to your membership site as well as DAP. Log in to VB [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s what you need to do to disable the standard vB login form at the top-right corner of your forum pages, and customize it so that you force your members to log in via the DAP login form, so that they&#8217;re logged in to your membership site as well as DAP.</p>
<ol>
<li>Log in to VB Admin control panel at http://yoursite.com/forums/admincp/</li>
<li>Go to Styles &amp; Templates &gt; Style Manager &gt; Default (or whatever style you&#8217;re currently using)</li>
<li>From the big list on the left, select the &#8220;header&#8221; template. Then on the right, under the &#8220;Controls&#8221; section, click on <strong>Edit</strong></li>
<li>On the resulting page, copy the full code from <a title="New Header Template for vB" href="http://www.digitalaccesspass.com/doc/wp-content/uploads/2011/12/header_template.txt" target="_blank">this text file</a> and paste into the main &#8220;Template&#8221; body, and click on &#8220;Save&#8221;</li>
<li>Next, download the file <strong>forums/register.php</strong> from your server, to your desktop and save the original copy somewhere safe.</li>
<li>Replace the contents of that file with the contents of <a title="New content for register.php" href="http://www.digitalaccesspass.com/doc/wp-content/uploads/2011/12/register.txt" target="_blank">this text file</a>.</li>
</ol>
<p>That&#8217;s it!</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.digitalaccesspass.com/doc/customizing-vbulletin-login-for-single-signon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Member-specific Content</title>
		<link>http://www.digitalaccesspass.com/doc/creating-member-specific-content/</link>
		<comments>http://www.digitalaccesspass.com/doc/creating-member-specific-content/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 23:02:06 +0000</pubDate>
		<dc:creator>Ravi Jayagopal</dc:creator>
				<category><![CDATA[Access Control]]></category>
		<category><![CDATA[Content Dripping]]></category>
		<category><![CDATA[Customization]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[Protecting Content]]></category>
		<category><![CDATA[Setup]]></category>
		<category><![CDATA[Shortcodes]]></category>

		<guid isPermaLink="false">http://www.digitalaccesspass.com/doc/?p=1922</guid>
		<description><![CDATA[If you have a coaching program, or have clients for whom you&#8217;re doing custom work (like if you were a CPA or a web designer), and want to publish content that is available to and downloadable only by that client, then there are THREE ways in which you can do Member-Specific Content in DAP. 1) [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a coaching program, or have clients for whom you&#8217;re doing custom work (like if you were a CPA or a web designer), and want to publish content that is available to and downloadable only by that client, then there are THREE ways in which you can do Member-Specific Content in DAP.</p>
<p>1) <span style="color: #ff0000;"><strong>BEST SOLUTION</strong></span>: <strong>Using a combination of a special page for each member PLUS DAP&#8217;s &#8220;For Your Eyes Only&#8221; Shortcode</strong></p>
<p>2) <strong>Creating Separate Products for each Member</strong></p>
<p>3) <strong>Using DAP&#8217;s &#8220;For Your Eyes Only&#8221; Shortcode</strong></p>
<p>Let&#8217;s take a look at each one in detail.</p>
<h3>1) <strong>BEST SOLUTION</strong>: <strong>Special page for each member PLUS DAP&#8217;s &#8220;For Your Eyes Only&#8221; Shortcode</strong></h3>
<p>This is partly manual, partly automated, but is the absolute best solution for multiple reasons, as explained below.</p>
<p>1) For each new member, you would create a separate page. So, for Joe Customer, you would create a new page in WP &#8211; http://YourSite.com/joe-customer/</p>
<p>This page would be created after someone has become a member, of course. But creating a WP page for every member will probably take you about what, 30 seconds? So it&#8217;s not going to be a big deal (unless you wish to make it one <img src='http://www.digitalaccesspass.com/doc/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>2) Then, assuming Joe Customer&#8217;s &#8220;userid&#8221; in DAP is 144 (you can find this out on the Users &gt; Manage page). So within the above new page, you would add the following shortcode&#8230;</p>
<p><strong>[DAP userId="144"]protected content[/DAP]</strong></p>
<p>(See <a title="Member-specific content" href="http://www.digitalaccesspass.com/doc/dap-shortcodes/" target="_blank">DAP&#8217;s &#8220;Member-Specific Content&#8221; Shortcodes</a> )</p>
<p>3) You can start adding any amount of private content between the shortcode start and end tags (where you see <strong>protected content</strong> above).</p>
<p>4) You can use a simple, free plugin like <a title="Exclude Pages Plugin" href="http://wordpress.org/extend/plugins/exclude-pages/" target="_blank">Exclude Pages</a> to make sure the customer&#8217;s page http://YourSite.com/joe-customer/ does not show up in any of your menu&#8217;s. Even if it did, it&#8217;s not like anyone else can see the contents of the page &#8211; only Joe Customer &#8211; after he&#8217;s logged in to DAP &#8211; can see the contents of the page. So it&#8217;s secure from everyone else.</p>
<h3>
2) Separate Products for each Member</h3>
<p>Here, you would create separate products, one per member &#8211; and only give that member access to that product. The advantage here, is that you can protect the entire page (not just the content section) and make it available just to that one client, so you can be a lot more creative with this page, use special templates, add sidebar widgets that show content just for that client, use the commenting system to communicate back and forth with the client.</p>
<p>So if you had a client named John Customer, then you would create a DAP Product by name &#8220;John Customer&#8221;, then take John&#8217;s email id and give John access to his product.</p>
<p>And within this DAP Product, you would&#8217;ve protected files, pages and posts that only John should get access to. So since only John has access to the product, only he can get access to the content protected as part of this product.</p>
<p>Obviously, it takes a few minutes of additional setup per customer to create a DAP Product specifically for him, but then the few extra minutes of creating a DAP Product would be nothing compared to the few hours (or tens of hours) that you&#8217;re actually going to be taking to create the actual custom content for John. So it&#8217;s a very small overhead compared to the whole process, where you are actually creating custom content for each member.</p>
<h3>
3) No special pages, just DAP&#8217;s &#8220;Member-Specific Content&#8221; Shortcode</h3>
<p>If you wish to automated this a bit more than Option #2, then one way is to implement this is using <a title="Member-specific content" href="http://www.digitalaccesspass.com/doc/dap-shortcodes/" target="_blank">DAP&#8217;s &#8220;Member-Specific Content&#8221; Shortcodes</a>, which look like this:</p>
<p>Using the “userId” parameter in the DAP shortcode, you can now protect a piece of content so that only John Customer (who has the user id &#8220;144&#8243; in your membership site) user can see it.</p>
<p><strong>[DAP userId="144"]protected content[/DAP]</strong></p>
<p>So on a single page, you may publish a number of these shortcodes, with content meant only for specific members protected within those shortcodes.</p>
<p>And doesn&#8217;t matter which one of your members visits the above page, they will all only see content intended only for them, and will be unable to see content intended for others.</p>
<p>So those are the three ways in which you can create Member-Specific Content.</p>
<h3></h3>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.digitalaccesspass.com/doc/creating-member-specific-content/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The &#8220;Smart Login&#8221; Process</title>
		<link>http://www.digitalaccesspass.com/doc/the-smart-login-process/</link>
		<comments>http://www.digitalaccesspass.com/doc/the-smart-login-process/#comments</comments>
		<pubDate>Fri, 22 Jul 2011 20:57:12 +0000</pubDate>
		<dc:creator>Ravi Jayagopal</dc:creator>
				<category><![CDATA[Access Control]]></category>
		<category><![CDATA[Admin]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[Customization]]></category>
		<category><![CDATA[DAP]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Features]]></category>
		<category><![CDATA[Merge Tags]]></category>
		<category><![CDATA[Protecting Content]]></category>
		<category><![CDATA[Protection FAQ]]></category>
		<category><![CDATA[Setup]]></category>

		<guid isPermaLink="false">http://www.digitalaccesspass.com/doc/?p=1798</guid>
		<description><![CDATA[DAP has a &#8220;Smart Login&#8221; feature, where the login process will work slightly differently under different conditions, all designed to make the user-experience for your member more smooth and consistent with general log in standards around the web. So let&#8217;s see the various possible login locations in DAP. But first, it is important to note [...]]]></description>
			<content:encoded><![CDATA[<p>DAP has a &#8220;<strong>Smart Login</strong>&#8221; feature, where the login process will work slightly differently under different conditions, all designed to make the user-experience for your member more smooth and consistent with general log in standards around the web.</p>
<p>So let&#8217;s see the various possible login locations in DAP.</p>
<p>But first, it is important to note that DAP has two main types of logins.</p>
<h3><strong>Primary Login</strong></h3>
<p>This is where it is considered a &#8220;generic&#8221; login by your member. For eg., a member came to your web site, and then just generally wants to log in to the member&#8217;s area &#8211; so they have no &#8220;context&#8221; &#8211; it&#8217;s NOT as if they were trying to view a specific page or post, got challenged with a login form, and then logged-in from there. That makes this a &#8220;<strong>Primary Login</strong>&#8220;.</p>
<p>Examples of this are&#8230;</p>
<p>a) You have a dedicated login page, like http://YourSite.com/login/ &#8211; which is what you&#8217;ve entered in to &#8220;<strong>Setup &gt; Config &gt; Login URL</strong>&#8220;. The body of this page has the DAP merge tag for the login form, which is <strong>%%LOGIN_FORM%%</strong></p>
<p>b) Login/Logout Widget on the home page of your web site. This is also considered a primary login, because they just came back to your site, and just wish to log in to their member&#8217;s area to see what&#8217;s new.</p>
<h3>Secondary Login</h3>
<p>This is a log in action that HAS &#8220;context&#8221;. Say, a member landed deep into your site (not the home page, not the dedicated login page) and tried to log in from, say, the widget on the side-bar, or were challenged by the &#8220;In Page Error Message&#8221; that says something like &#8220;Sorry, you must log in before you can view this content&#8221; and are presented with a login form right on that very same page. They were trying to read something before they were asked to log in first &#8211; which means, they must be returned to the same page they were trying to view BEFORE they were asked to login. So that makes this a &#8220;<strong>Secondary Login</strong>&#8220;.</p>
<p>Examples of this are&#8230;</p>
<p>a) Login/Logout Widget on any page EXCEPT the home page.</p>
<p>b) Any custom &#8220;Error Page&#8221;, where you have inserted the DAP merge tag for the login form, <strong>%%LOGIN_FORM%%.</strong></p>
<p>c) DAP&#8217;s &#8220;In-Page Error Message&#8221; which says &#8220;Sorry, this is private content &#8211; you must log in first before you can view this&#8221;.</p>
<p>So now that you know what&#8217;s a Primary Login and what is a Secondary Login,</p>
<h3>Redirection Rules</h3>
<p>Based on whether it&#8217;s a Primary Login or a Secondary Login, your member will be redirected to a different location.</p>
<p>1) If it is a Primary Login action, then&#8230;</p>
<p>a) They&#8217;re taken to the &#8220;Post-Login URL&#8221; if set at a Product-level AND they have access to just one Product.<br />
b) They&#8217;re taken to the GLOBAL &#8220;Post Login URL&#8221; (under Setup &gt; Config) if you have NOT set anything at a Product-level, OR if they have access to more than one Product.</p>
<p>This scenario is the only one where the Post-Login URL is ever used (whether it&#8217;s the Product-level or Global-level).</p>
<p>1) If it is a Secondary Login action, then&#8230;</p>
<p>They&#8217;re always redirected back to the same page they were on (or were trying to access) before they were challenged to log in first to view the content.</p>
<p><strong>Bottom-line</strong>:</p>
<p>Primary Login is predictable, and you (the DAP Admin) control where they go right after they login.</p>
<p>Secondary Login depends on &#8220;context&#8221;, and they&#8217;re taken back to whatever page they were before they logged in.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.digitalaccesspass.com/doc/the-smart-login-process/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Troubleshooting Weird-Looking Text</title>
		<link>http://www.digitalaccesspass.com/doc/troubleshooting-weird-looking-text/</link>
		<comments>http://www.digitalaccesspass.com/doc/troubleshooting-weird-looking-text/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 12:30:31 +0000</pubDate>
		<dc:creator>Ravi Jayagopal</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Customization]]></category>
		<category><![CDATA[Internationalization]]></category>

		<guid isPermaLink="false">http://www.digitalaccesspass.com/doc/?p=1793</guid>
		<description><![CDATA[Problem I just upgraded to DAP 4.x. The login page when clicked after successful login shows the message [MSG_ALREADY_LOGGEDIN_1 MSG_ALREADY_LOGGEDIN_2] Solution Did you previously customize the dap/inc/language/english.php and save it as dap/inc/language/custom.php? (you have done this for internationalization, or for customizing DAP&#8217;s messages). A) If you answered &#8220;NO&#8221;, then simply delete the file dap/inc/language/custom.php from [...]]]></description>
			<content:encoded><![CDATA[<h3>Problem</h3>
<p>I just upgraded to DAP 4.x. The login page when clicked after successful login shows the message<br />
<strong>[MSG_ALREADY_LOGGEDIN_1 MSG_ALREADY_LOGGEDIN_2]</strong></p>
<h3>Solution</h3>
<p>Did you previously customize the <strong>dap/inc/language/english.php</strong> and save it as <strong>dap/inc/language/custom.php</strong>? (you have done this <a href="http://www.digitalaccesspass.com/doc/internationalization/">for internationalization, or for customizing DAP&#8217;s messages</a>).</p>
<p>A) If you answered &#8220;NO&#8221;, then simply delete the file <strong>dap/inc/language/custom.php</strong> from your server.</p>
<p>B) If you answered &#8220;YES&#8221;, then then there are new messages in <strong>dap/inc/language/english.php</strong> that you need to copy over to <strong>dap/inc/language/custom.php</strong></p>
<p>&nbsp;</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.digitalaccesspass.com/doc/troubleshooting-weird-looking-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secure RSS Feeds</title>
		<link>http://www.digitalaccesspass.com/doc/secure-rss-feeds/</link>
		<comments>http://www.digitalaccesspass.com/doc/secure-rss-feeds/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 22:02:32 +0000</pubDate>
		<dc:creator>Ravi Jayagopal</dc:creator>
				<category><![CDATA[Access Control]]></category>
		<category><![CDATA[Admin]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[Customization]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Feeds]]></category>
		<category><![CDATA[Protecting Content]]></category>
		<category><![CDATA[Protection FAQ]]></category>
		<category><![CDATA[RSS Feeds]]></category>
		<category><![CDATA[Setup]]></category>
		<category><![CDATA[User Status]]></category>

		<guid isPermaLink="false">http://www.digitalaccesspass.com/doc/?p=1785</guid>
		<description><![CDATA[Starting DAP v4.2, each of your members can now get their own unique RSS feed link that they can use with a feed reader (like Google Reader, FeedBlitz, iTunes, etc) to get a custom RSS feed with content that they&#8217;re eligible to view. To give each of your members their own unique RSS Feed URL, [...]]]></description>
			<content:encoded><![CDATA[<p>Starting DAP v4.2, each of your members can now get their own unique RSS feed link that they can use with a feed reader (like Google Reader, FeedBlitz, iTunes, etc) to get a custom RSS feed with content that they&#8217;re eligible to view.</p>
<p>To give each of your members their own unique RSS Feed URL, just insert the following line of code into the top of the &#8220;Member Links&#8221; or &#8220;My Content&#8221; type page, or wherever you want your users to see their personalized RSS feed link&#8230;</p>
<h3>If your blog is in the root&#8230;</h3>
<p><strong>http://YourSite.com/feed/?key=%%ACTIVATION_KEY%%</strong></p>
<h3>If your blog is in a sub-folder (say &#8220;/blog&#8221;)&#8230;</h3>
<p><strong>http://YourSite.com/blog/feed/?key=%%ACTIVATION_KEY%%</strong></p>
<p>&nbsp;</p>
<p>The text <strong>%%ACTIVATION_KEY%%</strong> in the above URL will be replaced with their own custom key, like&#8230;</p>
<h3>http://YourSite.comcom/feed/?key=123456789</h3>
<p>They can then copy that link, enter that into any feed reader, and it will show content specific to their account.</p>
<h3>Custom Feed Link Security</h3>
<p>Another useful feature we&#8217;ve added, is that the custom feed link also does IP count validation. So if they share  the feed link with others, then after &#8220;<strong>X&#8221; unique IP login</strong> <strong>attempts</strong> (where &#8220;X&#8221; is configurable by you, the DAP Admin, in <strong>Setup</strong> &gt; <strong>Config</strong>), their account will automatically <a title="Unlocking Users" href="http://www.digitalaccesspass.com/doc/unlocking-users/">get locked out</a>.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.digitalaccesspass.com/doc/secure-rss-feeds/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Strange Characters In Emails</title>
		<link>http://www.digitalaccesspass.com/doc/strange-characters-in-emails/</link>
		<comments>http://www.digitalaccesspass.com/doc/strange-characters-in-emails/#comments</comments>
		<pubDate>Sun, 03 Apr 2011 19:13:03 +0000</pubDate>
		<dc:creator>Ravi Jayagopal</dc:creator>
				<category><![CDATA[Autoresponders]]></category>
		<category><![CDATA[Broadcasts]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Customization]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Email Resources]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[HTML Email]]></category>
		<category><![CDATA[Internationalization]]></category>
		<category><![CDATA[Setup]]></category>
		<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://www.digitalaccesspass.com/doc/?p=1425</guid>
		<description><![CDATA[If you or your members are noticing strange characters in emails &#8211; especially where there should normally be a single or double quote, then these are due to what are known as &#8220;Smart Quotes&#8221;. These special characters always show up when you copy text from a WordPress blog (some themes use these characters) or a [...]]]></description>
			<content:encoded><![CDATA[<p>If you or your members are noticing strange characters in emails &#8211; especially where there should normally be a single or double quote, then these are due to what are known as &#8220;Smart Quotes&#8221;.</p>
<p>These special characters always show up when you copy text from a WordPress blog (some themes use these characters) or a Microsoft Word document.</p>
<blockquote><p>Single quote:</p>
<h2><code>'</code>(correct)</h2>
<h2><code>`</code>(incorrect)</h2>
<p>Double quote:</p>
<h2><code>"</code> (correct)</h2>
<h2><code>``</code> (incorrect)</h2>
</blockquote>
<p>The single quote that works correctly is located next to the &#8220;Enter&#8221; key.</p>
<p>The incorrect one is located next to the &#8220;1&#8243; number key.</p>
<p>So copy your email text to a text editor, like notepad. Then change all single quotes to be <strong>&#8216;</strong> and all double-quotes to be <strong>&#8220;</strong> in your emails. Then put them back into DAP, and then test.</p>
<p>The &#8220;strange characters&#8221; issue should then be resolved.</p>
<p><strong>NOTE</strong>: In a future version, we will implement an enhancement in DAP so that DAP can handle this automatically, but for now, the above solution is your only option.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.digitalaccesspass.com/doc/strange-characters-in-emails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DAP Login Xpress</title>
		<link>http://www.digitalaccesspass.com/doc/dap-login-xpress/</link>
		<comments>http://www.digitalaccesspass.com/doc/dap-login-xpress/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 06:37:06 +0000</pubDate>
		<dc:creator>Ravi Jayagopal</dc:creator>
				<category><![CDATA[1ShoppingCart]]></category>
		<category><![CDATA[3rd Party Integration]]></category>
		<category><![CDATA[Access Control]]></category>
		<category><![CDATA[Authorize.net]]></category>
		<category><![CDATA[ClickBank]]></category>
		<category><![CDATA[Customization]]></category>
		<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Integration with Shopping Carts]]></category>
		<category><![CDATA[Login Xpress]]></category>
		<category><![CDATA[Payment Integration]]></category>
		<category><![CDATA[Payment Setup and Integration FAQ]]></category>
		<category><![CDATA[Paypal]]></category>
		<category><![CDATA[Paypal Website Payments Pro]]></category>
		<category><![CDATA[Setup]]></category>
		<category><![CDATA[Strategy]]></category>
		<category><![CDATA[Upsell Tree]]></category>

		<guid isPermaLink="false">http://www.digitalaccesspass.com/doc/?p=1417</guid>
		<description><![CDATA[What Is &#8220;Login Xpress&#8221;? &#8220;Login Xpress&#8221; is a DAP feature that enables your members to be logged right into your membership site immediately upon completion of their purchase. This is roughly how it works: Visitor arrives at your web site On your sales page, they click on any &#8220;Buy&#8221; button to purchase a Product (or [...]]]></description>
			<content:encoded><![CDATA[<h3>What Is &#8220;Login Xpress&#8221;?</h3>
<p>&#8220;Login Xpress&#8221; is a DAP feature that enables your members to be logged right into your membership site immediately upon completion of their purchase.</p>
<p>This is roughly how it works:</p>
<ul>
<li>Visitor arrives at your web site</li>
<li>On your sales page, they click on any &#8220;Buy&#8221; button to purchase a Product (or Membership Level)</li>
<li>They&#8217;re taken to the checkout page (depending on Payment processor being used) and they enter their payment information and hit &#8220;Submit&#8221;</li>
<li>When they hit &#8220;Submit&#8221; to complete their payment, their payment is processed right away, and the buyer is immediately transferred back to your web site, in real time, and automatically logged in to your membership site, and they are taken to the &#8220;Welcome&#8221; page or &#8220;Members&#8221; page (you may choose what this page is going to be at a per-Product level)</li>
</ul>
<h3>Payment Processors That Work With Login Xpress</h3>
<p>DAP supports this feature with the following payment processors:</p>
<ul>
<li>Paypal Standard (<strong>DAP-generated buttons only</strong> &#8211; will not work with Paypal-hosted buy buttons that you generate from within your Paypal account)</li>
<li>1Shoppingcart / 1SiteAutomation.com</li>
<li>Authorize.net</li>
</ul>
<p>If you use any of the payment options above, then you can set up your sales funnel in such a way that buyers are logged in right away immediately after purchase.</p>
<h3>Payment Processors That DO NOT Work With Login Xpress (Yet)</h3>
<ul>
<li>Paypal Website Payments Pro</li>
<li>ClickBank</li>
<li>e-Junkie</li>
<li>WorldPay</li>
</ul>
<p>DAP integrates with the above processors via some kind of &#8220;back-end payment notification&#8221; &#8211; similar to Paypal&#8217;s &#8220;IPN&#8221; (Instant Payment Notification). Which means the notification between the payment processor and DAP on your site only happens on the &#8220;back-end&#8221;. Which is why DAP can only deliver the login details to the buyer via an email, and cannot log them in right away (like it can do with &#8220;Login Xpress&#8221;), because the buyer&#8217;s information is available to DAP only when the payment processor sends out the IPN notification behind-the-scenes, so to speak.</p>
<p>So if you&#8217;re using the above processors to accept online payments, then what you need to do, is to redirect your buyers to a static &#8220;Thank You&#8221; page that has a message similar to the one below&#8230;</p>
<blockquote><p>&#8220;Thank you for your purchase. In a few minutes, please check your email address used during purchase for your log in details to log in to the members&#8217; area and access the product you just purchased.&#8221;</p></blockquote>
<p>And behind the scenes, DAP would&#8217;ve already received the payment notification from the payment processor, and it would&#8217;ve created an account for your buyer, given them access to the purchased product, and sent them the &#8220;Thank-you Email&#8221; for the product(s).</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.digitalaccesspass.com/doc/dap-login-xpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>DAP Plugin Framework</title>
		<link>http://www.digitalaccesspass.com/doc/dap-plugin-framework/</link>
		<comments>http://www.digitalaccesspass.com/doc/dap-plugin-framework/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 19:03:04 +0000</pubDate>
		<dc:creator>Veena Prashanth</dc:creator>
				<category><![CDATA[3rd Party Integration]]></category>
		<category><![CDATA[3rd Party List Integration]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Customization]]></category>
		<category><![CDATA[DAP]]></category>
		<category><![CDATA[Integration with Shopping Carts]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Setup]]></category>

		<guid isPermaLink="false">http://www.digitalaccesspass.com/doc/?p=1321</guid>
		<description><![CDATA[How To Setup Notifications/Triggers From DAP to 3rd Party APIs We have now created a plugin framework that will allow DAP to trigger calls to 3rd party services when a user is added to a product (subscription/registration event) or when a user loses access to product (unsubscribe/unregister event). In fact, we used the same framework [...]]]></description>
			<content:encoded><![CDATA[<h3>How To Setup Notifications/Triggers From DAP to 3rd Party APIs</h3>
<p>We have now created a plugin framework that will allow DAP to trigger calls to 3rd party services when a user is added to a product (subscription/registration event) or when a user loses access to product (unsubscribe/unregister event).</p>
<p>In fact, we used the same framework to develop<a href="http://www.digitalaccesspass.com/doc/mailchimp-integration/"> <strong>DAP -&gt; Mailchimp integration</strong></a><strong> </strong>in DAP 4.1.</p>
<p>Here&#8217;s the steps :</p>
<p>1) If you want DAP to trigger calls to the APIs/methods you wrote upon an  addUserToProduct event or removeUserFromProduct event in DAP, then in the DAP products page &#8211; &gt; notify plugin field, use the following format to integrate the APIs/class files.  You can integrate multiple systems with DAP using this framework.</p>
<p><img class="alignnone size-full wp-image-1324" title="DAP_plugin_integration" src="http://www.digitalaccesspass.com/doc/wp-content/uploads/2011/03/DAP_plugin_integration.png" alt="" width="556" height="328" /></p>
<p>Say you want to integrate classname1 (that has the necessary APIs to register/unregister users to 3rd party service like Mailchimp ) and classname 2 (that has the necessary  APIs to register/unregister users to another 3rd party service like GetResponse), then use this format in the notify plugins field above.</p>
<p>classname1:VALUE 1 you want to pass to the api: VALUE 2 you want to pass to the api: VALUE 3 you want to pass to the api</p>
<p>If you want DAP to call multiple APIs/ Classes, then just create a comma seperated list of classes that DAP should notify.<br />
classname1:VALUE 1 you want to pass to the api: VALUE 2 you want to pass to the api: VALUE 3 you want to pass to the api,<br />
classname2:VALUE 1 you want to pass to the api: VALUE 2 you want to pass to the api,<br />
classname3:VALUE 1 you want to pass to the api</p>
<p>Whatever values (VALUE1, VALUE2.. ) you put next to the class name (all values should be &#8220;:&#8221; separated), DAP will forward those params/values to your APIs when a user is added to product or user is removed from product.</p>
<p>To integrate say classname1 which consists of the methods/apis to talk to your 3rd party services, create a folder called classname1 under /dap/plugins folder. Then under the classname1 folder, create a php script called classname1.class.php  (just the way you notice a folder called mailchimp and under mailchimp a class file called mailchimp.class.php).</p>
<p>So you will have something like this:</p>
<p>/dap/plugins/classname1/classname1.class.php</p>
<p>Here&#8217;s what you need to have in classname1.class.php ( skleton class implementation ) :</p>
<p>&lt; ?php</p>
<p>class classname1 {</p>
<p>function classname1() // constructor<br />
{   }</p>
<p>//======== USER REGISTRATION===========</p>
<p>// this function is called by dap when a user is added to a product</p>
<p>function register($userId, $productId, $params) {</p>
<p>logToFile(&#8220;classname1.class.php: register(): &#8220;, LOG_INFO_DAP);<br />
$dapuser = Dap_User::loadUserById($userId);<br />
$email = trim($dapuser-&gt;getEmail());<br />
$username = trim($dapuser-&gt;getUser_name());<br />
$firstname = trim($dapuser-&gt;getFirst_name());<br />
$lastname = trim($dapuser-&gt;getLast_name());</p>
<p>$data = explode(&#8220;:&#8221;,$params);</p>
<p>}</p>
<p>function unregister($userId, $productId, $params)<br />
{<br />
logToFile(&#8220;classname1.class.php: register(): &#8220;, LOG_INFO_DAP);</p>
<p>$dapuser = Dap_User::loadUserById($userId);<br />
$email = trim($dapuser-&gt;getEmail());</p>
<p>$data = explode(&#8220;:&#8221;,$params);</p>
<p>}</p>
<p>}<br />
?&gt;</p>
<p><strong>NOTE: </strong></p>
<p><strong>You MUST have same name methods (called register() and unregister() ) and the exact method signature as you see above.</strong></p>
<p>You can  call other methods/functions from register/unregister and/or</p>
<p>You can call 3rd party APIs from register/unregister methods and/or</p>
<p>You can include other class files.</p>
<p>Whatever values you pass (VALUE1, VALUE2 etc) via notify plugin, you can access those values in these methods. The values are available in the $params array.</p>
<p><strong>That&#8217;s it. </strong></p>
<p>You can add a test user to a product in DAP (via dap admin -&gt; add users) and see if things work as expected.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.digitalaccesspass.com/doc/dap-plugin-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internationalization &amp; Custom Messages</title>
		<link>http://www.digitalaccesspass.com/doc/internationalization/</link>
		<comments>http://www.digitalaccesspass.com/doc/internationalization/#comments</comments>
		<pubDate>Tue, 15 Mar 2011 19:51:33 +0000</pubDate>
		<dc:creator>Ravi Jayagopal</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[DAP]]></category>
		<category><![CDATA[Internationalization]]></category>
		<category><![CDATA[Personalization]]></category>

		<guid isPermaLink="false">http://www.digitalaccesspass.com/doc/?p=1316</guid>
		<description><![CDATA[The article below applies to both of the following groups&#8230; A) Customizing DAP&#8217;s Default Messages Those who wish to replace DAP&#8217;s default error and success messages (like &#8230; &#8220;Sorry, No User found with the email address&#8230;&#8221; when someone is trying to use the &#8220;Forgot Password&#8221; feature, or the message &#8220;Sorry, either you have entered an [...]]]></description>
			<content:encoded><![CDATA[<p>The article below applies to both of the following groups&#8230;</p>
<h3>A) Customizing DAP&#8217;s Default Messages</h3>
<p>Those who wish to replace DAP&#8217;s default error and success messages (like &#8230; &#8220;Sorry, No User found with the email address&#8230;&#8221; when someone is trying to use the &#8220;Forgot Password&#8221; feature, or the message &#8220;Sorry, either you have entered an invalid username/password, or you may not have activated your account yet.&#8221; which is shown when someone uses the wrong email/password when logging in to your membership site &#8211; with English text of their own choice, and</p>
<h3>B) Internationalization</h3>
<p>Those who wish to replace those messages with text in a completely different non-English, international language (like Spanish, Danish, French, etc).</p>
<h4>Non-English Content</h4>
<p>DAP is &#8220;international-friendly&#8221;.</p>
<p>Starting v4.1, you can now customize the &#8220;Member-Facing&#8221; pages in DAP – like &#8220;My Content&#8221;, &#8220;My Profile&#8221; and &#8220;My Affiliate Info&#8221; pages – in any non-English language of your choice. We tested with many languages – like Spanish, Dutch, French, and even Chinese! Others will/should work too – as long the character set is UTF-8 based.</p>
<p>Now please note that WordPress is already international-friendly, which means you can already create all of your WordPress page and post content in any WP-supported international language.</p>
<p>So we&#8217;re excited to be able to help create membership sites in multiple languages.</p>
<h4>Non-English Emails</h4>
<p>And what&#8217;s really cool, is that you can now also send Autoresponder &amp; Broadcast emails in your language.</p>
<p>This is a very powerful feature for those who are often restricted by 3rd-party email services in sending out non-english emails.</p>
<p>In fact, the last time we checked, even the big-boys like Aweber don&#8217;t let you do that!</p>
<h3>Customizing Language Files</h3>
<h4>1) Language File Setup for PHP</h4>
<p>Open the file&#8230;</p>
<blockquote><p>/dap/inc/language/<strong>english.php </strong></p></blockquote>
<p>and save the file as&#8230;</p>
<blockquote><p>/dap/inc/language/<strong>custom.php </strong></p></blockquote>
<p>in the same folder.</p>
<p>Then you can change the english text (last section that is not in caps &#8211; like &#8220;Sorry, no data found&#8221; in the example below) in your language, and upload it back to the same folder ( <strong>/dap/inc/content/language</strong> )</p>
<blockquote><p><strong>define(&#8220;MSG_SORRY_NO_DATA_FOUND&#8221;,&#8221;<span style="color: #ff0000;">Sorry, no data found.</span>&#8220;);</strong></p></blockquote>
<p>becomes&#8230;</p>
<blockquote><p><strong>define(&#8220;MSG_SORRY_NO_DATA_FOUND&#8221;,&#8221;<span style="color: #ff0000;">Désolé, aucune donnée trouvée.</span></strong><strong>&#8220;);</strong></p></blockquote>
<p>(That&#8217;s the French translation, according to Google &#8211; blame them if it&#8217;s not right <img src='http://www.digitalaccesspass.com/doc/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<h4>2) Language File Setup for JavaScript</h4>
<p>DAP also allows you to customize the JavaScript alerts and messages that pop-up for client-side validations of form fields.</p>
<p>Open the file&#8230;</p>
<blockquote><p>/dap/inc/language/<strong>jsenglish.js</strong></p></blockquote>
<p>and save the file as&#8230;</p>
<blockquote><p>/dap/inc/language/<strong>jscustom.js<br />
</strong></p></blockquote>
<p>You may then change the text inside this JavaScript file and upload it back to same folder.</p>
<p>That&#8217;s it!</p>
<p>&nbsp;</p>
<h2>Contents of english.php</h2>
<blockquote><p>//&#8212;&#8212;&#8212;- Added 03/22/2011 &#8212;&#8212;&#8212;//<br />
define(&#8220;MSG_ALREADY_LOGGEDIN_1&#8243;,&#8221;You are already logged in.&#8221;);<br />
define(&#8220;MSG_ALREADY_LOGGEDIN_2&#8243;,&#8221;Click here to continue&#8230;&#8221;);<br />
define(&#8220;MSG_PLS_LOGIN&#8221;,&#8221;Sorry, you must log in before you can view this content.&#8221;);<br />
define(&#8220;MSG_CLICK_HERE_TO_LOGIN&#8221;,&#8221;Click here to log in&#8221;);<br />
define(&#8220;MSG_SORRY_EMAIL_NOT_FOUND&#8221;,&#8221;Sorry, No User found with the email address &#8220;);<br />
define(&#8220;MSG_PASSWORD_SENT&#8221;,&#8221;Please check your email. Your Password has been sent to &#8220;);</p>
<p>//&#8212;&#8212;&#8212;- GENERAL TEXT &#8212;&#8212;&#8212;//<br />
define (&#8220;ACTIVATION_EMAIL_SUBJECT&#8221;, &#8220;%%FIRST_NAME%%, Welcome to %%SITE_NAME%% (Activation)&#8221;);<br />
define (&#8220;AFF_PAYMENT_EMAIL_SUBJECT&#8221;, &#8220;%%FIRST_NAME%%, You&#8217;ve Got An Affiliate Payment&#8221;);<br />
define (&#8220;FORGOT_PASSWORD_EMAIL_SUBJECT&#8221;, &#8220;Your Long Lost Password!&#8221;);<br />
define (&#8220;LOCKED_EMAIL_SUBJECT&#8221;, &#8220;Your account has been locked&#8221;);<br />
define (&#8220;UNLOCKED_EMAIL_SUBJECT&#8221;, &#8220;Your account has been Unlocked&#8221;);<br />
define (&#8220;INVALID_PASSWORD_MSG&#8221;,&#8221;Sorry, either you have entered an invalid username/password, or you may not have activated your account yet.&#8221;);<br />
define(&#8220;SUCCESS_ACTIVATION&#8221;,&#8221;SUCCESS! Your account has been successfully activated! Use the email address and password sent in the activation email to log in below&#8230;&#8221;);</p>
<p>define(&#8220;MSG_SORRY_NO_DATA_FOUND&#8221;,&#8221;Sorry, no data found.&#8221;);<br />
define(&#8220;COLNAME_AFFID_TEXT&#8221;,&#8221;Aff Id&#8221;);<br />
define(&#8220;COLNAME_NAME_TEXT&#8221;,&#8221;Name&#8221;);<br />
define(&#8220;COLNAME_FIRSTNAME_TEXT&#8221;,&#8221;First Name&#8221;);<br />
define(&#8220;COLNAME_LASTNAME_TEXT&#8221;,&#8221;Last Name&#8221;);<br />
define(&#8220;COLNAME_EMAIL_TEXT&#8221;,&#8221;Email&#8221;);<br />
define(&#8220;COLNAME_AMTEARNED_TEXT&#8221;,&#8221;Amount Earned&#8221;);<br />
define(&#8220;COLNAME_DATETIME_TEXT&#8221;,&#8221;Date/Time&#8221;);<br />
define(&#8220;COLNAME_AMTPAID_TEXT&#8221;,&#8221;Amount Paid&#8221;);<br />
define(&#8220;COLNAME_HTTPREFERER_TEXT&#8221;,&#8221;HTTP Referer&#8221;);<br />
define(&#8220;COLNAME_DESTINATION_TEXT&#8221;,&#8221;Destination&#8221;);</p>
<p>//&#8212;&#8212;&#8212;- USER PROFILE TEXT &#8212;&#8212;&#8212;//<br />
define(&#8220;USER_PROFILE_HEADING_TEXT&#8221;,&#8221;Profile Information&#8221;);<br />
define(&#8220;USER_PROFILE_FIRST_NAME_LABEL&#8221;,&#8221;First Name&#8221;);<br />
define(&#8220;USER_PROFILE_LAST_NAME_LABEL&#8221;,&#8221;Last Name&#8221;);<br />
define(&#8220;USER_PROFILE_EMAIL_LABEL&#8221;,&#8221;Email&#8221;);<br />
define(&#8220;USER_PROFILE_USER_NAME_LABEL&#8221;,&#8221;Username&#8221;);<br />
define(&#8220;USER_PROFILE_NEW_PASSWORD_LABEL&#8221;,&#8221;Password&#8221;);<br />
define(&#8220;USER_PROFILE_REPEAT_PASSWORD_LABEL&#8221;,&#8221;Repeat Password&#8221;);<br />
define(&#8220;USER_PROFILE_PAYPAL_EMAIL_LABEL&#8221;,&#8221;Paypal Email&#8221;);<br />
define(&#8220;USER_PROFILE_PAYPAL_EMAIL_EXTRA_LABEL&#8221;,&#8221;For Affiliates Only&#8221;);<br />
define(&#8220;USER_PROFILE_COMPANY_LABEL&#8221;,&#8221;Company&#8221;);<br />
define(&#8220;USER_PROFILE_TITLE_LABEL&#8221;,&#8221;Title&#8221;);<br />
define(&#8220;USER_PROFILE_ADDRESS1_LABEL&#8221;,&#8221;Address 1&#8243;);<br />
define(&#8220;USER_PROFILE_ADDRESS2_LABEL&#8221;,&#8221;Address 2&#8243;);<br />
define(&#8220;USER_PROFILE_CITY_LABEL&#8221;,&#8221;City&#8221;);<br />
define(&#8220;USER_PROFILE_STATE_LABEL&#8221;,&#8221;State&#8221;);<br />
define(&#8220;USER_PROFILE_ZIP_LABEL&#8221;,&#8221;Zip&#8221;);<br />
define(&#8220;USER_PROFILE_COUNTRY_LABEL&#8221;,&#8221;Country&#8221;);<br />
define(&#8220;USER_PROFILE_PHONE_LABEL&#8221;,&#8221;Phone&#8221;);<br />
define(&#8220;USER_PROFILE_FAX_LABEL&#8221;,&#8221;Fax&#8221;);<br />
define(&#8220;USER_PROFILE_UNSUBSCRIBE_LABEL&#8221;,&#8221;You are currently receiving product and &lt;br/&gt;account related emails. Uncheck to stop&lt;br/&gt;receiving all emails (not recommended)&#8221;);<br />
define(&#8220;USER_PROFILE_SUCCESS_MESSAGE&#8221;,&#8221;SUCCESS! User has been successfully updated.&#8221;);</p>
<p>//&#8212;&#8212;&#8212;- AFFILIATE PAGE LABELS &#8212;&#8212;&#8212;//<br />
define(&#8220;AFFILIATE_INFO_TOTALEARNINGS_SUBHEADING&#8221;,&#8221;Total Earnings&#8221;);<br />
define(&#8220;AFFILIATE_INFO_AFFLINK_SUBHEADING&#8221;,&#8221;Affiliate Link&#8221;);<br />
define(&#8220;AFFILIATE_INFO_YOURAFFLINKHOME_LABEL&#8221;,&#8221;Your Affiliate Link &#8211; redirects to home page:&#8221;);<br />
define(&#8220;AFFILIATE_INFO_AFFLINKSPECIFIC_LABEL&#8221;,&#8221;Affiliate Link To Specific Page:&#8221;);<br />
define(&#8220;AFFILIATE_INFO_AFFLINKSPECIFIC_EXTRA_TEXT&#8221;,&#8221;To link to a specific page, just add the text &amp;quot;&amp;amp;p=&amp;lt;insert_url_here&amp;gt;&amp;quot; to the end of your affiliate link, like this: (no &amp;quot;http://&amp;quot; in the 2nd link at the end &#8211; should start with &amp;quot;www&amp;quot;)&#8221;);<br />
define(&#8220;AFFILIATE_INFO_TEST_TEXT&#8221;,&#8221;test&#8221;);<br />
define(&#8220;AFFILIATE_INFO_PAYMENT_DETAILS_SUBHEADING&#8221;,&#8221;Payment Details&#8221;);<br />
define(&#8220;AFFILIATE_INFO_EARNINGS_DETAILS_SUBHEADING&#8221;,&#8221;Earnings Details&#8221;);<br />
define(&#8220;AFFILIATE_INFO_TRAFFIC_STATISTICS_SUBHEADING&#8221;,&#8221;Traffic Statistics&#8221;);</p>
<p>//&#8212;&#8212;&#8212;- USER LINKS PAGE TEXT &#8212;&#8212;&#8212;//<br />
define(&#8220;USER_LINKS_YOUCURRENTLYHAVEACCESSTO_TEXT&#8221;,&#8221;You currently have access to &#8220;);<br />
define(&#8220;USER_LINKS_PRODUCTS_TEXT&#8221;,&#8221; product(s).&#8221;);<br />
define(&#8220;USER_LINKS_ACCESS_START_DATE_TEXT&#8221;,&#8221;Access Start Date&#8221;);<br />
define(&#8220;USER_LINKS_ACCESS_END_DATE_TEXT&#8221;,&#8221;Access End Date&#8221;);<br />
define(&#8220;USER_LINKS_DESCRIPTION_TEXT&#8221;,&#8221;Description&#8221;);<br />
define(&#8220;USER_LINKS_LINKS_TEXT&#8221;,&#8221;Links&#8221;);<br />
define(&#8220;USER_LINKS_NOLINKSFOUND_TEXT&#8221;,&#8221;No links found.&#8221;);</p></blockquote>
<h2></h2>
<p>&nbsp;</p>
<h2>Contents Of jsenglish.php</h2>
<blockquote><p>//New entry MSG_EMAIL_INVALID added on 07/14/2011<br />
var MSG_EMAIL_INVALID = &#8220;Sorry, email id must of a valid format, may not be blank or contain any special characters&#8221;;</p>
<p>var MSG_MISSING_INFO = &#8220;Please enter missing information&#8230;&#8221;;</p>
<p>var MSG_ENTER_EMAIL = &#8220;Please enter your email address before we can email you the password&#8221;;</p>
<p>var MSG_ENTER_PASSWORD = &#8220;Sorry, the password field may not be empty&#8221;;</p>
<p>var MSG_PASSWORDS_MISMATCH = &#8220;The two Passwords don&#8217;t match. Please try again&#8230;&#8221;;</p>
<p>var MSG_PASSWORD_INVALID = &#8220;Sorry, password contains invalid characters. Please choose from numbers and alphabets only.&#8221;;</p>
<p>var MSG_UPDATING_PROFILE = &#8220;Please wait&#8230; Updating User Profile &#8230;&#8221;;</p>
<p>var MSG_OPTOUT_WARNING = &#8220;WARNING: If you uncheck this box, you may not receive emails relevant to the product you have purchased. Are you sure you still want to Unsubscribe?&#8221;;</p>
<p>var MSG_NO_SPECIAL = &#8220;Sorry, no special characters allowed&#8221;;</p></blockquote>
<p>Other links&#8230;.</p>
<p><a href="http://www.digitalaccesspass.com/doc/customizing-login-form/">To customize the DAP Stand-alone Login form, click here.</a></p>
<p><a href="http://digitalaccesspass.com/doc/customizing-login-widget/">To customize the DAP Login/Logout widget, click here.</a></p>
<p><a href="http://www.digitalaccesspass.com/doc/customizing-error-messages-on-protected-pages/">To customize the DAP default Error Message with the &#8216;Lock&#8217; image, click here.</a></p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.digitalaccesspass.com/doc/internationalization/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Protect Entire Blog</title>
		<link>http://www.digitalaccesspass.com/doc/protect-entire-blog/</link>
		<comments>http://www.digitalaccesspass.com/doc/protect-entire-blog/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 21:45:19 +0000</pubDate>
		<dc:creator>Ravi Jayagopal</dc:creator>
				<category><![CDATA[Access Control]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Customization]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[Protecting Content]]></category>
		<category><![CDATA[Setup]]></category>

		<guid isPermaLink="false">http://www.digitalaccesspass.com/doc/?p=1032</guid>
		<description><![CDATA[If you, for some reason, need to protect your ENTIRE blog from &#8220;non-logged in users&#8221; &#8211; meaning, any part of your blog (menus, sidebars, widgets, etc), including the un-protected pages, should be seen only by someone who is already logged in &#8211; be it a free user or a paid user, then here&#8217;s how you [...]]]></description>
			<content:encoded><![CDATA[<p>If you, for some reason, need to protect your ENTIRE blog from &#8220;non-logged in users&#8221; &#8211; meaning, any part of your blog (menus, sidebars, widgets, etc), including the un-protected pages, should be seen only by someone who is already logged in &#8211; be it a free user or a paid user, then here&#8217;s how you do it&#8230;</p>
<ol>
<li>Go into your WordPress Admin, click on Appearance &gt; Editor</li>
<li>Make sure your current theme is selected in the drop-down towards the right/top corner.</li>
<li>Click on &#8220;Header&#8221; (header.php) of your theme.</li>
<li>Enter the following text right towards the very top of that file.</li>
</ol>
<blockquote><p>&lt;?php<br />
<span style="color: #ff0000;"><strong>include_once</strong><strong> &#8220;./dap/dap-config.php&#8221;</strong>;</span></p>
<p>if( !Dap_Session::isLoggedIn() ) {<br />
header(&#8220;Location: /dap/login.php&#8221;);<br />
exit;<br />
}<br />
?&gt;</p></blockquote>
<p>The only thing you need to make sure is that you have the path to the dap-config.php correct.</p>
<p>If your <strong>blog is in the root</strong>, then use the code above as is.</p>
<p>If your <strong>blog is in a sub-folder</strong>, then replace line in red above, with the line in red below&#8230;</p>
<p style="padding-left: 30px;"><span style="color: #ff0000;">include_once<strong> &#8220;../dap/dap-config.php&#8221;</strong>;</span></p>
<p><span style="color: #000000;">That&#8217;s it!</span></p>
<h3><span style="color: #000000;"><br />
WARNING</span></h3>
<p><span style="color: #000000;">Please remember that if you do this, then you <strong>must</strong> <strong>use</strong> the default DAP login page <strong>/dap/login.php</strong> , and you won&#8217;t be able to put the <a title="Login Form Within WordPress" href="http://www.digitalaccesspass.com/doc/creating-a-login-page-within-wordpress/">login form within WordPress</a>.</span></p>
<p><span style="color: #000000;">The reason for this, is that the protection code is being applied at the theme level, and the protection will also apply to all WordPress pages and posts &#8211; and if you put the DAP login form inside a WP page, then that page will also get protected from everyone, and no one will even be able to get to the login form in order to log in. That makes your site impossible to log in to, which of course makes no sense.<br />
</span></p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.digitalaccesspass.com/doc/protect-entire-blog/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

