• Hi!
    I’m, setting up a gallery using tags ([albumtags=name,name,name]).
    I’m using 17 tags and show them all at once, so it looks like 17 gallery’s.
    But the preview image for each tag doesn’t always show! Some times is do sometimes is don’t. Of all the 17, there is 4-6 without preview image every time I refresh. Anyone know why?

    —————————————————-

    I got this to work! I Change the <h4></h4> to <h3></h3> and wrote “text-transform: capitalize;” in the stylesheet.css.. DONE!

    And some of the name(the tag) under the preview image is lowercase.
    I think this is the output code for that, from nggfunctions.php.
    <h4><a class="ngg-album-desc" title="'.$picture["name"].'" href="'.$link.'">'.$picture["name"].'</a></h4>
    How Do I Make The First Letter Uppercase In The Name?

    I got this to work! I Change the <h4></h4> to <h3></h3> and wrote “text-transform: capitalize;” in the stylesheet.css.. DONE!

Viewing 1 replies (of 1 total)
  • Thread Starter SiKth

    (@sikth)

    okey, here is the tag that sets the output image in functions.php!
    How do Image this one specially chosen image, means NOT random!

    $insertpic = '<img class="Thumb" alt="'.$picture["name"].'" src="'.nggallery::get_thumbnail_url($picture["pid"]).'"/>';


    Here is some more if you like:

    $out = '<div class="ngg-albumoverview">';
    	foreach ($picturelist as $picture) {
    		$args['gallerytag'] = $picture["slug"];
    		$link = $nggRewrite->get_permalink($args);
    
    		$insertpic = '<img class="Thumb" alt="'.$picture["name"].'" src="'.nggallery::get_thumbnail_url($picture["pid"]).'"/>';
    		$tagid = $picture['tagid'];
    		$counter  = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpic2tags WHERE tagid = '$tagid' ");
    		$out .= '
    			<div class="ngg-album-compact">
    				<div class="ngg-album-compactbox">
    					<div class="ngg-album-link">
    						<a class="Link" href="'.$link.'">'.$insertpic.'</a>
    					</div>
    				</div>

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: NextGEN Gallery] Preview Image gone, for some albumtags..’ is closed to new replies.