Page 6 of 6 FirstFirst ... 456
Results 51 to 56 of 56

Thread: No thumbnail of images on home page and ad page

  1. #51
    Newbie
    Not a Verified Customer
    caiado's Avatar
    Join Date
    Dec 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Workaround

    While there is no fix for this bug, here goes a workaround ...

    "index.php"

    Look for:

    Code:
    <div class="main_page_img" style="background: #FFF url(<?php echo get_bloginfo('template_url')."/includes/img_resize.php?width=50&height=50&url=";?><?php
    										  if ( strstr($images, ',')) {  
    											$matches = explode(",", $images);
    											$img_single = $matches[0];
    											$img_single = explode(trailingsla****(get_option('siteurl')) . "wp-content/uploads/classipress/", $img_single);
    											echo $img_single[1];
    										  } else {
    											$img_single2 = $images;
    											echo $img_single2;
    												}?>) center no-repeat"></div></span>
    Change to:

    Code:
    								<div class="main_page_img" style="background: #FFF center no-repeat"><img width="50px" height="50px" border="0" src="<?php
    										  if ( strstr($images, ',')) {  
    											$matches = explode(",", $images);
    											$img_single = $matches[0];
    											$img_single = explode("wp-content/uploads/classipress/", $img_single);
    											echo $img_single[0];
    										  } else {
    											$img_single2 = $images;
    											echo $img_single2;
    												}?>"></div></span>

    "functions.php"

    Find the "classi_lightbox" function.

    Then look for:

    Code:
    			$single_thumb_img_url = get_bloginfo('template_url')."/includes/img_resize.php?width=100&amp;height=100&amp;url=".$thumb_var;
    			echo "<a href=\"$var\" rel=\"group\"><img src=\"$single_thumb_img_url\" class=\"size-thumbnail\" alt=\"".get_the_title()."\" title=\"".get_the_title()."\" /></a>"."\n";
    Change to:

    Code:
    			$single_thumb_img_url = $thumb_var;
    			echo "<a href=\"$var\" rel=\"group\"><img width=\"100px\" height=\"100px\" src=\"$single_thumb_img_url\" class=\"size-thumbnail\" alt=\"".get_the_title()."\" title=\"".get_the_title()."\" /></a>"."\n";
    Hope this can help you guys!

    Ricardo

  2. #52
    Rookie
    Not a Verified Customer
    jmeredith's Avatar
    Join Date
    Dec 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: No thumbnail of images on home page and ad page

    Hey there - really appreciate the offer of help... All I have in my index.php file is the below, its doesn't resemble yours at all??

    <?php
    /**
    * Front to the WordPress application. This file doesn't do anything, but loads
    * wp-blog-header.php which does and tells WordPress to load the theme.
    *
    * @package WordPress
    */

    /**
    * Tells WordPress to load the WordPress theme and output it.
    *
    * @var bool
    */
    define('WP_USE_THEMES', true);

    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');
    ?>

  3. #53
    Rookie
    Not a Verified Customer
    jmeredith's Avatar
    Join Date
    Dec 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: No thumbnail of images on home page and ad page

    ignore that... wrong index.php file.

  4. #54
    Rookie
    Not a Verified Customer
    jmeredith's Avatar
    Join Date
    Dec 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: No thumbnail of images on home page and ad page

    doesn't work for me

    it helps as in I now have a thumbnail area where an image should be which is an improvement, ie a small box with a cross in it where the image should be... if I click that it loads the image.

    this is a bug not a hosting issue, i've set the permissions as described and my host lets me do that and it still doesn't work!

  5. #55
    Veteran taylerj's Avatar
    Join Date
    Apr 2009
    Location
    Las Vegas, NV
    Posts
    380
    Thanks
    1
    Thanked 8 Times in 6 Posts

    Re: No thumbnail of images on home page and ad page

    Quote Originally Posted by jmeredith
    doesn't work for me

    it helps as in I now have a thumbnail area where an image should be which is an improvement, ie a small box with a cross in it where the image should be... if I click that it loads the image.

    this is a bug not a hosting issue, i've set the permissions as described and my host lets me do that and it still doesn't work!
    If it was a theme issue and not a hosting issue it would happen to everyone, not only about 2% of users. Im not saying it cant be fixed with a theme fix, but something about the people having this issue and the theme just issue wanting to work.
    Eric is best known in the forum for his in depth tutorials. He started in design 4 years ago and then discovered WordPress and has been coding and hacking themes and plugins ever since. He's quite helpful if you have any questions for him in the forum. Eric also makes his own WordPress themes and plugins and provides ClassiPress consulting on the side. David Cowgill - (Owner of Classipress)

  6. #56
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: No thumbnail of images on home page and ad page

    If your thumbnail images have been working up until recently it's highly likely due to a change either you or your host provider made. Most of the time it's related to a url change you've made b/c the ad image paths are coded into the images custom field. As soon as you make the change, it will break your existing ad images. If you submit a new ad, it should work b/c it's using the new url of your site.

    If you just launched ClassiPress and you can't get your thumbnails working, read this forum post.

    I also recommend starting your own new thread instead of piggybacking on a resolved one and in the correct place (ClassiPress Theme Support forum). The main reason being is the thread can get buried (like this one) and chances of someone answering it are much slimmer. In this case, I just happened to stumble across it and hate seeing questions asked months ago with still no resolution.

    Hopefully you are able to figure out your image thumbnail issue. If not, start a new thread in the ClassiPress Theme Support forum.

Page 6 of 6 FirstFirst ... 456

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)