• I’m using another plugin to generate User Submitted Posts, which uploads an image that I want visible in the gallery.

    I’m trying to modify the gallery.
    The gallery creates this:

    *) A link (titled the image name, which I really don’t want visible since it’s all numbers etc) which links to display the image in version “A”.
    *) Underneath is the image (thumbnail), which links to displaying the image in version “B”.
    *) Then a link (another title) which links to displaying the image in version “C”.

    I simply want everything to display the image in version “A”, and if possible, delete the first link (the image name). So that it’s just the thumbnail and the last link that is shown.

    —————-
    Here is the part of the code that I think needs to be edited:

    if(($src = wp_get_attachment_thumb_url($post->ID)) 
    
    				&& $parent->post_status == "publish"
    
    				&& !preg_match("/\W(" . $parent->ID . ")\W/", " {$args["exclude"]} ")
    
    				&& $tag_ok
    
    				&& $category_ok)
    
    			{
    
    				$html_row .= "<div class='mlg-preview'>";
    
    					$html_row .= "<div class='mlg-title'><a rel='media_library_gallery_$id'>ID) . "' title='" . get_the_title($post->ID) . "'><strong>" . get_the_title($post->ID) . " [+]</strong></a></div>";
    
    					$html_row .= "<div class='mlg-img'><a>ID) . "' title='" . get_the_title($post->ID) . "'><img src='$src' alt='" . get_the_title($post->ID) . "' /></a></div>";
    
    					$html_row .= "<div class='mlg-actions'>";
    
    						$html_row .= "“<a>post_parent) . "'>" . get_the_title($post->post_parent) . "</a>”";
    
    					$html_row .= "</div>";
    
    				$html_row .= "</div>";
    
    				$j++;
    
    			}

    http://wordpress.org/plugins/media-library-gallery/

  • The topic ‘Modifying the gallery’ is closed to new replies.