Hello,

i am creating a wordpress wordpress plugin that presents a type of dashboard, filled with custom metaboxes. I could obtain the open/hide/close and drag handles working correctly howeaver these screen personalization aren't saved: after i reload the page, everything would go to default config (really, all metaboxes opened up and sorted following a add_meta_box order in code).

I added this nonce code to my admin page, but nothing changes:

                <form action="" method="">
                    <?php wp_nonce_field('dice-roller-metaboxes-settings'); ?>
                    <?php wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false ); ?>
                    <?php wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false ); ?>
                    <input type="hidden" name="action" value="save_dashboard_settings" />   
                </form>

Did i possibly didn't remember another thing?

tnx ahead of time and sorry for my bad british, gabriele

you have to then add javascript to the foot of the page that shows the metaboxes to handle ajax save from the positions

    <script type="text/javascript">
            //<![CDATA[
            jQuery(document).ready( function($) {
                // close postboxes that should be closed
                $('.if-js-closed').removeClass('if-js-closed').addClass('closed');
                // postboxes setup
                postboxes.add_postbox_toggles('<?php echo $hook; ?>');
            });
            //]]>
     </script>

make sure to change $hook within the add_postbox_toggles line towards the correct value for that page you are on