WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] Patch for single thumbnail support (17 posts)

  1. Anonymous
    Unregistered
    Posted 5 years ago #

    I’ve implemented a patch for next-gen gallery that allows you to display thumbnails independent of galleries. This does not replace the single-pic functionality, but is rather meant to complement it.

    Installation

    !BE SURE TO BACKUP YOUR PLUG-IN FILES BEFORE YOU DO THIS!

    To install the patch, simply copy the ngg-functions.php file in zip below to your next-gen gallery plugin folder. If prompted, overwrite the existing file. This patch is for the 0.97 version, but it should work with other version with minor modifications.

    –> Single Thumbnail Patch <–

    Usage

    Simply add “[thumbnail=x]“, where “x” is the id of the image you want to display, to any post or page. This will be replaced with a thumbnail of that image. You can find an example of usage at my site here.

    Alex: Is there any chance this could be added as a permanent feature for next-gen?

  2. revolution48
    Member
    Posted 5 years ago #

    great idea, thanks. exactly what i was looking for here

  3. NekoNadia
    Member
    Posted 5 years ago #

    Great patch, I've been wanting single thumbnails for quite some time. Thanks for sharing.

    Is there any way to float the thumbnails if I want to have two or more thumbs side by side?

  4. eremit
    Member
    Posted 5 years ago #

    I've done a similiar patch where you can set the float for each thumbnail.

    Syntax is: [thumbnail=id,float]

    Patched is applied to versions 0.98 and 0.99. There is another patch in the archive, which gives you full SSL support in the admin section.

    Files:
    NextGen Gallery Fully Patched
    NextGen Gallery 0.99 - Fully Patched

    Regards,
    eremit

  5. NekoNadia
    Member
    Posted 5 years ago #

    That's wonderful! Thanks eremit! :D

  6. Alex Rabe
    Member
    Posted 5 years ago #

    Thanks for code changes, the upcoming v1.00 will include the new shortcodes.
    You can get this dev version here :
    http://code.google.com/p/nextgen-gallery/source/browse/

    Any remarks, changes or ideas are welcome.

    [thumb id="4,5,12,..." caption="none|alttext|desc" group="thumbnail-group" float="|left|right"/]
    You can now insert thumbnails for one or more images (that are not necessarly inside the same gallery).

    [picture id="10" caption="none|alttext|desc" float="|left|right" width="" height="" mode="|watermark|web20"]extra caption here[/picture]
    You can now insert single picture with some effect, resized or not, with or without caption.

  7. eremit
    Member
    Posted 5 years ago #

    Thanks a lot Alex -- you are doing a really good job. By the way, will the SSL issues be fixed too? If you want, I can make some patch files of the SSL fix that I've done.

  8. Alex Rabe
    Member
    Posted 5 years ago #

    The current trunk should fix all SSL issues.. if not, please let me know

  9. jeffko
    Member
    Posted 5 years ago #

    Hello,

    I hope I am not being presumptuous in asking. I am looking to see what I may be doing incorrectly with this awesome gallery the people here seem to be having the best understanding of.

    My issues are as follows:

    To be able to have one thumb display on my photo's page and the number of pictures to be displayed below the thunb with a very brief description of what the pictures are of. Then when you click on the thumb it goes directly to the slideshow with random transitioning.

    To find out where I rename sub pages to Albums.

    You guys do great work.

    Thanks,

    Jeff

  10. jeffko
    Member
    Posted 5 years ago #

    PS. Is there a way the browser will not completely reset itself when you forward to the next picture selection? after every new picture I need to scroll down to see it, and then repeat it over and over.

    Thanks 1MT (one more time)

    Jeff

  11. eremit
    Member
    Posted 5 years ago #

    As I don't use the trunk, I didn't notice that so far. Do you have any plan when the SSL patches from trunk will be released in a public version?

    Nevertheless, as long as the patches aren't in the public package, I will keep going on to apply the SSL patches and provide the package on my website for those users who don't want to use the trunk version.

  12. Alex Rabe
    Member
    Posted 5 years ago #

    it will be released as version 1.00, because the SSL feature is not backward compat

  13. Gr1f
    Member
    Posted 5 years ago #

    eremit,
    Has your patch simply updated the ngg-functions.php file?
    I'd like to try it but not overwrite the whole install.

    Thanks

  14. Gr1f
    Member
    Posted 5 years ago #

    it seems so, as it worked by replacing it,

    Thanks a lot!
    :-)

  15. Gr1f
    Member
    Posted 5 years ago #

    If there's anyway I can set width-height max that would be great!

  16. Gr1f
    Member
    Posted 5 years ago #

    OK just used max-height; in css...works fine kewl

  17. jesmo
    Member
    Posted 4 years ago #

    This is exactly what I need right now! However, I uploaded it and replaced the original ngg-functions.php file, but as result the Nextgen's own tags stopped working as well... Is this patch compatible with Nextgen version 1.3.3?
    Being able to display single images as thumbnails would really save my page, but I didn't find any info of this feature being already in the Nextgen. Please do correct me if I'm wrong, I just can't seem to find it.
    Thank you so much before hand if anyone has info on this.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.