• Hi,

    I would like to change my site Gifwelt to WordPress, which I know already. Is it possible to use the nextgen-gallery without the preview? The maximum size of my pictures is 150 px and I would like that all pictures of a choosen category are shown in there original size and as animated gifs (like now on my old site). Maybe I have to think the other way around? I need only the thumbs, which are not clickable?

    Can someone help me?

Viewing 15 replies - 1 through 15 (of 32 total)
  • Hi,
    you could try this:
    First follow these instructions: https://nextgen.boelinger.com/templates/
    then make a copy of /wp-content/plugins/nextgen-gallery/view/gallery.php
    and rename it to your likings e-g gallery-gifview.php and edit it.

    look for

    <?php foreach ($images as $image) : ?>
    
    	<div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box" <?php echo $gallery->imagewidth ?> >
    		<div class="ngg-gallery-thumbnail" >
    			<a href="<?php echo $image->imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
    				<img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> />
    			</a>
    		</div>
    	</div>
    	<?php if ( $gallery->columns > 0 && ++$i % $gallery->columns == 0 ) { ?>
    	<br style="clear: both" />
    	<?php } ?>
     	<?php endforeach; ?>

    and change to

    <?php foreach ($images as $image) : ?>
    
    	<div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box" <?php echo $gallery->imagewidth ?> >
    		<div class="ngg-gallery-thumbnail" >
    
    				<img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->imageURL ?>" <?php echo $image->size ?> />
    
    		</div>
    	</div>
    	<?php if ( $gallery->columns > 0 && ++$i % $gallery->columns == 0 ) { ?>
    	<br style="clear: both" />
    	<?php } ?>
     	<?php endforeach; ?>

    best regards
    bee

    Thread Starter Ypanesa

    (@ypanesa)

    Thank you so much! I will try this and report the result.

    Thread Starter Ypanesa

    (@ypanesa)

    Hi bee,

    It is not working. I geht “Rendering of template gallery-gifview.php failed”. I uploaded 19 little animated gifs in one gallery.

    I copied the file gallery.php into the themes folder and made the changes you proposed and renamed it to gifview.php.

    The Code looks like this now:

    <?php foreach ($images as $image) : ?>
    
    	<div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box" <?php echo $gallery->imagewidth ?> >
    		<div class="ngg-gallery-thumbnail" >
    
    				<img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->imageURL ?>" <?php echo $image->size ?> />
    
    		</div>
    	</div>
    	<?php if ( $gallery->columns > 0 && ++$i % $gallery->columns == 0 ) { ?>
    	<br style="clear: both" />
    	<?php } ?>
     	<?php endforeach; ?>

    Can you please help me?

    Hi,
    the file should be in a folder “nggallery” which has to reside in your themes folder. And the filename must begin with gallery-something.php to be recognized as a gallery template by ngg.

    best regards
    bee

    Thread Starter Ypanesa

    (@ypanesa)

    The file is in the folder theme/default/nggallery folder and I renamed it to gallery-gifview.php. I still get the same error message.

    Thread Starter Ypanesa

    (@ypanesa)

    Oh stop, it is working. Thank you very much.

    Anyhow I still have a problem with the image size. There are a lot of images which are bigger than the thumbnail size. For examples divisor lines. Is there any chance to be flexible on the size?

    I also need to hide [Mit PicLens anzeigen]. These pictures are not animated anymore and much too big.

    Thread Starter Ypanesa

    (@ypanesa)

    I also have the problem, that smaller pictures get resized to fit the thumbs size (100 x 75). Do you know a work around?

    Thread Starter Ypanesa

    (@ypanesa)

    I put the site online, that you can see the different problems.
    https://animierte-gifs.gifwelt.info

    I made a little change in the gallery-gifview.php. Now the thumbs are clickable.

    1. But then when you click on >> in the preview, the image changes only every sixth time. Strange.

    2. The gifs get resized when they are smaller than the thumbnail size. See ampeln.

    3. When I import the pictures from a folder, ngg makes two instances of every picture. The right one with the original name, the second one with the name and _0.

    4. The pictures are not shown in the dashboard (galerien verwalten)

    Thread Starter Ypanesa

    (@ypanesa)

    Is there anyone who can help me? Please.

    Hi,
    sorry was busy otherwise, lets try it first with the size issue, i just set this up for my self (without links havent tried yet with gifs) i deleted <?php echo $gallery->imagewidth ?> and <?php echo $image->size ?> this resulted in displaying pics in their original size. Will try with gifs and popup next.

    best regards
    bee

    Hi,
    look here: https://sing.dudelidu.de/

    i can′t reproduce the other problems, maybe #1 has to do with the shutter effect as you can see linked pictures show correct count.
    #3 i used the batch upload which did not result in this maybe you could try the same just for narrowing down.
    #4 i see thumbs in the gallery management dashboard but as expected animation is gone with thumb generation, is there a thumbs subfolder in your pics directory (shold have ben created automtically with folder import)?

    Sorry i can only guess on this

    best regards
    bee

    Thread Starter Ypanesa

    (@ypanesa)

    Hi bee,

    thank you so much for your help. Your domain is funny. It’s quite similar to mine (der-tut-nichts.info for my dog education site. mailadress before the at = hundeerziehung). It still makes me grin ??

    1. The preview is ok now using thickbox effect.

    2. It works fine with deleting image-width and size. It works also when I uncheck in NGG Thumbnails “Setze fixe Gr??e – Ignoriere Bildseitenverh?ltnis. :)))))

    3. I used batch. But after this view changes I made it works fine.

    4. There is still no preview in the gallery management section of ngg. I do have a thumbs subfolder and there is no animation. This is normal or at least well known.

    So it’s #4 who persists and I have another question:

    Do you have an idea how I could get more order? At the moment, a page is quite nervy. On my old site I used tables. Is there a similar solution with css? Right now I put only two gifs in one row. That helps a little bit.

    Hi,
    with 4# maybe trying to delete those strange doubles via ftp first and then generating new thumbs is worth a try? still guessing.

    And the question of order theres a kind of primtive solution which maybe not so satifactory if you got extreme values on the different pix, but heres the link it also applies to differenet image/thumb dimensions not only descriptions mentioned there: https://www.ads-software.com/support/topic/187955?replies=4

    So when looking at the ampeln gallery and compare it to to your largest gif in height on the whole page (which you should use as a height measure regarding the link above), these small ones might look a little lost. You could still be cloning the template renaming and calling an also cloned css definition for height…

    best regards
    bee

    P.S. Yes i do admit having a faible for funny names..and i like dogs (the well educated nice ones) ??

    Thread Starter Ypanesa

    (@ypanesa)

    Hi,

    I did not try your suggestion already, but I keep this possibility in mind.

    #4 I did this already: deleting the doubles, reimport of the whole gallery.

    #5 Always something new, but why always only problems? I changed to the theme dKret3. I know it from an other site I created and I find it very usefull. But now, the pictures are not shown anymore at all. I had this problem with the other site as well. To solve the problem, I use the plugin change-uploaded-file-permissions. But this time, it occurs again and I had installed the plugin before.

    Do you have any idea? I made no changes in the gallery. With the default theme, the pictures are shown, with dKret 3 not. But… in the preview you see the pictures. Very strange!

    Hi,
    not so much after having a look i guess you might have forgotten to put the nggallery folder that resides in your old theme folder also into dkret folder because look under ampeln eg this is what it reads: Rendering of template gallery-gifview.php failed. I dont know why this does not happen with aliens maybe because they are …strange – or you might have used the standard gallery shortcode.

    And regarding #4 i think you should set folder permissions to the pictures folder and all subfolders at least to 755 per ftp i get a 403 when trying to view a thumb directly.

    best regards
    bee

Viewing 15 replies - 1 through 15 (of 32 total)
  • The topic ‘[Plugin: NextGEN Gallery] I need the gallery without thumbs’ is closed to new replies.