• Resolved paynec

    (@paynec)


    How do I require users to be signed in to be able to post blogs? I still want users who are not signed in to be able to see posts, just not post them. The reason I want users to be signed in to be able to post is because I have Post Pay Counter plugin and I need to be able to associate the post with a member so that I can pay them a percentage of their ad revenue.
    T tried this html code on the site but it did nothing on my site but display as text
    if (is_user_logged_in()) {
    // the user is logged in, so display the submission form
    if (function_exists(‘user_submitted_posts’)) user_submitted_posts();
    } else {
    // the user is not logged in, so do something else
    echo ‘Please log in to submit posts!’;
    }

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Here is one way to do it:

    [usp_visitor]
    	[usp-login-form]
    [/usp_visitor]
    
    [usp_member]
    	[user-submitted-posts]
    [/usp_member]

    So if the user is logged in, the submit-post form will be displayed. Or if the user is not logged in, the login/register form will be displayed.

Viewing 1 replies (of 1 total)
  • The topic ‘Signed in members for posts’ is closed to new replies.