NextGEN Gallery with WPMU support

27Oct07

I finished the first WPMU modification for NextGEN Gallery based on the changes from Rowan Crane. I’m tested this here locally and it works so far. If somebody is interested to test this in live you can checkout the current version at my GoogleCode project .

I’m not very familiar with WPMU blogs , so leave a comment if you have ideas what features could be added for a seamless WPMU integration…

 Changes for WPMU :

  • Integrated quota check (and support of Z-Space Upload Quotas)
  • Remove uninstall button for blog user
  • Remove server settings
  • Gallery path set to blog.dir and readonly
  • New Site-Admin page to enable/disable functions

65 Responses to “NextGEN Gallery with WPMU support”


  1. Gravatar Icon 1 Bobsch Posted October 28th, 2007 - 12:38 am

    E-Mail sent.

    Once again: Alex, you rock! ;-)

  2. Gravatar Icon 2 Richard Bui UNITED STATES Posted October 28th, 2007 - 6:26 am

    Cool news! Email sent.

  3. Gravatar Icon 3 Andrea_R Posted October 28th, 2007 - 3:29 pm

    I’ve got a new install in the works - I’d love to test it.

  4. Gravatar Icon 4 Sherin Posted October 28th, 2007 - 6:52 pm

    Hello :) ,

    It is an amazing work. I like it very much.I was searching for a long time how to add a good gallery to my blog. At last I got it. You are the true opensource geeks too. Convey my regards to all, those who worked beyond the development. You see the demo from here.

    http://www.sherin.in/

  5. Gravatar Icon 5 David Silverthorn UNITED STATES Posted October 28th, 2007 - 11:45 pm

    You are amazing! I don’t think there are any photogallery plugins that natively support WPMU yet (at least, I have yet to find any). I’ve been surviving off of modified builds of various scripts for about a year now, latest of which has been NextGen.

    As for features, I can’t think of any features that need to be added besides quota check and better integration with WPMU, which I see you are doing.

    Good luck with the development!

  6. Gravatar Icon 6 James Farmer Posted October 29th, 2007 - 12:48 am

    Would love to test it too :)

  7. Gravatar Icon 7 Rowan Posted October 29th, 2007 - 12:02 pm

    Good to see this :) Am quite happy to give it a whirl on my live site.

  8. Gravatar Icon 8 ovidiu ROMANIA Posted October 29th, 2007 - 2:59 pm

    ready for testing too :-) mail to: ovizii at zice dot ro

  9. Gravatar Icon 9 Allan Smee Posted October 30th, 2007 - 2:12 am

    Would like to test it as well. NextGen is the best image plugin I have come cross for standard wp :)

  10. Gravatar Icon 10 Kuan Posted October 30th, 2007 - 9:44 am

    Good, I like to test it. Email sent!!

  11. Gravatar Icon 11 ctanner Posted October 30th, 2007 - 4:10 pm

    I would like to test it what is your email address?

  12. Gravatar Icon 12 Kristin NORWAY Posted November 1st, 2007 - 1:55 pm

    I would really like to test it, actually I was just lurking around your code to figure out to make it work nicely with MU..

  13. Gravatar Icon 13 L Posted November 3rd, 2007 - 2:50 pm

    I already have NextGEN Gallery with some modifications to make it work with Wordpress MU

    I hvaeto uninstall to put this version?

  14. Gravatar Icon 14 Toste DENMARK Posted November 4th, 2007 - 9:21 pm

    I would very much like to test you WPMU :D

  15. Gravatar Icon 15 Philipp Posted November 5th, 2007 - 2:13 pm

    Hi!

    It’s soo good to see this development!

    mail is on the way!

    Cheers Phil

  16. Gravatar Icon 16 jalien Posted November 6th, 2007 - 1:14 am

    Tried nextgen with my regular wordpress site. Great job. I would love to test it out on WPMU too.

  17. Gravatar Icon 17 Olaf GERMANY Posted November 6th, 2007 - 9:48 am

    Hi Alex,
    ich spiel auch gerad mal mit dem MU rum. Kannst du mir deine Alpha mal zukommen lassen!?

    Danke, Olaf

  18. Gravatar Icon 18 Dennis Morhardt GERMANY Posted November 7th, 2007 - 9:58 pm

    Würde mich auch über das Zukommen dieser netten Sache freuen

    Gruß Dennis

  19. Gravatar Icon 19 jordi UNITED STATES Posted November 7th, 2007 - 10:49 pm

    your plugin is making a big conflict with the “xmlrpc.php”, when try to publish via microsfot word, or Flickr, the program crash, but the post is done, :S. If i disable the plugin all works fine… Greetings

  20. Gravatar Icon 20 gulflee MALAYSIA Posted November 9th, 2007 - 2:07 pm

    i try the wp version in wpmu. when new user try to use it, the tab only appear SETUP and Roles is there any setting i had did wrong?

    And i would like try WPMU version. tq

  21. Gravatar Icon 21 Florin NETHERLANDS Posted November 10th, 2007 - 11:46 am

    I would like to test the plugin, I’m in the middle of migrating to a WPMU setup, so perfect timing.

  22. Gravatar Icon 22 haythoo BAHRAIN Posted November 10th, 2007 - 3:11 pm

    Wao

    I want to test it…
    great!

  23. Gravatar Icon 23 gulflee MALAYSIA Posted November 11th, 2007 - 8:42 am

    hi alexraba, “the wpmu suppoter”, i had received the wpmu nextgen gallery plugin. i will try it, Tq

  24. Gravatar Icon 24 D.M. NETHERLANDS Posted November 13th, 2007 - 12:22 am

    This plugin is great! I got one question though:
    Will it be possible for you to add some flickr functionality into your plugin?

    Regards,
    DM

  25. Gravatar Icon 25 Rafik Posted November 13th, 2007 - 12:36 am

    @DM : no sense. NextGEN is a real gallery.

  26. Gravatar Icon 26 D.M. NETHERLANDS Posted November 13th, 2007 - 1:43 am

    @ Rafik.. duh?

  27. Gravatar Icon 27 alex.rabe Posted November 13th, 2007 - 9:22 am

    What flickr functionality do you mean ? Import of functions ?

  28. Gravatar Icon 28 D.M. NETHERLANDS Posted November 13th, 2007 - 9:50 am

    Thanks for your reply Alex. I mean being able to display a set of pictures from flickr as a gallery. I know there are other plugins out there which should do the thing, but they seem to cause problems. For instance the slickr plugin just displays an empty options screen..

  29. Gravatar Icon 29 alex.rabe Posted November 13th, 2007 - 10:08 am

    Not in the next step… but maybe I get some more time then I will have a look for it

  30. Gravatar Icon 30 gulflee MALAYSIA Posted November 15th, 2007 - 8:07 am

    hi alex; i had try on the “nextgen gallery for wpmu” is great, and i dun see any-prob now, i going to let user to have gallery=1, and blogs.dir/ID/files/ and a picture file on default meaning; once active or when a new user created, the dir, picture and gallery will auto insert, is it posible?

  31. Gravatar Icon 31 klaus Posted November 16th, 2007 - 3:05 pm

    Hi Alex,

    Great plugin, I really would like to use it for WPMU.
    I installed 0.73 on MU, but got an error message in the dahsboard, stating that is only runs from WP 2.1 and higher. I now use WMPMU 1.2.5

    I would like to do some testing too, and to get this plugin up and running.

  32. Gravatar Icon 32 Pascal FRANCE Posted November 16th, 2007 - 5:06 pm

    Hello,

    sorry my english is not very good.

    I would like to test NextGen Gallery with WPMU support.

    I have Wpmu 1.2.5

    thank you

  33. Gravatar Icon 33 alex.rabe GERMANY Posted November 17th, 2007 - 12:58 pm

    @Pascal & Klaus
    You can download the trunk of my Google Code Project (see link), it’s the latest version with WPMU support. But I must note that it’s only support WPMU 1.3

  34. Gravatar Icon 34 pupster Posted November 23rd, 2007 - 1:15 am

    I’m trying to set this up with wpmu 1.3. I’ve installed it, but when try to create a gallery or upload pics I get the msg

    Directory /data/htdocs/mytestdir/gallery didn’t exist. Please create first the main gallery folder !

    But I do have a dir Directory /data/htdocs/mytestdir/gallery, and permissions are set on it for 777.

  35. Gravatar Icon 35 alex.rabe GERMANY Posted November 23rd, 2007 - 8:16 am

    @Pupster : do you use the trunk version from my GoogleCode ?

  36. Gravatar Icon 36 pupster Posted November 23rd, 2007 - 10:54 am

    Not sure if was the trunk version. It was from http://code.google.com/p/nextgen-gallery/downloads/list

    nextgen-gallery.0.73.zip

  37. Gravatar Icon 37 alex.rabe GERMANY Posted November 23rd, 2007 - 1:20 pm

    WPMU features are only in trunk ! You need to checkout them…

  38. Gravatar Icon 38 gulflee MALAYSIA Posted November 23rd, 2007 - 5:55 pm

    not i got the problem. nextgen wpmu cannot auto activate for every new user ? can help?<:)

  39. Gravatar Icon 39 alex.rabe GERMANY Posted November 23rd, 2007 - 6:36 pm
  40. Gravatar Icon 40 pupster Posted November 23rd, 2007 - 10:20 pm

    Okay I found and installed the trunk and am still getting the following:

    Directory /data/htdocs/mystestdir/gallery didn’t exist. Please create first the main gallery folder!

    But /data/htdocs/mystestdir/gallery does exist.

    There’s no readme file in the trunk. What permissions do I need to change? /data/htdocs/mystestdir/gallery is 777, but what about the /wp-content/plugins/nextgen-gallery files/dirs ?

  41. Gravatar Icon 41 pupster Posted November 23rd, 2007 - 10:26 pm

    never mind. I had to deactive the old plugi and activate the new. Then I needed to give permissions to the blog files in blog.dir

  42. Gravatar Icon 42 sernak plywood TURKEY Posted November 24th, 2007 - 1:25 pm

    oo Alex thank you

  43. Gravatar Icon 43 gulflee MALAYSIA Posted November 26th, 2007 - 11:35 am

    hi alex, i had install http://firestats.cc/wiki/WPMUPluginCommander
    the plugins did active only “Setup” is available. I had check the wp table the wpdb-> table did not create ngg-album, ngggallery …etc. but when user click manualy the plugin runs great. why?

  44. Gravatar Icon 44 gulflee MALAYSIA Posted December 1st, 2007 - 10:43 am

    hi, please comment at my way,: i had remove the function checking the plugins is active or not-active in ngg_install.php, and use the wpmuplugincommander to active the plugins, it works.

  45. Gravatar Icon 45 alex.rabe GERMANY Posted December 1st, 2007 - 10:58 am

    I will have a look if I can optimze it. So that NGG didn’t require the PluginCommander

  46. Gravatar Icon 46 julius Posted December 1st, 2007 - 5:38 pm

    hi,
    im confused on this one

    add a gallery and upload some images (the main gallery folder must have permission 777)

    do i have to make a new folder named “gallery”? and attrib to 777?

    please help

    thanks

  47. Gravatar Icon 47 alex.rabe GERMANY Posted December 1st, 2007 - 5:53 pm

    Correct

  48. Gravatar Icon 48 Peter UNITED STATES Posted December 2nd, 2007 - 9:57 am

    Hi!

    First of all, we want to thank you for such an excellent plugin. We use it on our regular WordPress installs and it’s just awesome.

    We are setting a new blog service at centralchannel.com and would like to implement gallery in it.

    I got the version from trunk and copied it over to /plugins/. I can see gallery detected by plugin commander and also the admin page for nextgen.

    I set the path to ****/wp-content/blogs.dir/.

    The plugin was activated via plugin manager for all users.

    But yet, users see the gallery option in the menu, but the only thing in there is just “reset options”.

    Also, we modified wpmu so that file directories for users are in MD5 hashed dirs:

    /blogs.dir/e4/da/3b/7f/bb/ce/23/45/d7/77/2b/06/74/a3/18/d5/files/

    This is to overcome file system limitations…

    Anything we are missing? There is a gallery dir inside blogs.dir set to 777…

    Also, if you’d like access to our servers to further test the software, let us know.

    Peter :)

  49. Gravatar Icon 49 alex.rabe GERMANY Posted December 3rd, 2007 - 7:25 pm

    @Peter

    Why do you need this MD5 for the blog.dir ?
    About the “only reset setting” issue : Maybe the roles are not set when activate.

  50. Gravatar Icon 50 Mello UNITED STATES Posted December 3rd, 2007 - 8:35 pm

    I already have a couple blogs running under one user right now. Would I be able to use this modification and still use the current photos I have up .. I’d hate to have to modify all of them, I guess I could just change the dirs. in php edit manually.

  51. Gravatar Icon 51 Peter UNITED STATES Posted December 4th, 2007 - 3:36 am

    Hi Alex,

    A lot of filesystems, including ext3, have a limit of 32,000 directories within a directory.

    Thus, if you reach that number of directories, WordPress can’t create more directories within blogs.dir and thus no new blogs.

    By MD5ing the blog ID, it creates a directory tree with a 16^6 number of possible directories under which blog dirs are organized. Essentially it overcomes that 32K barrier and increases the number of possible blogs to about 16 million.

    There are code modifications for this at the wpmu forum.

    This is also the problem why there is a limit of the number of tables mysql can have, because it can’t create that many files within the database’s directory. If the tables were organized within a MD5 hash-type directory tree, the limitation would disappear.

    As for the problem with the “only reset issue”, do you think then this is a problem of Plugin Commander?

    Peter :)

  52. Gravatar Icon 52 gulflee MALAYSIA Posted December 5th, 2007 - 8:42 am

    hi, when i take of ngg_install.php

    in other for wpmu to add table for wp_X_nggXXXXX by default.

    // Check for capability
    ** // if ( !current_user_can(’activate_plugins’) )
    ** // return;

    this will run but! when i click Gallery–> Manage gallery –> edit(one of gallery) –> and click save changes the path: will change to other path ?? why? tq for comment

  53. Gravatar Icon 53 Arrgyle Posted December 5th, 2007 - 7:24 pm

    I have uploaded the latest trunk to my wordpress mu site in the plugins folder and set the permissions to 777.

    When I try to activate the plugin for one of the sites, it still tells me I need WP 2.1 or higher and will not activate.

    Any suggestions?

  54. Gravatar Icon 54 alex.rabe GERMANY Posted December 5th, 2007 - 7:47 pm

    @Peter
    I need to have a look for the activation again. Because in this moment the roles for the user are created (and maybe for WPMU it must be changed)

    @guflee
    Do you use realley the lasted trunk ? I used the

    for the path and this was wrong, I need to change it back to “readonly”

    @Arrgyle
    Do you use WPMU 1.3 ?

  55. Gravatar Icon 55 gulflee MALAYSIA Posted December 13th, 2007 - 7:49 am

    hi alex,
    i m just a beginner so i havent look on the trac trunk. I m still looking on it, and one question about “nextgen gallery” Gallery path on admin what you mean by %BLOG_ID% places-holder, i try to edit it to “wp-content/blog.dir/%BLOG_ID%/ this can’t work?

  56. Gravatar Icon 56 gulflee MALAYSIA Posted December 14th, 2007 - 12:51 pm

    sorry for comment 4554, delete it if u want and this comment too, and can you describe more on the comment u write on 4435

  57. Gravatar Icon 57 italways NETHERLANDS Posted January 6th, 2008 - 5:58 pm

    just a quick question, if I wanna wpmu support, up to now, I should download Version 0.64, is it right?

  58. Gravatar Icon 58 cachak Posted February 10th, 2008 - 9:34 am

    i have alerady install in wpmu but error in upload file
    the message is :
    Directory /home/xxxx/public_html/wp-content/blogs.dir/1/files/test contains no pictures

    and file not upload

    Thanks

  59. Gravatar Icon 59 Edin Posted February 21st, 2008 - 1:49 am

    I have the same error where it wont upload a file in the Add gallery > Upload images section.

    It seems that it’s a firefox specific bug because it works fine in ie7.

    Any idea’s what could be causing the problem?

    Thanks,

    Edin

  60. Gravatar Icon 60 Dan UNITED STATES Posted February 25th, 2008 - 9:37 pm

    Hi Alex,

    I’ve installed the latest version WPMU support. The gallery works fine as an Administrator. However, when a subscriber attempts to create a new album, the folder is created on the server, but when the user attempts to upload photos, the album is not in the drop-down and can’t be selected.

    Any help you can offer would be greatly appreciated.

    Thanks,

    Dan

  61. Gravatar Icon 61 emile FRANCE Posted February 28th, 2008 - 11:58 am

    hello
    i’m interessted to test this version
    where can i download it?

    sorry for my english…

  62. Gravatar Icon 62 emile FRANCE Posted February 28th, 2008 - 1:58 pm

    i have the same problem dans Edin it doesn’t work with firefox

  63. Gravatar Icon 63 alex.rabe Posted February 28th, 2008 - 5:25 pm

    @All

    version 0.8x contain now the core WPMU support, please report any problems in the forums. I will close here comments.

Who's linking?

  1. 1 inside GIGALinux // Weblog // WordPress MU Newsflash GERMANY Pingback on Nov 8th, 2007
    "[...] NextGEN Gallery with WPMU support (vom 27. Oktober) [...] "
  2. 2 klia.de » Blog Archive » Bildergalerie in Wordpress — eine schwierige Sache GERMANY Pingback on Jan 26th, 2008
    "[...] werde ich auf NextGen-Gallery setzten, das hat schicke effekte, bietet MultiSite-Unterstützung und ist nicht so kompliziert und [...] "
Comments are currently closed.