Memberstack integrates with your website via links and/or data attributes.

Click here to see All Available Links

Click here to see All Available Data Attributes

Links

Signup & upgrade links
A new signup link is dynamically generated when you create a new Membership. By default this link will launch the signup modal. However if also acts as a downgrade and upgrade link for returning members. 

#/ms/signup/{{membershipID}}

Login links
This link launches the login modal. Learn more

#/ms/login

Profile modal link
Launch the member profile modal. This link is only visible to members. Learn more.

#/ms/profile


Hide a link to members-only content
Add the following code to links to members-only content. You can find the contentID on your Memberships page after you create a membership with members-only content. Note: Adding a ! before the contentID will invert the links visibility.

.../#/ms/content/{{contentID}} 

Password reset link
Launch the password reset modal. See it in action →

#/ms/password-reset

Logout links
Automatically logs a member out of their current session. Only visible for members.

#/ms/logout

Hide a link from active members
Links with this code are only visible to new users who don't have an account. Add this to the end of a link.

.../#/ms/content/!members

Data Attributes

Note: Data attributes are only supported by a few website builders. If your site builder doesn't allow you to add attributes, see above for some equivalent links.

Attributes to hide/edit site content

data-ms-member="fieldID"
Will replace the text of an element with the user data you specify when placed on a contact form, div, span, link, and image.

data-ms-member="signup-field-ID"


data-ms-content="contentID"
Tag an element as members-only content. Add the following attribute to content to members-only content. You can find the contentID on your Memberships page after you create a membership with members-only content.

data-ms-content="contentID"


data-ms-content="!members"
Hide content from all active members.

data-ms-content="!members"

data-ms-content=“members”

Hide content from all non-members.

data-ms-content=“members”

Forms and input field attributes

data-ms-member="fieldID"
Will collect, display, or update members data when place on an input (field) inside of a Memberstack form. 

data-ms-member="signup-field-ID"


data-ms-form="signup"
Specifies what form you would like to use as a signup form.

data-ms-form="signup" 


data-ms-form="login"
Specifies what form you would like to use as a login form.

data-ms-form="login" 

data-ms-form="profile"
Collect or update user info to store in Memberstack.

data-ms-form="profile" 


----------------------------------------------------

Archived attributes

ms-email="true"
ms-password="true"
ms-field="ID"
ms-hide="ID"
ms-hide-element="true"
ms-hide-member="ID"
ms-logout="true"
ms-profile="true"
ms-update="profile"
ms-rewrite="VALUE"
ms-forgot="true"
ms-signup="true"
ms-login="true"
ms-forgot="true"

data-ms-rewrite="your-input"

Did this answer your question?