Support » Plugins » [Plugin: NextGEN Gallery] Hooks specific to NGG?

  • Hi Alex:

    I’m going to be using your NGG for a major socialmedia project for a Fortune 50 company that launches Feb 2nd (yes, it’s a tight race to completion but I didn’t get brought in on the project until late in the game.) However I am finding that I badly need to extend NGG in order to be able to use it. And for that I ideally need NGG-specific hooks.

    For one I need to synchronize with the standard WordPress Media Library so that all photos placed in NGG are available in the Media Library as well, and I also need any photos added to posts using standard Media Library functionality to be adding into the Gallery. For this, I need hooks.

    I will be happy to add hooks and give the code back to you if you will add my modifications back into your codebase. Short term I won’t be able to come up with a complete set of hooks for all probable use-cases but I can at least identify the ones I need.

    BTW, I’m also integrating NGG with SlideShowPro and provide support for CDNs (i.e. Akamai/LimeLight/CloudFront), and if it doesn’t take too much time I’m also going to modify it to support uploading and management of videos as well.

    So please let me know if you are amenable to incorporating hooks into NGG because I’d hate to create an orphan.

    Thanks in advance for a quick response (my client’s deadline is fast approaching.)


Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi Mike,

    yes, I appreciate new hooks. You can send me patch files based on my current dev version. See link here :

    You can send them as well per email (See at my homepgae -> About)

    Cool. Can you point me to how to create a “patch” file you need?

    It’s a common feature of subversion / Tortoise. If you are not familiar with SubVersion, simply send me the changed files…

    Question: Is there a reason you don’t have a linking table between Albums and Galleries and instead just use the sortorder field? Without a linking table it’s impossible for me to write a SQL query that lists all Galleries by Album and though I can do it in PHP it is complex and non-performant.

    I’ve added about 15 lines of code where most lines where to create the table wp_ngg_album_galleries with fields id, aid, and gid as well as the code to keep them up to date. Are you okay with adding this into NGG? BTW, the code changed in /admin/install.php and /admin/album.php.

    I’ve got more to do so I’ll hold before sending to you but do please let me know if this change interests you or not.

    Another problem (which I’ve not addressed yet) is there is no way to specify sort order for the albums. Is this a desired feature? I can add it in to the database and also add in a rudimentary way to specify sorting, which I need to do for my own use. Thoughts?

    I the beginning I already created 5 tables and I decided not to create another table for the relationship between album – galleries, the sortordser filed did the trick for me in the past and was easy to handle with seralize/unseralize.

    There are some ideas for sub-albums, maybe I need to expand the structure for this case.

    About sorting : Due to the fact that albums can be sorted by drag & drop, there was no need for a defined sort order

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: NextGEN Gallery] Hooks specific to NGG?’ is closed to new replies.