Simple Membership Plugin › Forums › Simple Membership Plugin › Emoticon and Custom Messages Addon
Tagged: Custom Messages Addon, emoticons
- This topic has 7 replies, 3 voices, and was last updated 4 years, 6 months ago by
Eric iStudio101.
-
AuthorPosts
-
January 3, 2022 at 10:56 am #23432
Eric iStudio101
ParticipantHi,
I would like to add emoticons 👋🏻 🚫 within my message, but there looks to be rejected.
Is it something that could be supported? (Where can I submit a new feature?)
Thank you
EricJanuary 3, 2022 at 11:51 pm #23437mbrsolution
ModeratorThank you for reaching out to us. I have submitted a message to the developers to investigate further your request.
Kind regards.
January 4, 2022 at 12:40 pm #23438admin
KeymasterThese messages will strip certain HTML characters when the sanitization function is called (this done for security). So this is something you may be able to do by using the filter hook and custom code on your site.
Please give me an example of which message you want to customize and what is the HTML that you want to use so I can check it.
January 4, 2022 at 1:12 pm #23439Eric iStudio101
ParticipantThank you!
As an example, for “Restricted More Tag” at
…/wp-admin/admin.php?page=swpm-custom-message
I would like to set :🚫Vous n’avez pas le niveau d’abonnement suffisant pour lire la suite de ce contenu.<br/> <a href=”mailto:eric@myemail”> Contactez-moi pour toute question.
I would like to use emoticons in most/all of the “Custom Messages Addon” customizable fields.
Thank you very much for your help!
January 5, 2022 at 6:23 am #23446admin
KeymasterThe
swpm_restricted_more_tag_msgfilter is triggered for that message. So you should be able to use this filter to specify your custom HTML content that you want to output for it. The following is just an example code to show how this filter can be used in your custom code:add_filter('swpm_restricted_more_tag_msg', 'custom_restricted_more_tag_msg'); function custom_restricted_more_tag_msg ( $output ){ $output .= "My custom more tag message test"; return $output; }January 5, 2022 at 8:17 am #23448Eric iStudio101
ParticipantThank you so much!
January 5, 2022 at 9:11 am #23450Eric iStudio101
Participant(
One or two more things…
– “Custom Messages Addon” should be deactivated, or
– The concerned field should be empty in the “Custom Messages Addon” panel
)January 5, 2022 at 10:04 am #23451Eric iStudio101
ParticipantOne last question… what is the mean to include the value of {login_url} ?
thanks
Eric -
AuthorPosts
- You must be logged in to reply to this topic.