Results 1 to 3 of 3

Thread: Registered Users can use contact forms only

  1. #1
    Thread Starter
    Member
    Not a Verified Customer
    redsoxmaniac's Avatar
    Join Date
    Apr 2009
    Posts
    63
    Thanks
    0
    Thanked 1 Time in 1 Post

    Registered Users can use contact forms only

    Does anyone know how to mod the contact the form so only registered users can work this?

  2. #2
    Junior Member
    Not a Verified Customer
    Konvict's Avatar
    Join Date
    Jun 2009
    Location
    Sydney, Australia
    Posts
    39
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Registered Users can use contact forms only

    This is what you want.

    http://codex.wordpress.org/Function_...user_logged_in

    But not sure which contact form you are talking about, but for anyone who is interested in only showing stuff if a user is logged in.

    Code:
     <?php if ( is_user_logged_in() ) { ... } ?>
    Example
    Display different output depending on whether the user is logged in or not.
    Code:
    <?php
    if ( is_user_logged_in() ) {
        echo 'Welcome, registered user!';
    } else {
        echo 'Welcome, visitor!';
    };
    ?>

  3. #3
    Affiliate Member AppThemes Affiliate lexicon's Avatar
    Join Date
    Apr 2009
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Registered Users can use contact forms only

    im pretty sure he means the contact ad poster form on the right
    [url=http://MyUsedText.com]Buy and sell used textbooks![/url]

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Banning dodgy users
    By pepsi in forum ClassiPress General Discussion
    Replies: 1
    Last Post: May 6th, 2009, 02:09 PM