{"id":3047,"date":"2013-02-25T22:04:14","date_gmt":"2013-02-26T06:04:14","guid":{"rendered":"http:\/\/www.digitalaccesspass.com\/doc\/?p=3047"},"modified":"2015-03-09T20:55:14","modified_gmt":"2015-03-10T03:55:14","slug":"dap-user-links","status":"publish","type":"post","link":"http:\/\/digitalaccesspass.com\/doc\/dap-user-links\/","title":{"rendered":"[DAPUserLinks]"},"content":{"rendered":"<p>This post is dedicated just to the <strong>[DAPUserLinks]<\/strong> shortcode. To see the rest of the <a href=\"http:\/\/DigitalAccessPass.com\/doc\/dap-shortcodes\/\">DAP Shortcodes, click here<\/a>.<\/p>\n<h3><strong>[DAPUserLinks]<\/strong><\/h3>\n<p>This is the shortcode that shows the user a list of all of the products that they have access to, and details about each product &#8211; like name, description, links that have already been dripped, etc.<\/p>\n<p>This is similar to %%USERLINKS%%, but more advanced and more customizable.<\/p>\n<p>You can customize most of the elements of this shortcode, as shown below.<\/p>\n<p>You can even customize this to show details of a specific product (instead of all products).<\/p>\n<h3>Full Version<\/h3>\n<p><code>[DAPUserLinks showProductName=\"Y\" showAccessStartDate=\"Y\" showAccessEndDate=\"Y\" showDescription=\"Y\" showLinks=\"Y\" <span style=\"color: #0000ff;\"><strong>orderOfLinks<\/strong><\/span>=\"NEWESTFIRST\" howManyLinks=\"10000\" errMsgTemplate=\"SHORT\" <strong><span style=\"color: #0000ff;\">productId<\/span><\/strong>=\"ALL\" dateFormat=\"YYYY-MM-DD\" <span style=\"color: #0000ff;\"><strong>showProductCount<\/strong><\/span>=\"Y\" <span style=\"color: #0000ff;\"><strong>hideProductId<\/strong><\/span>=\"3,4\"]<\/code><\/p>\n<p>Most of the elements are self-explanatory. Here are a couple explained in detail.<\/p>\n<h4><span style=\"color: #0000ff;\">orderOfLinks<\/span><\/h4>\n<p>orderOfLinks can have one of two values&#8230;<\/p>\n<p>NEWESTFIRST will drip newly dripped links at the top. So day 7 link will be above day 1 link.<\/p>\n<p>OLDESTFIRST will drip newly dripped links towards the bottom. So day 1 link will be above day 7 link.<\/p>\n<h4><span style=\"color: #0000ff;\"><strong>showProductCount<\/strong><\/span><\/h4>\n<p>showproductcount=&#8221;N&#8221; will disable the heading &#8220;<strong>You have access to (X) products<\/strong>&#8221; at the top of the &#8220;My Content&#8221; section.<\/p>\n<p>So, here&#8217;s another version of the DAPUserLinks shortcode that shows oldest links at th top, and does not show the product-count heading.<\/p>\n<p><code>[DAPUserLinks showProductName=\"Y\" showAccessStartDate=\"Y\" showAccessEndDate=\"Y\" showDescription=\"Y\" showLinks=\"Y\" <strong>orderOfLinks=\"OLDESTFIRST\"<\/strong> howManyLinks=\"10000\" errMsgTemplate=\"SHORT\" productId=\"ALL\" dateFormat=\"YYYY-MM-DD\" <strong>showproductcount=\"N\"<\/strong>]<\/code><\/p>\n<h4><span style=\"color: #0000ff;\">productId<\/span><\/h4>\n<p>productId is by default set to &#8220;ALL&#8221; which means details for all products that a user has access to, will be displayed on that page. You can also configure it to show for just one product (<code>productId=\"8\"<\/code>) or a few select products (<code>productId=\"8,11\"<\/code>).<\/p>\n<p><span style=\"color: #0000ff;\"><strong>hideproductid<\/strong><\/span><\/p>\n<p>This was introduced in DAP v4.5. It allows you to suppress all listed product id&#8217;s (either just one, or multiple product id&#8217;s separated by commas) from being displayed in the list.<\/p>\n<p><code>[DAPUserLinks ... hideproductid=\"3\" ...]<\/code><\/p>\n<p>Related: <a href=\"http:\/\/www.digitalaccesspass.com\/doc\/dap-user-profile\/\">[DAPUserProfile] shortcode<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post is dedicated just to the [DAPUserLinks] shortcode. To see the rest of the DAP Shortcodes, click here. [DAPUserLinks] This is the shortcode that shows the user a list of all of the products that they have access to, and details about each product &#8211; like name, description, links that have already been dripped, [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[85,27,65,6,26,100,119],"tags":[],"_links":{"self":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/3047"}],"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=3047"}],"version-history":[{"count":12,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/3047\/revisions"}],"predecessor-version":[{"id":4955,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/3047\/revisions\/4955"}],"wp:attachment":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/media?parent=3047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/categories?post=3047"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/tags?post=3047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}