Skip to:
Content
Pages
Categories
Search
Top
Bottom

Parent Categories, listings on the front-page…


  • Jim R
    Participant

    @jim-r

    As you look at your forum’s front-page, you see the Forum name, the number of Topics and the number of Posts across the table. If the forum created is a Parent Category, I’d like the number of Topics and the number of Posts to just be blank.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Category forums are already blank. Did you declare them as a category when they were already holding topics?


    Jim R
    Participant

    @jim-r

    No…on the front-page, right when you enter the forum, it lists all the boards/forums. I have Parent Categories set up, and in the column of Topics and Posts there are zeros listed. I’d like those to just be blank instead of zero.

    Which version of bbPress are you using?

    I use 1.0.2 on http://needaproject.com/discussion/

    Have a look, I have blanks over there


    Peter A. Gebhardt
    Participant

    @starship-trooper

    Have a look here (if you are using 0.9.0.5):

    https://bbpress.org/plugins/topic/forum-is-category/#post-1495

    I’m on my way to implement it for my forum and will report later, if the _ck_ proposed “Add Topic” patch does work – just kidding … ;-)


    Jim R
    Participant

    @jim-r

    I’m using 1.02 and will take a look, ashfame. : )


    Jim R
    Participant

    @jim-r

    Yes ashfame…THAT!!! That’s what I want. : )

    I’m using the guangzhou theme, as it best matches my WP theme. I’m just trying to find the part of the cod where I can manipulate that. Then if I need helping making sense of the code, I’ll be back, but at least I’ll try it on my own. : )

    I have added a Link Category menu from my WP to my bbPress menu if anyone is interested. It’s from the WP template tag system. If anyone is interested in that.

    The thing is I did nothing other than making forums as forum category. They are coming up as blank by themself and thats the way they should be. Can we have a link to your forums?

    “Forums is category” comes standard in bbPress v. 1.0+… I think you just have to mark them as categories:

    http://hoosierhoopsreport.com/bbpress/bb-admin/admin-base.php?plugin=forum_is_category_admin_page

    Try that, and see if your theme makes the automatic adjustment?


    Jim R
    Participant

    @jim-r

    They don’t come up automatic, which is why I’m posting. It’s probably theme related, but there doesn’t seem to be much in my theme dealing with that other than calling functions from a core file.

    http://hoosierhoopsreport.com/bbpress

    Right now I have hashes in place of the numbers, just messing around. : )


    chrishajer
    Participant

    @chrishajer

    That theme is missing this:

    <?php if (bb_get_forum_is_category()) : ?>

    That skips the counts when the forum is a category. Looks like they need to update their theme.


    Jim R
    Participant

    @jim-r

    Where do I put that?


    chrishajer
    Participant

    @chrishajer

    If the creator of that theme is not going to update it, I think I would compare the stock kakumei front-page.php and the front-page.php from this theme to see where the differences lie. There are lots of differences, but only a few that apply to your count issue.


    Jim R
    Participant

    @jim-r

    Chris, great advice. The key isn’t just adding the statement, but the whole IF Loop. I’m sure you knew that, just being explicit for those like me who need further explanation when they don’t see it right away.

    Now I have to match it up theme wise…I’d dig the gray background.

    Thanks!

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