Forums

[closed] Thumbnail Generation? (11 posts)

  1. since83
    Blocked
    Posted 2 years ago #

    Any thing like timthumb that works with MS and can work with grabbing the first image?

    So far no one has been able to tell me how to get timthumb to work so any ideas if anything else can?

  2. Curtiss Grymala
    Member
    Posted 2 years ago #

    Is there any reason you can't just use the image capabilities built into WordPress?

  3. since83
    Blocked
    Posted 2 years ago #

    Plenty of reasons. If the built in capabilities was that great scripts like timthumb wouldn't need to be created.

  4. So... you can;t get the featured image built-in stuff to show you the first attached image?

    you can also try the get-the-image plugin for finer control.

  5. So far no one has been able to tell me how to get timthumb to work so any ideas if anything else can?

    That's not true. We did tell you..

    You do it with Custom Fields and TimThumb: http://odotteeaux.com/2010/08/17/adding-timthumb-to-your-wordpress-mu-or-multisite-theme/

    You can try this older post on how to make it work with MU: http://www.binarymoon.co.uk/2009/10/timthumb-wordpress-mu/

    You can Google and see what other peolpe have done: http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=timthumb+wordpress+multisite

  6. since83
    Blocked
    Posted 2 years ago #

    I dont want to use custom fields. I said i need it to work by grabbing the first image.

  7. since83
    Blocked
    Posted 2 years ago #

    You didnt tell me how to get the image to work with grabbing the first image? read what i said.

  8. since83
    Blocked
    Posted 2 years ago #

    Once again none of those links show you how to get it working on MS/Timthumb.

    I deal with way to many images to use built in image sizing and with my set up using custom fields just isnt do able.

    I been playing with this code though since it seems that using the built in sizer is all i can do ill just have to add a ton more default sizes.

    postimage($size=medium) {
    	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 '<a href="'.$attachmenturl.'" rel="'.$attachmenturl.'" class="preview">'.$attachmentimage.'</a>';
    		}
    	} else {
    			echo '<div class="no_image_index"><img src="../wp-content/themes/seismic/img/icons/image--exclamation.png" title="No Image"/></div>';
    	}
    }

    But i need this to do lots more. I also need to be able to get the post title, theme_url, and i also need to be able to choose what size i want $attachmenturl

  9. Once again none of those links show you how to get it working on MS/Timthumb.

    Because no one has done what you want done yet.

    We're not giving you the answer you want because we don't have it. What we DO have are examples of workarounds, and google. So we have, now, shared ALL we know with you. This is where you say 'Thank you for the start!' and either write it yourself and share your skills with the other people who want this too, or take one of the previously discovered partial-solutions like they have.

    The CLOSEST people have gotten to what YOU want is this doing it with Custom Fields and TimThumb: http://odotteeaux.com/2010/08/17/adding-timthumb-to-your-wordpress-mu-or-multisite-theme/

    Someone else suggested that you can try this older post on how to make it work with MU: http://www.binarymoon.co.uk/2009/10/timthumb-wordpress-mu/

    Finally, if none of those are acceptable, you can Google and see what other people have done and use that as a starting point: http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=timthumb+wordpress+multisite

    That's all WE, free, volunteer, folks can do for YOU.

    You're welcome.

  10. since83
    Blocked
    Posted 2 years ago #

    Why or you "your welcoming me" you didnt help me. I ask a question and no one has gave me an answer, most have come in here and half way read what i have wanted done. Im sorry but if i say i want something to work with grabing the first image... you dont earn a thank you by giving me a link that works only with custom fields.

    Its a case of if you dont know the answer... dont say anything. or least say "its not possible yet" or "id like to know this myself" or perhaps "lets work on it", giving me links to what i dont need isnt help, its just a user doing something to make them self feel like they are doing something.

Topic Closed

This topic has been closed to new replies.

About this Topic