[Plugin: NextGEN Gallery] Problem with Simple Facebook Connect
-
There is a problem displaying images in galleries when using the Simple Facebook Connect plug-in and the following is the reason given for this at https://wphelpcenter.com/plugins/simple-facebook-connect/
Could a fix for this be incorporated into a future release?
The publish code doesn’t process the NextGen gallery shortcodes!
Well, actually, the publish code would process those shortcodes, if NextGen Gallery wasn’t trying to be so bloody clever.
There’s a bit of code in nggallery.php that looks like this: // Load backend libraries if ( is_admin() ) { require_once (dirname (FILE) . ‘/admin/admin.php’); require_once (dirname (FILE) . ‘/admin/media-upload.php’); $this->nggAdminPanel = new nggAdminPanel(); // Load frontend libraries
} else { require_once (dirname (FILE) . ‘/lib/navigation.php’); require_once (dirname (FILE) . ‘/nggfunctions.php’); require_once (dirname (FILE) . ‘/lib/shortcodes.php’); }Notice that it doesn’t load the shortcodes.php and nggfunctions.php files and such in the admin sections? That’s why those shortcodes don’t get processed. Copy those lines up into the is_admin section too and it should work.
If you’re the author of the Nextgen Gallery plugin, why not adjust your plugin so the shortcodes work everywhere? Some other plugins might want to know what images are inside the posts too, you know. This plugin tries to process shortcodes to get what the post will actually look like on the page, but if your shortcode source code isn’t loaded, then it can’t do that.
- The topic ‘[Plugin: NextGEN Gallery] Problem with Simple Facebook Connect’ is closed to new replies.