NextGEN Gallery
Add gallery(x) to php file (5 posts)

  1. lmancuso59
    Posted 5 years ago #

    I am a rookie and am trying to fiqure out how to add a different gallery to each member page. I have added a field in my members_pages table in the database to handle the galleryid# (gallery). I added a statement to my memberpage.php

    if ($page_row[gallery]) {echo do_shortcode('[slideshow id=1]');}

    This does make the gallery work but it shows the same gallery on each member that has a gallery. I tryed to get it to put in the gallery number by using

    if ($page_row[gallery]) {echo do_shortcode('[slideshow id=$page_row[gallery]]');}

    but this doesn't work. Can anyone help? gallery value (1) is saved as text in database.

  2. Paulio51
    Posted 5 years ago #

    Maybe get rid of do_shortcode and try,

    if ($page_row[gallery]) {echo nggShowSlideshow('.$page_row[gallery].', width, height);}

    If you still want to use do_shortcode try adding '. and .' before and after your variable.


  3. lmancuso59
    Posted 5 years ago #

    Thanks Paul for the suggestion. I tried it and I get the message.....The Flash Player and a browser with Javascript support are needed.. on my pages. Any other suggestions to solve this would be greatly appreciated.


  4. lmancuso59
    Posted 5 years ago #

    Paul went back and tried shortcode with '.and.'......that worked
    Thank you so much.

    But I have another issue when I upload photos I get.....(Error : Create Image failed. Check safe mode settings)

    I can't find safe mode settings. The photos do upload and seem to be working OK???



  5. Paulio51
    Posted 5 years ago #

    Not exactly sure what is going on but safe mode usually refers to a php setting on the server, not within the plugin itself. Maybe check with your web host and see if there is an option to turn that off.

    Did you upgrade to the 1.6 version? There is a 1.6.1 that may fix the Flash Player support.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.