Members | Download | Tutorials | Support
List of shortcodes available in Fast Member v. 1.0 Plugin and documentation created by: Dave Dunn, Stanil Dobrev
Below you can see the list of all the available shortcodes in the Fast Member Wordpress plugin. In the page/post editor (in visual mode) in the Wordpress admin area you will see 2 buttons for inserting Fast Member shortcodes.
The first button is for members and content related shortcodes, and the second is for affiliaterelated content. The list below is split in two sections the same way, for both buttons. For every shortcode you will also see the list of parameters. The parameters marked with asterix (*) are required, the rest are optional. You modify the values in {brakets} depending on your needs. Wherever item IDs are needed you better use the shortcode dialogue to see the items with their titles. It is hard to know all them by ID. For easy reading the following colors are used in this document: Shortcodes are displayed in red Parameters are displayed in blue Example code is displayed in green
-1-
1. Members and content-related Shortcodes
1.1. Payment button [fastmem product="{product_id}" button="{button_id}" track="{tracking_code}"] product * - product ID, number. button * - button ID, number. One of the payment button configurations managed on the "Buttons" plugin page. track - tracking code, text. You put any text you like and then it is available in the stats. If you have multiple instances of a payment button with this tracking code you can track which payment button was clicked in a sale. Using this feature you can test different button designs and locations on your sales page.
1.2. Payment link [fastmempaylink product="{product_id}" but="{button_id}" pmethod="{payment_method}" track="{tracking_code}" title="{anchor_text}"] product * - product ID, number. but * - button ID, number. One of the payment button configurations managed on the "Buttons" plugin page. pmethod * - payment method. 1 - Paypal, 2 - AlertPay/Payza, 3 - SolidTrustPay track - tracking code, text. See 1.1. for more details. title - the title (anchor text) of the link, text.
1.3. Content Chunk (Conditional) [fastmemchunk id="{content_chunk_id}" cond="{condition}"] id * - content chunk ID, number. cond - condition, text (expression). This condition is a logical expresions that defines when the content chunk should be displayed, depending on which product(s) the member have purchased (or not purchased). -2-
For example you can use the following condition: ({1} OR {2}) AND (NOT ({3} OR {4})) With this condition the content will be displayed if the member have purchased product 1 or 2 and haven't purchased 3 and 4. Any condition like this will be rendered no matter how complex it is. The numbers used in this code are the product (membership levels) Ids. In the condition builder you visually pick the products by title (you don't need to know the IDs of all the products). If you want a simple condition to show the content only when one product is purchased you simply use {[prodcut_id]} for the condition. This parameter is optional. If you do not specify condition the content chunk will be displayed for all the site visitors and members (no matter what they have purchased).
1.4. Partially hidden content [fastmemhidden start {product_id}] {content} [fastmemhidden end {product_id}] {product_id} * - replace it with a product ID, number {content here} * - replace it with your content This is not a Wordpress supported shortcode, but a custom shortcode we manage/parse for the needs of the Fast Member plugin. It is used to hide part of a page/post that is enclosed between the 2 tags (start and end) and will be displayed only to members that purchased the product specified in {product_id} If the member hasn't purchased the product specified then a message will be displayed saying "MEMBERS ONLY CONTENT! Please sign up to see it!". This message can be altered in the product settings under “Content Templates� If you place "0" just before the product ID this message will not be displayed and the content simply hidden until the member logs in
-3-
Example: [fastmemhidden start 1] any text, media embed or other content available only for members that purchased the product with ID 1 [fastmemhidden end 1]
Same but without "member only" message displayed: [fastmemhidden start 01] any text, media embed or other content available only for members that purchased the product with ID 1 [fastmemhidden end 01]
1.5. OnPage Drip Content [fastmemdrip start product="{product_id}" dripday="{drip_day}"] {content} [fastmemdrip end] product * - product ID, number. dripday * - the day when the content will be revealed to the member, based on his signup/purchase date. {content} - replace this with your content Again this is not a Wordpress supported shortcode. It is defined for the needs of the Fast Member plugin. With this shortcode you can place content on the site pages/posts which will be displayed to a member after certain amount of days pass based on the day he purchased the product {product_id}.
Example: [fastmemdrip start product="1" dripday="4"] any text, media embed or other content that will be displayed to the member on the day 4 after he purchased product 1 [fastmemdrip end]
-4-
1.6. OnPage OTO [fastmempgoto start id="{unique number}" p="{product_id}" nop="{product_id}" foru="{for_users_only}" d="1v"] Add your Offer here [fastmempgoto end] id * - unique ID, number. This ID should be unique in between all the OTO shortcodes inserted on your site. The shortcode dialog will generate unique number for you automatically. p - product ID, number. If this paramater is defined then the offer will be displayed to the member only if he has purchased the product specified in the parameter. nop - product ID, number. If this paramater is defined then the offer will be displayed to the member only if he has NOT purchased the product specified in the parameter. foru - 0 or 1. 0 - display the offer for all the site visitors; 1 - display the offer only for registered (and logged-in) users. d * - duration of the offer, number + char; the char may take any of the following values: v views; i - minute(s); h - hour(s); d - day(s) Same as above this is not a shortcode, supported and parsed by Wordpress. It is defined for the needs and parsed by the FastMember plugin. You can use these shortcodes to inclose a special offer you display to the member, depending on the parameters passed. Examples: [fastmempgoto start id="1" p="1" nop="2" foru="1" d="1v"] Offer content here, it may include also any of the other FastMember shortcodes... for example payment buttons. [fastmempgoto end] In this example the offer text will be displayed 1 time only (1v means "1 view") only if the member has purchased product 1 and hasn't purchased product 1. [fastmempgoto start id="2" nop="3" d="5d"] Offer content here, it may include also any of the other FastMember shortcodes... for example payment buttons. [fastmempgoto end] In this example the offer text will be displayed for 5 days (counted from the join date of the member) only if the member hasn't purchased product 3.
-5-
1.7. Copies Left Image <img src="/wp-content/plugins/fastmember/lib/copiesimg.php? prodid={product_id}&amp;button={button_design}" /> {product_id} * - replace this with your product ID {button_design} * - 1 or 2. There are 2 versions of the image. Test with 1 and 2 to see how the image looks. This is not a shortcode but HTML code for image. You can use the shortcode dialog to generate this code. This code can be used on external sites too, but you need to add your domain in front of the URL. The image will display the number of copies left before the product price increases when dimesale is used. Example: <img src="http://mysite.com/wp-content/plugins/fastmember/lib/copiesimg.php? prodid=1&amp;button=1" />
1.8. Current Product Price [fastmemcurprice product="{product_id}"] product * - product ID, number. This shortcode will display the current sale price for the product specified in the "product" parameter. If the visitor has applied a valid coupon code then the correct discounted price will be displayed. 1.9. Product Name [fastmemproduct product="{product_id}"] product * - product ID, number. This shortcode will display the product name of the product specified in the "product" parameter. It is recommended to use this shortcode everywhere on your pages where you want to put a product name. This way if you change the name of your product it will be populated everywhere on the site and you don't need to go change it on all the pages where the product is mentioned. -6-
1.10. Coupon Input/Info [fastmemcoupon] This shortcode will display an input field with label "Coupon code" where the visitors can apply/submit coupon codes. If the visitor has submitted a coupon code details (discount amount) for the coupon code will be displayed with a reset link.
1.11. Download Link [fastmemdownload file="{file_name}" title="{anchor_text}" imgf="{image_URL}"] file * - file name, text. File name or URL to the file, subject of the download link. title - link title (anchor text) imgf - image URL. Image to be used for the link. With this code you can insert download link for any of the files you have uploaded on the site (self hosted) or remotely hosted file. Amazon S3 service is supported here and the plugin will generate authenticated download link that will expire 1000 seconds after it is generated. You need to enter your S3 details on the plugin settings page if you're using S3-hosted files. You have the option to protect your files behind your products (membership levels) and let people download the file only if he/she has purchased the product. You can attach files to products on the "Protected Content" plugin page. If you protect any file and a non-member try to download it an error message will be displayed that the visitor hasn't rights to download the file.
Example: [fastmemdownload file="https://s3.amazonaws.com/bucketname/downloads/myebook.pdf" title="Click here to download my Ebook"]
-7-
1.12. All download links [fastmemdownloads product="{product_id}"] product * - product ID, number. This shortcode will display a list of download links for all the files that are protected by the product specified. You pick the product files on the "Protected Content" plugin page. Same rules apply as explained in 1.11.
1.13. Login Form [fastmemloginform product="{product_id}"] product - product ID, number. This shortcode will place a login form on the page. If product is specified the user will be redirected to the product's home page after he/she logs in. If no product is specified then the member will be redirected to the home page of the product he/she first purchased.
1.14. Signup Form (Free Products) [fastmemregform product="{product_id}"] product * - product ID, number. This shortcode will place a signup form on the page for the product specified. It is available only for free products (price set to 0). After a visitor submits the form he will get access to the product.
-8-
2. Affiliate related shortcodes
2.1. Affiliate Stats [fastmemaff chunk="stats" product="{product_id}"] product - product ID, number. This shortcode will display sales stats to the affiliate. It is a table with the following columns: Hits, Unique Hits, Sales, Conversion, Revenue, Profit. If product is specified in the shortcode then only the stats for this product will be displayed. If no product specified then the table will include all the products, one table row per product.
2.2. Affiliate Link [fastmemaff chunk="link" product="{product_id}" page="{page_id}"] product - product ID, number. page - page ID, number. This shortcode will display the affiliate link to your affiliate that he/she will use to promote your product. If no product is specified the affiliate link will work for all your products. If page is specified the user that clicks that affiliate link will be redirected to this landing page.
2.3. Witdrawal Stats [fastmemaff chunk="withdrstats"] This shortcode will display withdrawal stats to the affiliate. It is a table with the following columns: Withdrawal Date, Amoutn, Payment Details (paypal/alertpay email), Date Paid. If the withdrawal is not processed yet then the column "Date Paid" will show "pending".
-9-
2.4. Withdrawal Form [fastmemaff chunk="withdrform"] This shortcode will display a form that the affiliate can fill to request a withdrawal of his/her earnings. The form has 3 fields: withdrawal amount, payment method (Paypal, Alertpay, SolidTrustPay) and payment email. The maximum amount accepted is the total amount earned by the affiliate minus the holding amount (5% of the total amount).
2.5. Payment Details Form (for FastPay) [fastmemaff chunk="ppdetails" product="{product_id}"] product - product ID, number. This shortcode will display on input field where the affiliate can enter and save his/her payment email. This is needed only if FastPay (RAP-like) affiliate system is selected or Paypal Adaptive Payments are used. In both cases we need the affiliate's payment email to use it in the payment buttons.
2.6. Registration Form [fastmemaff chunk="regform" product="{product_id}" page="{page_id}"] product - product ID, number. page - page ID, number. This shortcode will display a registration form for affiliates. If product is specified the affiliate will be registered for that product only. If page is specified the affiliate will be redirected to this page after he/she submit the registration form. - 10 -
2.7. Login Form [fastmemaff chunk="loginform" product="{product_id}" page="{page_id}"] product - product ID, number. page - page ID, number. This shortcode will display a login form for affiliates. If product is specified the affiliate will be registered to the product's homepage after he/she logs in. If page is specified the affiliate will be redirected to this page after he/she logs in.
- 11 -