• I’m trying to use the NCF plugin to add links to some images within a gallery that are being displayed in a modal window (Simple Lighhtbox plugin). I have set up the custom fields, and can enter data into them next to the images within the gallery manager. However, when I try to show the data in the description area of the Simple Lightbox modal window, I get empty data.

    I have followed the instructions on the FAQ page, and tried all of the different scripts for displaying the data, but it still comes up empty.

    Is it not possible to use the NCFs in other modal window plugins that run through the Nextgen Gallery? Or, is there something that I’m missing that needs to be done to make it work?

    Thanks,
    Jeff.

    http://ww.wp.xz.cn/plugins/nextgen-gallery-custom-fields/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author shauno

    (@shauno)

    I don’t know where the Simple Lighhtbox plugin gets the data for it’s description. But all the NGG Custom Fields plugin does is allow you to output the custom data you have captured against images into the gallery template.
    So find where the Simple Lighhtbox plugin gets the data (maybe the ‘title’ or ‘alt’ attribute on the <img> tag), and replace it with the call to the custom fields api.

    Thread Starter f3tt4l1f3

    (@f3tt4l1f3)

    Thanks for the reply, Shauno.

    The Simple Lightbox coding isn’t very “user-friendly” and I don’t think I’m experienced enough to be able to try and dissect it. I found the area in the code where it displays the title & description. If I add in some regular php code (like, to display the current date) it will show up, just fine. But, if I try placing the NCF php script in the same location, it comes up blank on the output.

    I may just have to try using a different lightbox that will accept the NCF script.

    Plugin Author shauno

    (@shauno)

    You need to use <?php echo nggcf_get_field($image->pid, 'Field Name Here'); ?> API if using NGG v2.x.
    The docs aren’t real clear on that yet, I haven’t updated them in awhile 🙂

    Thread Starter f3tt4l1f3

    (@f3tt4l1f3)

    That doesn’t seem to work, either. I still get no data, at all.

    I’m thinking it’s got to be something with the Simple Lightbox plugin’s scripting that’s cancelling it out, or something.

    I think we’re going to try and find a different lightbox plugin that is easier to work with.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Compatibility with Simple Lightbox?’ is closed to new replies.