Viewing 6 replies - 1 through 6 (of 6 total)
  • You can use the EXIF information, they will automatic imported

    Thread Starter Hkroed

    (@sprithansi)

    Hi!
    For some pics, I need to have long desciptions. And for that, I want to have own files for description.

    Can someone please help me 🙂

    Thread Starter Hkroed

    (@sprithansi)

    *bump*
    I’ll try again 🙂

    Is it possible to automaticly add a link to my pics that links to a txt-file?
    If I have a pic named P10005.jpg, I want to auto add a link named Description, which links to $imagename.txt

    Thanks 🙂

    Don’t have much time right now to look into it but maybe try opening up …/plugins/nextgen-gallery/admin/manage-images.php. Find the description area and code in a link to your file based on what image you are looking at. If you want it to pop up in Thickbox/Lightbox make sure to give it a class of ‘thickbox’, ‘lightbox’, whatever your are using.

    Paul

    Thread Starter Hkroed

    (@sprithansi)

    Hi!
    Thanks for responding 🙂
    I’ve found this in line 434 (manage-images.php)
    <textarea name="description[<?php echo $pid ?>]" style="width:95%; margin-top: 2px;" rows="2" ><?php echo stripslashes($picture->description) ?></textarea>

    But I’m not sure how to change this to
    <a href="$picture.txt" target="_blank">My description</a>

    Thread Starter Hkroed

    (@sprithansi)

    Got it. I changed line 434 in manage-images.php from
    <textarea name="description[<?php echo $pid ?>]" style="width:95%; margin-top: 2px;" rows="2" ><?php echo stripslashes($picture->description) ?></textarea>
    to
    <textarea name="description[<?php echo $pid ?>]" style="width:95%; margin-top: 2px;" rows="2" ><a href="<?php echo $gallery->path ?>/<?php echo $picture->alttext ?>.txt" target="_blank">My description</a></textarea>

    Thanks 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: NextGEN Gallery] Description is $filename.txt’ is closed to new replies.