WordPress.org

Ready to get started?Download WordPress

Forums

WP-Members
[resolved] More.. (7 posts)

  1. hOBOJoE
    Member
    Posted 3 years ago #

    We were having a problem cutting off text after <!--more-->. After examining the code and our content, I realized that the word more was in the content and the plugin was picking it up instead of <!--more-->. My solution was easy, go to line 111 of wp-members-core.php and replace 111 and 112 with the following:

    $len = strpos($content, 'id="more');
    				echo "<p>".substr($content, 0, $len-6)."</p>";

    So now it will search of the tag that wordpress creates for the more link. Just thought I would share in case anyone else is having a similar issue.

    http://wordpress.org/extend/plugins/wp-members/

  2. Chad Butler
    Member
    Plugin Author

    Posted 3 years ago #

    That's sounds like a good solution; Thanks!

  3. ocding
    Member
    Posted 3 years ago #

    cbutlerjr – I'm using the plugin and all seems fine except that I can't seem to lockout users from viewing certain content on a certain page. I've inserted the "<!--more-->" tag but the content still appears to all users, not just members. Any suggestions?

  4. Chad Butler
    Member
    Plugin Author

    Posted 3 years ago #

    Sounds like you are not blocking pages. Check the plugin settings. Or you can use a custom field of "block" to block an individual page.

    Pages and posts are not the same thing in WP. The use of the 'more' tag only serves to truncate posts from being shown in full on summaries such as the home page, monthly archive, etc. Any direct content, i.e. going to a full post or a page, will be blocked based on the plugin's setting for posts and pages. The default settings that you choose for posts will effect all posts, but only posts. The default setting for pages will effect all pages, but only pages. If you need to block or unblock a post or a page from the default, that is done using the custom field.

    Hope that helps.

  5. ocding
    Member
    Posted 3 years ago #

    cbutlerjr – Thanks. Is there a list of all the custom field options?

  6. Chad Butler
    Member
    Plugin Author

    Posted 3 years ago #

    There are only two - block and unblock. You can set a value of true or 1 for either. Note: they are case sensitive.

  7. torweb
    Member
    Posted 3 years ago #

    Is it possible to separate the Login window and the window for signing up as a use. I'd like to just have login on my page and use the signup page separately after my visitor fills out a form and is redirected to that page.

    Thanks in advance

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags