{"id":2528,"date":"2012-09-03T00:41:30","date_gmt":"2012-09-03T07:41:30","guid":{"rendered":"http:\/\/www.digitalaccesspass.com\/doc\/?p=2528"},"modified":"2014-03-01T22:34:01","modified_gmt":"2014-03-02T06:34:01","slug":"ugly-links-in-optimizepress","status":"publish","type":"post","link":"http:\/\/digitalaccesspass.com\/doc\/ugly-links-in-optimizepress\/","title":{"rendered":"OptimizePress Issues"},"content":{"rendered":"<h3>1) OptimizePress 1.x CSS Issue<\/h3>\n<h3>Problem<\/h3>\n<p>You try to visit a protected page that you&#8217;re not eligible to view, and see an ugly page full of un-formatted links<\/p>\n<h3>Solution<\/h3>\n<ul>\n<li>Create a <strong>custom error page<\/strong> in WP &#8211; like <strong>http:\/\/YourSite.com\/error\/<\/strong><\/li>\n<li>When creating the above page, select the OptimizePress template &#8220;DAP Error Page&#8221;<\/li>\n<li>In the body of that error page, enter something like this:<br \/>\n<span style=\"font-size: x-small; color: #993300;\">Sorry, you do not have access to this content.<\/span><br \/>\n<span style=\"font-size: x-small; color: #993300;\">If you are already a member, <strong>click here to login<\/strong>.<\/span><br \/>\n<span style=\"font-size: x-small; color: #993300;\">If you are not a member yet, then click here to <strong>get access<\/strong>.<\/span><\/li>\n<li>In the above example, link the text &#8220;<strong>click here to login<\/strong>&#8221; to your stand-alone DAP login page (eg., http:\/\/YourSite.com\/login\/). And link the &#8220;<strong>get access<\/strong>&#8221; text to your sales page.<\/li>\n<li>Then take this error page&#8217;s URL &#8211; which is http:\/\/YourSite.com\/error\/ &#8211; and enter it into the &#8220;<strong>Error Page URL<\/strong>&#8221; field of all DAP Products.<\/li>\n<li>Also enter this same URL into <strong>DAP Admin &gt; Setup &gt; Config &gt; &#8220;Error Page URL (Global)&#8221;<\/strong>.<\/li>\n<\/ul>\n<p>Save, and that will no longer display the ugly error page going forward. Instead, it will redirect the user to the above custom error page.<\/p>\n<h3>2) OptimizePress 2.x Content Protection Issue<\/h3>\n<h3>Problem<\/h3>\n<p>You try to visit a protected page that you&#8217;re not eligible to view, yet you are still able to see all of the content. Or the page appears messed up with missing menu items or formatting issues.<\/p>\n<h3>Solution<\/h3>\n<ul>\n<li>Make sure &#8220;<a href=\"http:\/\/DigitalAccessPass.com\/doc\/partial-content-protection-using-sneak-peek\/\">Sneak-Peek<\/a>&#8221; is turned OFF &#8211; it won&#8217;t work with OptimizePress 1.x or 2.x.<\/li>\n<li>Follow all of the same steps from Problem 1 and create a custom error page.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>1) OptimizePress 1.x CSS Issue Problem You try to visit a protected page that you&#8217;re not eligible to view, and see an ugly page full of un-formatted links Solution Create a custom error page in WP &#8211; like http:\/\/YourSite.com\/error\/ When creating the above page, select the OptimizePress template &#8220;DAP Error Page&#8221; In the body of [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[60,12,45,111,26,112,46],"tags":[],"_links":{"self":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/2528"}],"collection":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/comments?post=2528"}],"version-history":[{"count":8,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/2528\/revisions"}],"predecessor-version":[{"id":4199,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/2528\/revisions\/4199"}],"wp:attachment":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/media?parent=2528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/categories?post=2528"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/tags?post=2528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}