Ready to get started?Download WordPress


NextCellent Gallery - NextGEN Legacy
[resolved] Mobile view (8 posts)

  1. sweebee
    Posted 3 months ago #

    I want to switch from the old nextgen gallery to nexcellent gallery. But when i do, wpjaipho and lightbox don't work on my iphone. It just shows a html page with image viewer.

    how can i get wpjaipho to work?


  2. VesaT
    Posted 2 months ago #

    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 bý the plugin developer :)

  3. WPReady
    Plugin Author

    Posted 2 months ago #

    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.

  4. sweebee
    Posted 2 months ago #

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

  5. WPReady
    Plugin Author

    Posted 2 months ago #

    Good to know!

  6. niknetniko
    Posted 2 months ago #

    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.

  7. niknetniko
    Posted 2 months ago #

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

  8. VesaT
    Posted 2 months ago #

    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.


You must log in to post.

About this Plugin

About this Topic


No tags yet.