• Resolved alexandrk

    (@alexandrk)


    Just updated to Nextgen-Gallery 1.0.1 have no idea how to enable description under thumbnails. Please let me know if you have solution. Thank you!

Viewing 15 replies - 1 through 15 (of 61 total)
  • I have the same issue. Hopefully Alex will be by soon.

    Same Problem Here. My gallery feel naked without descriptions under thumbnails.

    It’s now part of your template. Please look into the gallery.php file and edit it in the way you want. Example :

    <div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box">
    		<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>

    Add the code <?php echo $image->description ?> there where you need it. (below the link, below the div etc.)

    <div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box">
    		<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>
            <?php echo $image->description ?>
    	</div>

    A+. Thanks Alex!!!

    Alex,

    Do you have any templates to download and use directly? I see you samples on your page, but am looking for something a little more direct.

    AM I correct in saying the css is embedded into the PHP file?

    Thanks.

    Thread Starter alexandrk

    (@alexandrk)

    Thank you very much for all your help!!

    No the CSS is not embedded, copy the “master” template view/gallery.php form the plugin to your theme into nggallery/gallery.php. Then start playing with the CSS & the code, you will direct see the result…

    (Your nggallery.css shoudl be as well copied to the theme folder)

    Thank you, but I still must be missing something.

    OK so I copy gallery.php and nggallery.css over to an nggallery folder that is in MY theme folder.

    From there I change the name of gallery.php to gallery-round.php to give it a template name.

    Then I add the round css info into the nggallery.css file?

    Correct?

    I did this but it still doesn’t work.

    I do have [nggallery id=1 template=round] on my page.

    The nggallery.css need to be in the root of your theme folder not in the subfolder. Please post also a link

    you can see the link at https://dorispatersonart.com/gallery/

    I got most things working but I am unable to get the<span> to work for cutting the corners off the thumbnail images.

    Any ideas.

    My two parameters are:

    .sample3 img {
    	width: 125px;
    	height: 100px;
    	border: none;
    	padding: 7px 7px 7px 7px;
    	background: url(images/round-bg.gif) no-repeat;
    }
    
    .sample3 span {
    	width: 111px;
    	height: 86px;
    	display: block;
    	position: absolute;
    	top: 7px;
    	left: 7px;
    	background: url(images/round-corner.png) no-repeat;
    }

    something with your round-corner.png doesn’t fit (I’m no CSS expert), I tested with firebug left/top 17px; and can see then the upper left border. Study the example from WebDesigner Wall

    I see what you mean. Hmmmmm

    I’ll have to play with it more but I used the files from WebDesigner Wall.

    My resizing might be off.

    I followed your instructions and found that your syntax for the quicktag wasn’t quite correct. It should be:

    [nggallery=1 template=sample1]

    With this corrected, I get the following error on the preview:

    Rendering of template gallery-1.php failed

    Thinking it was a permissions issue, I made sure my gallery template file was 0644, as are all the other default WP templates. Any ideas why this would be?

    The syntax is actually

    [nggallery id=1 template=sample1]

    Ahh, you are right. My mistake. I’m still having that same gallery template error though. Basically if I call it this way:

    [nggallery id=28]

    The gallery loads. If I attempt to use my gallery template:

    [nggallery id=28 template=1]

    where my template file is called “gallery-1.php”, I get the error I listed above. Hmm.

Viewing 15 replies - 1 through 15 (of 61 total)
  • The topic ‘[Plugin: NextGEN Gallery] Missing description under thumbnails’ is closed to new replies.