Simple Membership Plugin › Forums › Simple Membership Plugin › How to Apply Partial or Section Protection If you want to protect/hide a section
- This topic has 7 replies, 2 voices, and was last updated 9 years, 1 month ago by
mbrsolution.
-
AuthorPosts
-
October 14, 2017 at 4:34 pm #12151
QueenEve
ParticipantWhere can I create the formated message to have its ID like shown in the image below?
https://monosnap.com/file/70GXbW7YPslAfo0Bf4OybRxOByvh0NOctober 15, 2017 at 12:55 am #12159mbrsolution
ModeratorHi, did you following the instructions provided in the documentation? Did you add the shortocde over and below the content you wish to partially protect as described in the documentation?
October 15, 2017 at 6:30 am #12165QueenEve
ParticipantYes I followed the steps but my problem is with the customized message I dont know where to add it, and where can I get the ID, it shows for me the normal message of this content is for members only
Thanks in advance
October 15, 2017 at 10:27 pm #12170mbrsolution
ModeratorHi, can you share with me what have you done so far in the page you are trying to partially protect? Can you also share what shortcode you have used? Or if you like you can share a screen capture just like you did above.
Thank you
October 15, 2017 at 10:38 pm #12175QueenEve
ParticipantI used the code in the image below
https://monosnap.com/file/70GXbW7YPslAfo0Bf4OybRxOByvh0NAnd I want to change the message that appears to the customers
October 15, 2017 at 10:53 pm #12176mbrsolution
ModeratorHi, did you add the following parameter custom_msg=”” to the shortcode?
Here is an example.
[swpm_protected for="2-3" custom_msg="This is a custom protection message"] The content goes here. this content will be hidden and only available to members of membership level 2 or 3. [/swpm_protected]October 16, 2017 at 3:00 pm #12181QueenEve
ParticipantNo I just added the format_protected_msg=”1″ in the code and I assume this “1”refers to a message created somewhere and it is called in the message here, am I right?
=================As for your suggestion ================
[swpm_protected for=”2-3″ custom_msg=”This is a custom protection message”]The content goes here. this content will be hidden and only available to members of membership level 2 or 3.
[/swpm_protected]
you mean to add html code between the quotations here?
custom_msg=”This is a custom protection message”October 16, 2017 at 9:25 pm #12183mbrsolution
ModeratorHi, what you need to add between the quotes is your custom message. No html. The above is just an example.
-
AuthorPosts
- You must be logged in to reply to this topic.