Support » Themes and Templates » Posting on Author Page in P2

  • 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.


Viewing 6 replies - 1 through 6 (of 6 total)
  • I have the same problem. More info.

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

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


    $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).

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

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

    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?

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

    <?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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Posting on Author Page in P2’ is closed to new replies.