Description
This shortcode generates secure, expiring Amazon S3 links, with additional features, automation integration, and unique security enhancements.
Shortcode Examples
Here is a simple example, showing a link to a file called “test.jpg”:
<a [memb_s3_link htmlattr=href profile="yourprofile" object="test.jpg"] > Click Here to Download </a>
Here is a simple example, showing a link to a file in a path, with spaces in the filename:
<a [memb_s3_link htmlattr=href profile="yourprofile" object="/my/path/this is test.jpg"] > Click Here to Download </a>
This is how the shortcode looks like with optional parameters:
<a [memb_s3_link htmlattr=href profile="memberium" require_login="yes" object="test.jpg" direct_link="no" expiring="5"] > Click Here to Download </a>Use this to generate the entire link using the shortcode:
[memb_s3_link htmlattr=all profile=yourprofile object="/my/path/here/file.pdf"]Click here[/memb_s3_link]
Shortcode Parameters
bucket | Name of the Amazon S3 bucket |
|---|---|
region | The region of the bucket on Amazon S3. Example: eu-west-2. This is not required if you’re on North Virginia region, but is required if you’re on any other region |
version=4 | Use this parameter if you’re NOT using North Virginia region. If you’re on North Virginia region, then skip using this parameter. |
action_ids | List of ActionSet ID’s to run on click. Defaults to none. (Optional) |
direct_link | Whether to link directly to S3 or not. Valid values are “no” and “yes”. Defaults to “no”. Set to “yes” if the inks give you an Error 414. (Optional) |
expiring | – The number of seconds before the link expires. Defaults to the value set in the profile. (Optional) |
fus_ids | FUS ID’s to add/remove on click. Defaults to none. (Optional) |
goals | Campaign Builder goal to achieve on click protocol. Defaults to none. (Optional) |
htmlattr | HTML attribute to embed the generated value in. If blank no attribute is generated. (Optional) |
FAQ
Can I use this shortcode with a page builder?
You can definitely use the shortcode to generate links inside page builders like Elementor, Divi, Beaver Builder, etc.
The only limitation is most page builders do not support shortcodes inside link fields. This means you couldn’t use our shortcode as a link inside a button, image, or any other element/block.
Due to page builders constantly pushing out updates, we don’t have a list on which ones are and aren’t supported, but you can easily test this for yourself.
Shortcode Attributes
| Conditional | No |
|---|---|
| Nestable | No |
| Accepts formatting | No |
| Capturable | No |