Title: Adding Message Counter
Last modified: April 3, 2020

---

# Adding Message Counter

 *  [Masidus](https://wordpress.org/support/users/masidus/)
 * (@masidus)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/adding-message-counter/)
 * Hello,
 * Thank you for the amazing plugin however I am facing one major issue – there 
   is no message counter for Flamingo which makes it evident that you have received
   messages/the inbox contains messages and this is causing everyone in the business
   to miss communications.
 * Many other plugins such as the WooCommerce ‘Orders’ tab in the left hand admin
   sidebar have a simple red circle containing a number to display how many orders
   are outstanding.
 * A similar concept would be amazing as this is a drawback which may cause us to
   look for other options.
 * Thanks again! 🙂

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

 *  [johnrafferty](https://wordpress.org/support/users/johnrafferty/)
 * (@johnrafferty)
 * [6 years ago](https://wordpress.org/support/topic/adding-message-counter/#post-12712592)
 * This may be frowned upon but this works for me.
    Copy the following to the lines
   in the following file:
 * //flamingo/admin/admin.php
 * //Line 12 – add
    /////Luxlucid /////////// Flamingo_Inbound_Message::find( array(‘
   post_status’ => ‘any’,) ); $posts_in_inbox = Flamingo_Inbound_Message::$found_items;/////////////////////////
 * //Line 15 – replace
    // __( ‘Flamingo’, ‘flamingo’ ), /////Luxlucid ///////////
   __( ‘Flamingo <span class=”awaiting-mod”>’ . $posts_in_inbox . ‘</span>’, ‘flamingo’),/////////////////////////
 * As always changing any code in a plug-in will mean that when it is update the
   code will be overwritten. The best solution would be if the original author could
   add the function officially.
 *  [johnrafferty](https://wordpress.org/support/users/johnrafferty/)
 * (@johnrafferty)
 * [6 years ago](https://wordpress.org/support/topic/adding-message-counter/#post-12713085)
 * *****Expanded to only show if flamingo contains posts!*****
 * This may be frowned upon but this works for me.
    Copy the following to the lines
   in the following file:
 * //flamingo/admin/admin.php
 * //Line 12 – add
    /////Luxlucid /////////// Flamingo_Inbound_Message::find( array(‘
   post_status’ => ‘any’,) ); $posts_in_inbox = Flamingo_Inbound_Message::$found_items;
   $notification_bubble =”; if (!empty($posts_in_inbox)){ $notification_bubble =“
   <span class=’awaiting-mod’>” . $posts_in_inbox . “</span>”; } /////////////////////////
 * //Line 15 – replace
    ///////////////////////// /////Luxlucid /////////// // __(‘
   Flamingo’, ‘flamingo’ ), __( ‘Flamingo’ . $notification_bubble, ‘flamingo’ ),/////////////////////////
 * As always changing any code in a plug-in will mean that when it is update the
   code will be overwritten. The best solution would be if the original author could
   add the function officially.
 *  [johnrafferty](https://wordpress.org/support/users/johnrafferty/)
 * (@johnrafferty)
 * [6 years ago](https://wordpress.org/support/topic/adding-message-counter/#post-12714926)
 * Ignore!
    -  This reply was modified 6 years ago by [johnrafferty](https://wordpress.org/support/users/johnrafferty/).
    -  This reply was modified 6 years ago by [johnrafferty](https://wordpress.org/support/users/johnrafferty/).

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

The topic ‘Adding Message Counter’ is closed to new replies.

 * ![](https://ps.w.org/flamingo/assets/icon-128x128.png?rev=1540977)
 * [Flamingo](https://wordpress.org/plugins/flamingo/)
 * [Support Threads](https://wordpress.org/support/plugin/flamingo/)
 * [Active Topics](https://wordpress.org/support/plugin/flamingo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flamingo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flamingo/reviews/)

## Tags

 * [communications](https://wordpress.org/support/topic-tag/communications/)

 * 3 replies
 * 2 participants
 * Last reply from: [johnrafferty](https://wordpress.org/support/users/johnrafferty/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/adding-message-counter/#post-12714926)
 * Status: not resolved