• 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)
  • 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.

    *****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.

    Ignore!

    • This reply was modified 4 years, 7 months ago by johnrafferty.
    • This reply was modified 4 years, 7 months ago by johnrafferty.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding Message Counter’ is closed to new replies.