bbPress

Simple, Fast, Elegant

bbPress support forums » Plugins

My first plugin (post count)

(14 posts)
  • Started 1 year ago by ardentfrost
  • Latest reply from JimmyVT
  • This topic is not a support question
  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? :)

    Posted 1 year ago #
  2. Very nice! Trying it out now! How did you get the avatars to work?

    Trent

    Posted 1 year ago #
  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.

    Posted 1 year ago #
  4. Cool THX, maybe its a feature in the next Version :)

    Posted 1 year ago #
  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?

    Posted 1 year ago #
  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

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

    Excellent!

    Trent

    Posted 1 year ago #
  8. topiQ
    Member

    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.

    Posted 1 year ago #
  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

    Posted 1 year ago #
  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

    Posted 1 year ago #
  11. topiQ
    Member

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

    Posted 1 year ago #
  12. @topiQ - No problem!
    @Ardenfrost - That is very impressive!

    Trent

    Posted 1 year ago #
  13. Very handy! Thanks! :D

    Posted 1 year ago #
  14. Just installed this and it works wonderfully. Great job!

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.