Page 7 of 7 FirstFirst ... 567
Results 61 to 64 of 64

Thread: Thumbnail Images Not Showing Up? Solution Here (includes MU)

  1. #61
    Newbie
    Not a Verified Customer
    bloggista's Avatar
    Join Date
    Mar 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Thumbnail Images Not Showing Up? Solution Here (includes MU)

    Oh, never mind, I found the solution and now:

    1. The images are uploaded properly
    2. The thumbnails are showing up again
    3. Images are displayed in single pages

    Solution?

    I edited form_process.php and used the following codes (as given in one of the forum pages by David)

    Code:
           //(commented the default codes), changed to:
                    $dir_to_make = "wp-content/uploads/classipress";
                    $image_baseurl = get_option('home')."/wp-content/uploads/classipress";
    Thanks!

  2. #62
    Rookie
    Not a Verified Customer
    Caryl's Avatar
    Join Date
    Mar 2010
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Thumbnail Images Not Showing Up? Solution Here (includes MU)

    Hello,

    Thank you for this mod !!!
    It works great on WPMU but I have an other issue into the functions/admin-options.php file line 701 :
    Code:
    <?php 
    	$delete_file = strip_tags($_GET['delete']);
    	if ( $delete_file != "" ) {
    		$delete_file = "../wp-content/uploads/classipress/".$delete_file;
    		unlink($delete_file);
    		echo "<div class='del_image'>" . __('The image has been deleted','cp') . "</div>";
    	} ?>
    
    <div class="classipress_images">
    <?php
    $image_url = get_bloginfo('template_url')."/includes/img_resize.php?width=100&height=100&url=";
    $image_url2 = get_bloginfo('template_url');
    
    if ($handle = opendir('../wp-content/uploads/classipress')) {
        // List all the files
        while (false !== ($file = readdir($handle))) {
            if ( $file == "." || $file == ".." ) {
            } else {
            	$size = filesize("../wp-content/uploads/classipress/".$file);
            	$size = $size / 1024;
            	$size = round($size)."Kb";
            ?>
    Do you know what kind of code I replace into opendir functions ?

    Thx in advance !

  3. #63
    Amateur
    Not a Verified Customer
    webmango's Avatar
    Join Date
    Mar 2010
    Posts
    12
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Thumbnail Images Not Showing Up? Solution Here (includes MU)

    I had no thumbs on search-result pages.

    Found the problem by comparing search-result and mainpage (where everything is fine)

    Sourcecode says:

    mainpage uses <span>, search.php uses <div> and is not working (Version 2.9.3)

    Solution:

    Edit search.php Line 33:

    change <div class="main_page_img" style="ba....
    into <span class="main_page_img" style="ba...

    Line 42:

    Change </div></span>
    into </span></span>

    And thumbs are shown on search-result pages also

    BR

    webmango

  4. #64
    Newbie
    Not a Verified Customer
    sweethomemall's Avatar
    Join Date
    Dec 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Thumbnail Images Not Showing Up? Solution is Here

    Hi,

    I am testing ClassiPress in WPMU, tried to install 2 sites, and the first one's thumbnail image showed after I followed the previous post. So tried install another blog with ClassiPress in WPMU, then the second blog's thumbnail did not show.

    Is there a solution? (is it the code quoted below, if yes where should I post it?)

    Thanks!


    Quote Originally Posted by dcowgill
    Try this code based off the get_current_site WPMU function.

    Code:
    $current_site = get_current_site();
    $cpath = $path . '/blogs.dir/' . $current_site->id .'/files/classipress/' . $_GET["url"];
    Thanks for this solution, it worked for me. Is there any way that the img_resize can autodetect which blog the photo is on? I tried $cpath = $path . '/blogs.dir/$blog_id/files/classipress/' . $_GET["url"]; but its not working.

Page 7 of 7 FirstFirst ... 567

Thread Information

Users Browsing this Thread

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