Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

Content before the tag lose the formatting

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.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • January 18, 2017 at 9:18 am #9717
    nicolomonili
    Participant

    Hi,
    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 &nbsp; 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 #9733
    mbrsolution
    Moderator

    Hi, 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 #9741
    nicolomonili
    Participant

    Hi 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

    Content of the post

    Post without protection active

    Post without protection active

    Post with protection active

    Post with protection active

    January 19, 2017 at 8:20 am #9744
    mbrsolution
    Moderator

    Hi, 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 #9745
    nicolomonili
    Participant

    I 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 #9746
    nicolomonili
    Participant

    UPDATE : With TinyMCE Advanced plugin there are no differences.

    January 19, 2017 at 8:54 am #9748
    mbrsolution
    Moderator

    I 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 #9749
    nicolomonili
    Participant

    No cache plugin.
    And i also tried in an another browser.
    Same result.

    January 19, 2017 at 9:04 am #9750
    mbrsolution
    Moderator

    Okay the plugin developers will investigate further your issue.

    Thank you

    January 19, 2017 at 9:48 am #9756
    nicolomonili
    Participant

    Ok 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 #9764
    mbrsolution
    Moderator

    Is the plugin one that we manage or develop?

    January 19, 2017 at 1:23 pm #9765
    nicolomonili
    Participant

    Is related to Simple Membership Plugin

    January 21, 2017 at 4:54 pm #9795
    nicolomonili
    Participant

    So, how can i show you this bug?

    January 23, 2017 at 2:43 am #9807
    admin
    Keymaster

    I have applied a better fix for this. It will go out in the next release.

    March 1, 2017 at 2:54 pm #10330
    nicolomonili
    Participant

    Hi, for this fix is changed only the class.swpm-access-control.php file ? thanks

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy