Buddypress Nextgen Gallery integration
-
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:
https://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 https://codex.www.ads-software.com/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.
- The topic ‘Buddypress Nextgen Gallery integration’ is closed to new replies.