Simple Membership Plugin › Forums › Simple Membership Plugin › Content before the tag lose the formatting
Tagged: formatting, More tag
- This topic has 14 replies, 3 voices, and was last updated 9 years, 2 months ago by
nicolomonili.
-
AuthorPosts
-
January 18, 2017 at 9:18 am #9717
nicolomonili
ParticipantHi,
i noticed that the content (of posts) before the<!-- more -->tag lose the formatting. Not all the tag (for example the h1 tag remain) , but only the character (that wordpress create in the Text-mode of the editor).For now i made this change in this file class.swpm-access-control.php (line 220 approximately)
//$new_post_content = do_shortcode($post_segments[0]) . $this->lastError; $mytemp = str_replace("\n","<br>",$post_segments[0]); $new_post_content = do_shortcode($mytemp) . $this->lastError;January 18, 2017 at 10:18 pm #9733mbrsolution
ModeratorHi, thank you for sharing. Can you carry out a test if you want. Can you test one of WordPress default themes like Twenty Fifteen or Sixteen? I am curious to know if this is a theme related issue or not.
Before you begin the test, please remove your custom code.
Thank you
January 19, 2017 at 8:03 am #9741nicolomonili
ParticipantHi mbrsolution
I did some testing, the problem seems to be the plug-in and not the theme.
I tried with the Twenty Seventeen theme of wordpress.
Content of the post

Post without protection active

Post with protection active
January 19, 2017 at 8:20 am #9744mbrsolution
ModeratorHi, there are a few plugins that helps you keep your br and p active. WordPress by defaults strips these HTML tags. You might like to check the following plugins WP Edit and TinyMCE Advanced.
Let me know how you go.
Regards
January 19, 2017 at 8:34 am #9745nicolomonili
ParticipantI will do some testing with these plugins.
But if the post appears correctly , and as soon as i enabled the protection of the SM plugin , the post shows problems, it looks more like a plugin problem …January 19, 2017 at 8:42 am #9746nicolomonili
ParticipantUPDATE : With TinyMCE Advanced plugin there are no differences.
January 19, 2017 at 8:54 am #9748mbrsolution
ModeratorI forgot to mention. Make sure you clear or delete any cache if you are using a cache plugin. Also clear your browser cache as well.
Regards
January 19, 2017 at 9:01 am #9749nicolomonili
ParticipantNo cache plugin.
And i also tried in an another browser.
Same result.January 19, 2017 at 9:04 am #9750mbrsolution
ModeratorOkay the plugin developers will investigate further your issue.
Thank you
January 19, 2017 at 9:48 am #9756nicolomonili
ParticipantOk thanks.
Another question. How can i show you a plugin-bug (related to wordpress) without writing it in the forum? (it’s very serious and i would not make it public).January 19, 2017 at 1:10 pm #9764mbrsolution
ModeratorIs the plugin one that we manage or develop?
January 19, 2017 at 1:23 pm #9765nicolomonili
ParticipantIs related to Simple Membership Plugin
January 21, 2017 at 4:54 pm #9795nicolomonili
ParticipantSo, how can i show you this bug?
January 23, 2017 at 2:43 am #9807admin
KeymasterI have applied a better fix for this. It will go out in the next release.
March 1, 2017 at 2:54 pm #10330nicolomonili
ParticipantHi, for this fix is changed only the class.swpm-access-control.php file ? thanks
-
AuthorPosts
- You must be logged in to reply to this topic.