Title: Please add code from Thaddeus Aid
Last modified: August 22, 2016

---

# Please add code from Thaddeus Aid

 *  [Matthias](https://wordpress.org/support/users/matthias70/)
 * (@matthias70)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/please-add-code-from-thaddeus-aid/)
 * Hi c.bavotan,
    I found some additional code from Thaddeus Aid on your site [http://bavotasan.com/2014/bbpress-new-topics-plugin/](http://bavotasan.com/2014/bbpress-new-topics-plugin/)
   The code shows new Threads and Replies for logged in users, too. Would be great
   if you can add it to your plugin. Here is the code: [http://pastebin.com/Cn1myRDE](http://pastebin.com/Cn1myRDE)
 * Thanks
    Matthias
 * [https://wordpress.org/plugins/bbpress-new-topics/](https://wordpress.org/plugins/bbpress-new-topics/)

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

 *  Thread Starter [Matthias](https://wordpress.org/support/users/matthias70/)
 * (@matthias70)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/please-add-code-from-thaddeus-aid/#post-5791147)
 * I forgot to ask for an useful addition. At the moment the new flag is only shown
   in the subforums.
    What about an additon that shows the new flag on the forums
   above. So a user can click through to the new replies…. I wonder, why nobody 
   asked for a feature like this in bbpress…
 * Thanks
    Matthias
 *  [Jakob Helmer](https://wordpress.org/support/users/jakobuz/)
 * (@jakobuz)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/please-add-code-from-thaddeus-aid/#post-5791399)
 * yep, I agree totally on both your suggestions Matthias
 *  Plugin Author [bandicootmarketing](https://wordpress.org/support/users/tinkerpriest/)
 * (@tinkerpriest)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/please-add-code-from-thaddeus-aid/#post-5791405)
 * Added the code to the latest update.
 *  Thread Starter [Matthias](https://wordpress.org/support/users/matthias70/)
 * (@matthias70)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/please-add-code-from-thaddeus-aid/#post-5791406)
 * Hi C. Bavota,
    thanks for the update. The new flag shows no now even beside the
   forum title. Thats great! But when there are 5 new threads in the forum there
   are 5 new flags shown beside the forum title. One new flag besidé the title would
   be enough 😉 Matthias
 *  [sd17](https://wordpress.org/support/users/sd17/)
 * (@sd17)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/please-add-code-from-thaddeus-aid/#post-5791407)
 * Matthias70:
 * I had the same issue. I’m not sure if this is right, but it works.
 * In the function bbp_theme_before_forum_title() add `break;` at the end of foreach.
 *     ```
       foreach( $result as $row ) {
       				if ( in_array( (int) $row->post_id, array_filter( $new_topics_array ) ) ) {
       					echo '<span class="new-topic-notifier">' . __( 'New', 'new-topics' ) . '</span> ';
       					break;
       				}
       			}
       ```
   
 *  Thread Starter [Matthias](https://wordpress.org/support/users/matthias70/)
 * (@matthias70)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/please-add-code-from-thaddeus-aid/#post-5791408)
 * [@sd17](https://wordpress.org/support/users/sd17/) your code suggestion works
   fine.
    Thanks Matthias

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

The topic ‘Please add code from Thaddeus Aid’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bbpress-new-topics_fbfbf8.svg)
 * [bbPress New Topics](https://wordpress.org/plugins/bbpress-new-topics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bbpress-new-topics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bbpress-new-topics/)
 * [Active Topics](https://wordpress.org/support/plugin/bbpress-new-topics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bbpress-new-topics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bbpress-new-topics/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [Matthias](https://wordpress.org/support/users/matthias70/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/please-add-code-from-thaddeus-aid/#post-5791408)
 * Status: not resolved