lmancuso59
Member
Posted 1 year 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.
Paulio51
Member
Posted 1 year 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.
Paul
lmancuso59
Member
Posted 1 year 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.
Linda
lmancuso59
Member
Posted 1 year 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???
Linda
Linda
Paulio51
Member
Posted 1 year 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.