• First of all, hello! I am rather new to WordPress and not terribly versed in PHP (most of my programming has been in Python and IDL). As of yet I have not found a suitable plugin to add galleries to member profiles in Buddypress. So, I have begun working on a plugin to integrate NGG galleries with Buddypress profiles.

    I started with this for a base:
    http://www.themightymo.com/2012/01/25/how-to-add-a-new-menu-item-to-the-buddypress-component-menu/

    Here is my code at the moment.

    [ please use pastebin if you are posting more than ten lines of code – see http://codex.wordpress.org/Forum_Welcome#Posting_Code ]

    The code works, sort of…In its current state, it will display the same gallery (id=3) on all profiles. Current issues are:

    • Need to change id to a variable and associate gallery ids with member profiles
    • Gallery is listed vertically
    • Shadowbox effects are not appearing in gallery view (possibly related)
    • Not sure that the do_shortcode action is the most efficient/best practice way to do this

    As for gallery permissions, I am currently using the Role Scoper plugin.

    Any thoughts would certainly be welcome. I will try to provide updates on my progress here.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter scaylos

    (@scaylos)

    Oops! Here’s the pastebin: http://pastebin.com/A1JX0CDc

    I have found the cause of the gallery view issues. For some reason, the css file for the ng gallery is not being inserted in the <head> section. I have confirmed this with the add-to-head plugin. Now, the main issue remaining is linking galleries to their appropriate profiles.

    Thread Starter scaylos

    (@scaylos)

    Well! I have to say that I’ve achieved rather stunning success and am submitting it to the wordpress repo. Here is the current code: http://pastebin.com/f08Kj9v1

    Love the idea – but I’m not having any luck. I’m not clear on where the user is supposed to upload their images – not under “My Gallery”, apparently. If I go into the dashboard and create galleries while logged in as different users (I won’t want to make everyone an admin nor explain how to do this, but first things first), I’m not seeing the images show up under the My Gallery tab. Let me know how I can help sort it out, but I have to get this done so may try out another plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Buddypress Nextgen Gallery integration’ is closed to new replies.