Skip to:
Content
Pages
Categories
Search
Top
Bottom

My first plugin (post count)

Viewing 13 replies - 1 through 13 (of 13 total)

  • Trent Adams
    Member

    @trent

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

    Trent


    ardentfrost
    Member

    @ardentfrost

    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.


    Steven19
    Member

    @steven19

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


    Trent Adams
    Member

    @trent

    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?


    ardentfrost
    Member

    @ardentfrost

    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


    Trent Adams
    Member

    @trent

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

    Excellent!

    Trent


    topiQ
    Member

    @topiq

    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.


    Trent Adams
    Member

    @trent

    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


    ardentfrost
    Member

    @ardentfrost

    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


    topiQ
    Member

    @topiq

    thanks a lot Trent!

    btw: great plugin, ardentfrost!


    Trent Adams
    Member

    @trent

    @topiq – No problem!

    @Ardenfrost – That is very impressive!

    Trent

    Very handy! Thanks! :D


    JimmyVT
    Participant

    @jimmyvt

    Just installed this and it works wonderfully. Great job!

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