Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Forum: Plugins
    In reply to: [Flamingo] Message Counter

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

    This may be frowned upon but this works for me.
    This should change the default order of the sub menus and therefore the default view will be the stored form submissions.

    Amend the following lines in the following file:

    //flamingo/admin/admin.php

    //Line 24 – replace
    /////Luxlucid ///////////
    // ‘flamingo_contact_admin_page’);
    ‘flamingo_contact_admin_page’, 1 );
    /////////////////////////

    //Line 32 – replace
    /////Luxlucid ///////////
    // ‘flamingo_contact_admin_page’);
    ‘flamingo_contact_admin_page’, 0 );
    /////////////////////////

    As always changing any code in a plug-in will mean that when it is updated 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, 11 months ago by johnrafferty.
    • This reply was modified 4 years, 11 months ago by johnrafferty.

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

    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.

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