Title: [Plugin: NextGEN Gallery] postboxes
Last modified: August 19, 2016

---

# [Plugin: NextGEN Gallery] postboxes

 *  [ch3](https://wordpress.org/support/users/ch3/)
 * (@ch3)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-postboxes/)
 * I am duplicating some menus in order to add some extra functionality in this 
   plugin. The core functionality is there, but I have a problem with postboxes.
   
   In the nggallery-manage-gallery&mode=edit page, the gallery settings can open
   and close. After I duplicated the code for my purposes, I can’t get this feature
   to work, as the script errors with ‘postboxes is not defined ‘
 * I was wondering where are those defined? I’ve searched the entire plugin directory
   and they only exist in the jQuery script within manage-images.php
 *     ```
       jQuery(document).ready( function() {
       	// close postboxes that should be closed
       	jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed');
       	postboxes.add_postbox_toggles('ngg-manage-gallery');
   
       });
       ```
   
 * Also, I know this is connected to a wordpress option in the DB, but I don’t mind
   using one option for both gallery postbox and my extension.
 * thanks
 * [http://wordpress.org/extend/plugins/nextgen-gallery/](http://wordpress.org/extend/plugins/nextgen-gallery/)

The topic ‘[Plugin: NextGEN Gallery] postboxes’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [ch3](https://wordpress.org/support/users/ch3/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-postboxes/)
 * Status: not resolved