The aretex_paid_content shortcode is used to display different content to your users depending on their authorization status for this deliverable.
The short code is of the following format:
Important Note: Use "text mode" on the page editor when copying and pasting shortcodes to be sure all embedded HTML is rendered properly.
| Status | Explanation | Show/Hide |
|---|---|---|
| Authorized | User is authorized to view content. If no status is specified, this status is the default. | |
| [aretex_paid_content deliverable_code="$deliverable_code" status="Authorized"] ---- YOUR PAID CONTENT GOES HERE ---- [/aretex_paid_content] | ||
| !Authorized | User is NOT authorized to view content. The exclamation mark (!) means "NOT". The reason the user is not authorized is irrelevant. | |
| [aretex_paid_content deliverable_code="$deliverable_code" status="!Authorized"] ---- YOUR 'You are not authorized' CONTENT GOES HERE ---- [/aretex_paid_content] | ||
| Expired | Only valid when you have a Duration specified. The content within the shortcode with this status will be displayed when the duration has passed and has not been renewed. | |
| [aretex_paid_content deliverable_code="$deliverable_code" status="Expired"] ---- YOUR 'Your access authorization has expired' CONTENT GOES HERE ---- [/aretex_paid_content] | ||
| !Expired | The authorization has NOT expired. The exclamation mark (!) means "NOT". | |
| [aretex_paid_content deliverable_code="$deliverable_code" status="!Expired"] ---- YOUR 'Your access authorization has not (yet?) expired' CONTENT GOES HERE ---- [/aretex_paid_content] | ||
| Pending | Only valid when you have a Availablity greater than 0. The content within the shortcode with this status will be displayed when the delivery is pending. | |
| [aretex_paid_content deliverable_code="$deliverable_code" status="Pending"] ---- YOUR 'Your access authorization is pending' CONTENT GOES HERE ---- [/aretex_paid_content] | ||
| !Pending | The content within the shortcode with this status will be displayed any time the content is not pending. The exclamation mark (!) means "NOT". | |
| [aretex_paid_content deliverable_code="$deliverable_code" status="!Pending"] ---- YOUR 'Your access authorization is not pending' CONTENT GOES HERE ---- [/aretex_paid_content] | ||
| Completed | Only valid when you have a Total Re-Auth specified. The content within the shortcode with this status will be displayed when the maximum number of deliveries has been completed. | |
| [aretex_paid_content deliverable_code="$deliverable_code" status="Completed"] ---- YOUR 'Your access authorization has been completed' CONTENT GOES HERE ---- [/aretex_paid_content] | ||
| !Completed | The content within the shortcode with this status will be displayed when the maximum number of deliveries has NOT been completed. The exclamation mark (!) means "NOT". | |
| [aretex_paid_content deliverable_code="$deliverable_code" status="!Completed"] ---- YOUR 'Your access authorization has not been completed' CONTENT GOES HERE ---- [/aretex_paid_content] | ||
| Authorized|Completed | (Advanced Useage) The pipe symbol (|) means OR. This content will displayed if the user is Authorized OR the maximum number of deliveries has beenc completed. Note:ANY of the statuses above may be "OR"ed together. If ANY ONE status in an OR condition is valid, the content will be shown. | |
| [aretex_paid_content deliverable_code="$deliverable_code" status="Authorized|Completed"] ---- YOUR APPROPRIATE CONTENT GOES HERE ---- [/aretex_paid_content] | ||
| !Authorized&!Pending | (Advanced Useage) The and symbol (&) means AND. This content will displayed if the user is NOT Authorized AND NOT Pending. Note:ANY of the statuses above may be "ANDED"ed together. If ALL statuses in an AND condition are valid, the content will be shown. | |
| [aretex_paid_content deliverable_code="$deliverable_code" status="!Authorized&!Pending"] ---- YOUR APPROPRIATE CONTENT GOES HERE ---- [/aretex_paid_content] | ||
| LoggedIn | The content within the shortcode with this status will be displayed when the user is logged in regardless of the user's athorization status for this deliverable. Note The AND, OR operators (|, &) -- see above -- will NOT work with this status. | |
| [aretex_paid_content deliverable_code="$deliverable_code" status="LoggedIn"] ---- YOUR USER IS LOGGED IN CONTENT GOES HERE ---- [/aretex_paid_content] | ||
| !LoggedIn | The content within the shortcode with this status will be displayed when the user is NOT logged in. The exclamation mark (!) means "NOT". Note The AND, OR operators (|, &) -- see above -- will NOT work with this status. | |
| [aretex_paid_content deliverable_code="$deliverable_code" status="!LoggedIn"] ---- YOUR USER IS NOT LOGGED IN CONTENT GOES HERE ---- [/aretex_paid_content] | ||