Forums

Join
bbPress Support ForumsPluginsMy first plugin (post count)

Info

My first plugin (post count)

  1. It's a simple one.

    It returns the post count of the user.

    You can see it in action at http://www.rayd.org/forums2/ (you have to look at an actual topic)

    You can download it from http://faq.rayd.org/bbpress_postcount/ (link is instructions how to use it, link at bottom instructions)

    Is this something I can submit to bbpress? Or is me mentioning it here the equivalent of submitting it? :)

  2. Very nice! Trying it out now! How did you get the avatars to work?

    Trent

  3. I'm about to post it actually :)

    However, let me warn you ahead of time, it does require a single change to a core file.

  4. Cool THX, maybe its a feature in the next Version :)

  5. Just wondering, is it possible to have the plugin count only active threads? I have a count for all threads (even deleted ones) right now. Not that they shouldn't be counted because they were created, but since they are gone forever, maybe an option to count only current posts would be useful?

    Thoughts?

  6. Ok, made the change. Added a part to the query where it only counts posts whose status is 0 (which means it's not deleted or spam). It's updated on the same link from above, new version number .73a

  7. Wow...that was fast! Thanks! Believe it or not that dropped posts in my personal forum from 290 back to 266!

    Excellent!

    Trent

  8. how do i display the posts under the usernames on the left side on the forum?!
    i managed to display them below each post, but that is not nice to see.

  9. I put the plugin code under the username. Compare the following code to your post.php in your templates. Make sure you are editing post.php and placing it in /my-templates/post.php.

    <div class="threadauthor">
    <p><strong><?php post_author_link(); ?></strong><br />
    <small><?php post_author_type(); ?></small><br />
    <small><?php post_count(); ?></small></p>
    </div>

    <div class="threadpost">
    <div class="post"><?php post_text(); ?></div>
    <div class="poststuff"><?php _e('Posted:'); ?> <?php bb_post_time(); ?> <a href="<?php post_anchor_link(); ?>">#</a> <?php post_ip_link(); ?> <?php post_edit_link(); ?> <?php post_delete_link(); ?></div>
    </div>

    This is the entire post.php, but obviously where I have the code is near the top.

    Trent

  10. The change wasn't hard, just added an additional check to the SQL query and I apparently saw your post soon after you made it...

    Looks impressive though doesn't it? You posted a request and 24 minutes later, I filled it? :D

  11. thanks a lot Trent!
    btw: great plugin, ardentfrost!

  12. @topiQ - No problem!
    @Ardenfrost - That is very impressive!

    Trent

  13. Very handy! Thanks! :D

  14. Just installed this and it works wonderfully. Great job!

  15. You must log in to post.