Viewing 7 replies - 1 through 7 (of 7 total)
  • I do not use WPJaipho (because I prefer responsive themes supporting all mobile devices), but had a very brief look at this plugin.

    WPJaipho works with NextGEN Gallery and supports (only?) its legacy shortcodes. WPJaipho calls NextGEN in its functions.php using NGG’s folder name this way under section // NGG:

    $ngg_gallery = is_plugin_active( 'nextgen-gallery/nggallery.php') && !empty($pid);

    Find this row in WPJaipho’s functions.php and replace it to include NextCellent Gallery’s folder name like this:

    $ngg_gallery = is_plugin_active( 'C:\wamp\www\wordpress\wp-content\plugins\nextcellent-gallery-nextgen-legacy/nggallery.php') && !empty($pid);

    I haven’t tested this, but it might do the trick. Before any edits to this functions.php do backup your WPJaipho folder. Also note that after this change WPJaipho will no longer support NextGEN Gallery.

    Basically this type of change should be done by the plugin developer ??

    Plugin Author WPReady

    (@wpready)

    Great VesaT,
    Another idea could be replace the line with:

    $ngg_gallery = class_exists(‘nggLoader’) && !empty($pid);

    that should do the trick, however is also theoretical.

    Thread Starter sweebee

    (@sweebee)

    Thanks for the help, but i installed photoswipe which works great with nextcellent

    Plugin Author WPReady

    (@wpready)

    Good to know!

    While VesaT’s workaround is right, it will not work, since you have used to local path (this differs for other people). Another workaround would be:

    $ngg_gallery = defined('NGGFOLDER') && !empty($pid);

    I have tested this, and it seems to work.

    Can you test this again? The plugin should be updated to include a fix.

    Sorry, my piece of code included some unnecessary (copy-paste…arrgh!) code. The correct code change should be like this:

    $ngg_gallery = is_plugin_active( 'nextcellent-gallery-nextgen-legacy/nggallery.php') && !empty($pid);

    But as Niko above states, the WPJaipho has now a more generic way to find if NGG – should work now both with NextGEN and NextCellent.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Mobile view’ is closed to new replies.