bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Posting Form Disappears

(12 posts)
  • Started 1 year ago by greenshady
  • Latest reply from greenshady
  • This topic is not a support question

No tags yet.

  1. I just started a new site at http://booksinbed.com/wordpress/bbpress (the forum pat of the site) using bbpress.

    The problem I'm having can be found on this page:
    http://booksinbed.com/wordpress/bbpress/topic.php?id=3

    What is happening is when I exceed "The number of topics that show on each page," which was set at 15 in my config.php file, the posting form disappears.

    I am at a loss as of what to do to fix this.

    Posted 1 year ago #
  2. It was there until the 16th post was created?

    Trent

    Posted 1 year ago #
  3. Yes, the 16th post. I just tried it out on another topic. When the 16th post is created, the form disappears.

    Posted 1 year ago #
  4. I've narrowed it down to something in my header.php file in the "my-templates" directory. I'll look over it for now. I must've messed something up.

    Posted 1 year ago #
  5. Sounds strange, but compare all the files you have in my-templates/ versus what is in bb-templates/ as a reference. That would be the best advise. Let us know if you figure it out as reference for future potential problems. Good luck!

    Trent

    Posted 1 year ago #
  6. I've narrowed it down the exact problem. Well, I don't know why, but it seems to be the source. In "header.php" I include with php a file called "menu.php." Inside of "menu.php" I have my "recent entries" from my wordpress blog. When I delete this particular bit of code everything works fine.

    <div class="menu3">
    <h3 class="menuHeader">Recent Reviews</h3>
    <ul class="list">
    <?php $temp_query = $wp_query; ?>
    <?php query_posts('cat=3&showposts=10&order=ABC'); ?>
    <?php while (have_posts()) : the_post(); ?>
    <li>
    <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
    <br />Review by <?php the_author_posts_link(); ?>
    </li>
    <?php endwhile; ?>
    <?php $wp_query = $temp_query; ?>
    </ul>
    </div> <!-- menu3 -->

    When the post limit exceeds 15, is the only time this seems to be a problem. This runs fine on all the other pages, or when the post limit is 15 or below.

    Posted 1 year ago #
  7. have you checked if the next page.. because the post form comes up after all the posts..

    eg if you have 16 posts the post form will be on 2nd page.
    if you have 33 posts the post form will be on 3rd page.

    Posted 1 year ago #
  8. Yes, that's what I'm talking about. The form, which is supposed to be on the page at the end of the posts, disappears.

    Posted 1 year ago #
  9. in function post_form -
    $page == get_page_number( $topic->topic_posts + $add )

    this is probably being evaluated as false.

    i say this because this your paging is messed up..
    http://booksinbed.com/wordpress/bbpress/topic.php?id=3&page=2
    if you go to the above link the number 1 should have link in the page navigation. in your case page 2 has..

    debug the get_page_number function whats getting loose..

    Posted 1 year ago #
  10. Yeah, I see that apparently the page is acting like it's still on page 1. The only thing that's showing up from page 2 is the 16th post.

    How do you debug the "get_page_number" function?

    Posted 1 year ago #
  11. put printstatements for variables and see which variable is coming in wrong..

    Posted 1 year ago #
  12. Okay, I've done that. Here's what I get on both page 1 and page 2.

    $page = 1
    $topic = Object

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.