Skip to:
Content
Pages
Categories
Search
Top
Bottom

Posting Form Disappears

Viewing 11 replies - 1 through 11 (of 11 total)
  • It was there until the 16th post was created?

    Trent


    Justin Tadlock
    Participant

    @greenshady

    Yes, the 16th post. I just tried it out on another topic. When the 16th post is created, the form disappears.


    Justin Tadlock
    Participant

    @greenshady

    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.

    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


    Justin Tadlock
    Participant

    @greenshady

    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.


    so1o
    Participant

    @so1o

    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.


    Justin Tadlock
    Participant

    @greenshady

    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.


    so1o
    Participant

    @so1o

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


    Justin Tadlock
    Participant

    @greenshady

    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?


    so1o
    Participant

    @so1o

    put printstatements for variables and see which variable is coming in wrong..


    Justin Tadlock
    Participant

    @greenshady

    Okay, I’ve done that. Here’s what I get on both page 1 and page 2.

    $page = 1

    $topic = Object

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.
Skip to toolbar