WordPress.org

Ready to get started?Download WordPress

Forums

"Register to read more" plugin? (5 posts)

  1. homerm06
    Member
    Posted 5 years ago #

    I"m looking for a plugin that will only do a preview kind of a post with a link below it that says "Register or login to read more...."

    Anything like that thus far that will work with WordPress 2.7.1?

  2. PiggyGirl
    Member
    Posted 5 years ago #

    I used to do this on my old blog, but I haven't tested this code in awhile. It should show an excerpt (and you can use a plugin to lengthen the default) when not logged in. Add this to single.php:

    <phpcode>
    <?php global $user_login, $user_identity;
    get_currentuserinfo();
    if ($user_login) :
    ?>
    <div class="story">

    <span class="right"><?php edit_post_link('Edit','[',']'); ?> </span>

    <?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?>
    </div>

    <?php else : ?>

    <?php the_excerpt(); ?>
    [Login to View Full Entry]

    <?php endif; ?>
    </phpcode>

  3. focused313
    Member
    Posted 5 years ago #

    I'm looking for the exact same thing. A plugin, hack, or code that works the same way typical web forums do, in which case, you can completely see the blog's index page, but to go to an actual single page post, you have to be logged in.

  4. focused313
    Member
    Posted 5 years ago #

    **additionally, it would be great if wordpress could implement an option under the Visibility editor: that allows for the Guest/Registered Members option.

  5. focused313
    Member
    Posted 5 years ago #

    **update, after a few hours with google, I've found a plugin that seems to give me exactly what I was looking for.

    User Access Manager.
    http://wordpress.org/extend/plugins/user-access-manager/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.