WordPress.org

Ready to get started?Download WordPress

Forums

Posting on Author Page in P2 (7 posts)

  1. jacob00
    Member
    Posted 5 years ago #

    I am trying to duplicate the posting feature seen on the index.php page of P2 on the author.php page. It's easy enough to create the post form and make that work, but I'm wondering how to make the Ajax work so that the posts update on the author page as well.

    Thx

  2. niska
    Member
    Posted 5 years ago #

    I have the same problem. More info.

  3. niska
    Member
    Posted 5 years ago #

    I'm thinking of changing this line in functions.php:

    $page_options['is_first_front_page'] = (int)(is_front_page() && !is_paged() );

    to

    $page_options['is_first_front_page'] = (int)(is_author($user_ID) && !is_paged() );

    Do you think that it will work? Or do you have another solution?

    I'm hoping a future version will let us decide if we want to post on index.php or author.php (or maby both).

  4. noel
    Member
    Posted 5 years ago #

    Thanks for the suggestions. They'll definitely be taken into consideration when working on the next revision.

  5. modifiedcontent
    Member
    Posted 4 years ago #

    Did anyone find a solution for this? Or getting the post-form to work on a page?

  6. jmunn
    Member
    Posted 4 years ago #

    I am curious too. I thought this was working at one point with an earlier version. I'm on 1.1.3 and having this does not work. Am I crazy?

  7. caleb45
    Member
    Posted 4 years ago #

    You can change index.php:
    <?php if ( p2_user_can_post() && !is_archive() ) : ?>

    To:
    <?php if ( p2_user_can_post() && is_author($user_login) ) : ?>

    But I haven't been able to make the Ajax auto refresh work on the author page yet. If anyone has any ideas I'd love to hear.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags