Forum Replies Created

Viewing 15 replies - 31 through 45 (of 69 total)
  • Thread Starter GATEKeeper

    (@gatekeeper)

    Just a little bump for the topic. Anyone have any thoughts? I feel like I’m pretty close to solving this, but I could use the help.

    Even with esmi’s link I can’t get clean URLs to work. If I change permalinks to be the default ugly format, the category pages work, but if I turn URL rewriting on in any way, the category pages are broken.

    I hate to cross-post this, but FYI – the problem doesn’t seem to be my plugins. Deactivating all my plugins still leaves my category pages unreachable. If I change that setting in Simple Tags my category pages are completely broken. Same problem with my plugins deactivated.

    The problem doesn’t seem to be my plugins. Deactivating all my plugins still leaves my category pages unreachable.

    With my plugins on, I at least get the home page when I try to go to category pages. If I deactivate all my plugins, the category pages simply don’t load.

    Kind of surprised more people aren’t complaining about this. It’s a pretty huge flaw if you post video.

    The larger problem I just discovered is that the autolink feature, while helpful, breaks video because it also tries to add autolink to file URLs.

    Obviously this is a huge problem, and wp.Man is right, replacing whole words only would help, but the code should also automatically avoid replacing words within code.

    I’ve seen issues as well where the autolink feature replaces links in galleries.

    Perhaps some of these issues can be addressed for the next update? Anyone have advice on keeping autolink on but keeping it from messing up video/links?

    Same problem on my end. I’ve got two categories I’m trying to ignore – a parent and a child of the parent. It seems to be ignoring the parent category, but not the children.

    I also can’t set the date format. It’s checked, but won’t let me uncheck the date, or save a selection for the format.

    I’ll try deactivating plugins tonight to see if something is conflicting, but I don’t have that many plugins.

    Lightbox 2.8.2 isn’t working for me either. I’m using it with Cleaner Gallery 0.7 on WordPress 2.9.

    Lightbox stopped working on the upgrade to 2.9.

    Any thoughts?

    Thread Starter GATEKeeper

    (@gatekeeper)

    The last update I did through my site’s admin panel downloaded the update and installed it. So, either I got a bad update from the auto install, or the version out there now is set to the way I mentioned above.

    Thread Starter GATEKeeper

    (@gatekeeper)

    For anyone searching for the answer to this, I fixed it by opening the file cleaner-gallery.php and on line 177 where it says:

    'numberposts' => '',

    Change it to:

    'numberposts' => -1,

    This sets Cleaner Gallery to ignore the max number of items.

    Fantastic plugin, but for the record, I can’t imagine why you would want your gallery to limit to the number of posts per page.

    Thread Starter GATEKeeper

    (@gatekeeper)

    Well, that’s weird. I thought this might something to do with it. If I go and change my “Reading settings” so that “Blog pages show at most” 20 entries – Cleaner Gallery shows 20 images.

    Any thoughts on how to fix? Obviously that setting should not be affecting the number of images being shown. And again, if I turn off Cleaner Gallery, all my images show up.

    Thread Starter GATEKeeper

    (@gatekeeper)

    Just FYI – I’m going to turn the plugin off until there’s an update that fixes this. I’ll wait until this evening so you have a chance to see the problem. (I love the plugin, by the way, but this is kind of a big issue for me.)

    Thread Starter GATEKeeper

    (@gatekeeper)

    Even with every other plugin turned off, except cleaner gallery, the galleries are getting cut off at 10 images. There are 25 images in this gallery, and only 10 showing up.

    Thread Starter GATEKeeper

    (@gatekeeper)

    Thanks for the info – I really appreciate!

    And again, love the theme!

    Thread Starter GATEKeeper

    (@gatekeeper)

    The theme just inserts the first image attached to the post. I was hoping it was just a matter of adding an extra line of code somewhere to insert the title of the image in the ALT tag.

    I saw elsewhere that usually it’s as simple as adding:

    alt="<?php the_title() ?>"

    But where would I put that in the code below?

    Here’s the theme code from the functions.php file:

    // Post Attachment image function. Image URL for CSS Background.
    function the_post_image_url($size=large) {
    
    	global $post;
    	$linkedimgurl = get_post_meta ($post->ID, 'image_url', true);
    
    	if ( $images = get_children(array(
    		'post_parent' => get_the_ID(),
    		'post_type' => 'attachment',
    		'numberposts' => 1,
    		'post_mime_type' => 'image',)))
    	{
    		foreach( $images as $image ) {
    			$attachmenturl=wp_get_attachment_url($image->ID);
    			$attachmentimage=wp_get_attachment_image( $image->ID, $size );
    
    			echo ''.$attachmenturl.'';
    		}
    
    	} elseif ( $linkedimgurl ) {
    
    		echo $linkedimgurl;
    
    	} elseif ( $linkedimgurl &amp;&amp; $images = get_children(array(
    		'post_parent' => get_the_ID(),
    		'post_type' => 'attachment',
    		'numberposts' => 1,
    		'post_mime_type' => 'image',)))
    	{
    		foreach( $images as $image ) {
    			$attachmenturl=wp_get_attachment_url($image->ID);
    			$attachmentimage=wp_get_attachment_image( $image->ID, $size );
    
    			echo ''.$attachmenturl.'';
    		}
    
    	} else {
    		echo '' . get_bloginfo ( 'stylesheet_directory' );
    		echo '/img/no-attachment.gif';
    	}
    }
    
    // Post Attachment image function. Direct link to file.
    function the_post_image($size=thumbnail) {
    
    	global $post;
    	$linkedimgtag = get_post_meta ($post->ID, 'image_tag', true);
    
    	if ( $images = get_children(array(
    		'post_parent' => get_the_ID(),
    		'post_type' => 'attachment',
    		'numberposts' => 1,
    		'post_mime_type' => 'image',)))
    		{
    		foreach( $images as $image ) {
    			$attachmenturl=wp_get_attachment_url($image->ID);
    			$attachmentimage=wp_get_attachment_image( $image->ID, $size );
    
    			echo ''.$attachmentimage.'';
    		}
    
    	} elseif ( $linkedimgtag ) {
    
    		echo $linkedimgtag;
    
    	} elseif ( $linkedimgtag &amp;&amp; $images = get_children(array(
    		'post_parent' => get_the_ID(),
    		'post_type' => 'attachment',
    		'numberposts' => 1,
    		'post_mime_type' => 'image',)))
    		{
    		foreach( $images as $image ) {
    			$attachmenturl=wp_get_attachment_url($image->ID);
    			$attachmentimage=wp_get_attachment_image( $image->ID, $size );
    
    			echo ''.$attachmentimage.'';
    		}
    
    	} else {
    		echo '<img src="' . get_bloginfo ( 'stylesheet_directory' ) . '/img/no-attachment-large.gif" />';
    	}
    }
    
    //Setup Images for Attachment functions
    function image_setup($postid) {
    	global $post;
    	$post = get_post($postid);
    
    	// get url
    	if ( !preg_match('/<img ([^>]*)src=(\"|\')(.+?)(\2)([^>\/]*)\/*>/', $post->post_content, $matches) ) {
    		return false;
    	}
    
    	// url setup
    	$post->image_url = $matches[3];
    	if ( !$post->image_url = preg_replace('/\?w\=[0-9]+/','', $post->image_url) )
    		return false;
    
    	$post->image_url = clean_url( $post->image_url, 'raw' );
    
    	delete_post_meta($post->ID, 'image_url');
    	delete_post_meta($post->ID, 'image_tag');
    
    	add_post_meta($post->ID, 'image_url', $post->image_url);
    	add_post_meta($post->ID, 'image_tag', '<img src="'.$post->image_url.'" />');
    
    }
    
    add_action('publish_post', image_setup);
    add_action('publish_page', image_setup);
    
    // Post Attachment image function for Attachment Pages.
    function the_attachment_image($size=large) {
    	$attachmenturl=wp_get_attachment_url($image->ID);
    	$attachmentimage=wp_get_attachment_image( $image->ID, $size );
    
    	echo ''.$attachmentimage.'';
    }
Viewing 15 replies - 31 through 45 (of 69 total)