WordPress.org

Ready to get started?Download WordPress

Forums

nextgen-gallery - no title in shutter pop-up? (2 posts)

  1. watermelonkid
    Member
    Posted 5 years ago #

    I've spent hours trying to figure this out, and it just won't work. Is there a way to not only show the description text below the image using the Shutter setting in NextGen gallery, but to also show the alttext?

    I'm pretty sure that the Shutter setting (controlled by shutter-reloaded.js) does not ever get the alttext value from the database, only something called the title, which for whatever reason is actually the description box in NextGen Gallery.

    Anyone have any experience with this? The code in shutter-reloaded.js is:

    NavBar = '<div id="shTitle"><div id="shPrev">' + prevlink + '</div><div id="shNext">' + nextlink + '</div><div id="shName">' + shutterLinks[ln].title + '</div>' + imgNum + '</div>';

    where shutterLinks[ln].title is the text that comes in on your NextGen navbar in the Shudder setting. Is there any way to get the NextGen alttext in there too?

  2. jmodjeska
    Member
    Posted 4 years ago #

    I looked everywhere for a solution for this but no luck, so I came up with a hack (works for "tickbox" effect only, as far as I know). You were on the right track, but shutter-reloaded.js doesn't directly read the image data. In fact the relevant javascript file is tickbox.js, but even that one just pulls its data from the title attribute of the tumbnail image's "a" tag. So, the solution is to modify the data that gallery.php puts into the "a" tags.

    More information, example, and code here:
    http://j.modjeska.us/?p=113

    Hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.