• Resolved SkyyKorat

    (@skyykorat)


    I’m new to all this, so I didn’t even know “fancybox” wasn’t PART of NextGEN Gallery. But, I asked over there and they sent me here…

    I need titles on images in the fancybox. After ridiculously too much time, I found a FOUR-YEAR-OLD topic in the nextgen gallery support forum that explained HOW to get the title on the image. I did it on my local PC and it worked… Go into gallery-caption.php, change description to alttext, and voila, TITLES…
    I did the same thing today on the web server. Same version. Same file. Same change. I CHECKED. It’s been changed. NO TITLES…

    Is there SOMETHING I have to do to get the web server to USE the gallery-caption.php file I changed or does it just “know” to recompile or rebuild or whatever? And if there IS something, can you tell me how to make it use the changed file?

    Or, does somebody over here know how to get the current software over THERE to let me have a title on the image in the lightbox?

    https://www.ads-software.com/plugins/easy-fancybox/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    Go into gallery-caption.php, change description to alttext, and voila, TITLES…

    First of all, I would advise against editing plugin files. The next plugin update will overwrite your changes or (worse) fail because the file rights do not allow the update any more, which is a security risk. So maybe we should first try to find a better way.

    Background info: FancyBox can use two things as title. These are
    1. the media LINK title attribute: <a href="..." title="the title">...</a> or
    2. the thumbnail alt attribute: <a href="..."><img src="..." alt="the alt text" /></a>
    Number 2 happens only if there is no link title attribute and the option “Allow title from Alt” is checked.

    On https://www.ads-software.com/plugins/easy-fancybox/faq/ you can find under “Can NextGEN Gallery work with Easy FancyBox ?” some older instructions on how it used to be possible to make these plugins work nicely together. Since those instructions where written, NextGen has changed. A lot.

    Could you try to find the current equivalent of the Code field mentioned there in the instructions? If it’s still there, could you try setting:

    class="fancybox" rel="%GALLERY_NAME%" title="test title"

    and test the result? It should show “test title” for each image…

    Next, ask on the NextGEN forums if there is a parameter similar to %GALLERY_NAME% like %IMAGE_TITLE% that produces the image title.

    Thread Starter SkyyKorat

    (@skyykorat)

    Thanks for the reply… As you can probably tell, I’m REALLY new at all this. The information in the faq doesn’t appear to be usable any more:
    “Go to your Settings > Media admin page and switch OFF the FancyBox Auto-gallery option;” – there doesn’t appear to BE an Auto-gallery option

    “Go to Gallery > Other Options and set the Lightbox Effects option to “No lightbox” and click on Show Advanced Settings;” – I don’t see any “Advanced Settings”

    “fill the Code field with class=”fancybox” rel=”%GALLERY_NAME%”” – I don’t see any code fields.

    Yes, I’d PREFER not to edit plugin files. But, no titles on the images, no use NextGen Gallery. I HAVE to have a way for users to identify images. And it has to be something that’s automatically populated.

    I haven’t found anything that looks remotely like “code field” anywhere in the gallery settings or the Other Settings, so I’m not sure if it’s gone or what.

    My BIGGER question is – I changed the php on my LOCAL PC. I GOT TITLES.. Just like I need. I made EXACTLY the same change on the server – same version of wordpress, same version of nextgen, same file, same line, same variable, and I still get NO titles… Is there something I need to do on the server to make it use the modified php? Or should it just pick it up?

    Thread Starter SkyyKorat

    (@skyykorat)

    Good grief. Now I’m going back and forth between this forum and the fancy box one to ask questions… From the OTHER forum they’d like to know if there’s a current equivalent of the Code field that apparently used to be in the other settings?

    And, is a parameter similar to %GALLERY_NAME% like %IMAGE_TITLE% that produces the image title.

    I haven’t found anything that looks remotely like “code field” anywhere in the gallery settings or the Other Settings, so I’m not sure if it’s gone or what.

    Sounds like NextGEN has changed too much since I last used it. I’ve long since switched to using the normal WordPress galleries without a heavy plugin so I fear I cannot help you further.

    made EXACTLY the same change on the server – same version of wordpress, same version of nextgen, same file, same line, same variable, and I still get NO titles… Is there something I need to do on the server to make it use the modified php? Or should it just pick it up?

    Same here, I have no idea.

    I’ve added the NextGEN tag to this thread so it will appear on the NextGEN forum. Let’s hope someone there will notice your question and give a clear answer ??

    Thread Starter SkyyKorat

    (@skyykorat)

    Found it. And as usual it’s ’cause I’m a dufus… They kept talking about “templates” and I kept LOOKING for the “caption” template… S’not that. It’s a template you select in the gallery settings. Once I finally did THAT, the change to the gallery-caption.php file worked and I have titles………

    I have NO idea how to keep that file from getting clobbered in the next update – maybe I’ll ask that question later!

    Thanks for the help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Titles on Images in Fancybox on NextGEN Gallery’ is closed to new replies.