Results 1 to 14 of 14

Thread: folder.gif is not displayed

  1. #1
    Join Date
    Aug 2008
    Posts
    18

    Default folder.gif is not displayed

    the real path is domain/themes/kosmos/images/folder.gif
    but in my site is domain/category/themes/kosmos/images/folder.gif
    pls visit with IE http://top-best.ro/internet/

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Check your application.php for incorrect paths

  3. #3
    Join Date
    Aug 2008
    Posts
    18

    Default

    the paths are
    Code:
      $site_url               = "http://top-best.ro";
      $base_path              = "/home/top/public_html/";
      $theme_path             = $base_path . "themes/";
      $admin_template_path    = $base_path . "admin_tpl/";
    
      $plugin_path            = $base_path . "plugin/";
    is ok

  4. #4
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default

    the rest of the images of your theme loaded fine and there in the <%$tpl_base%>/images folder, so all i can think of is either folder.gif is corrupt (or does not exist) or theres a problem with your category.class.php file that lives in your lib directory.

  5. #5
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

    Default

    I do not think the folder.gif file is corrupt as it works

    http://top-best.ro/themes/kosmos/images/folder.gif

    .... but try adding;

    <base href="<%$site_url%>/" />
    to your hearder.html file in between <head> and </head>
    Last edited by Mitchell; 08-18-2008 at 06:53 PM.

  6. #6
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    I had this same exact problem on my Web4Bids.com site. Inspireme did me a favor and fixed it. When I asked him what needed to be done, I got this reply:

    I had to hard code the link to the folder image in category.class line 460 must be a bug.
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  7. #7
    Join Date
    Aug 2008
    Posts
    18

    Default

    PHP Code:
    <base href="<%$site_url%>/" /> 
    this waz the solution, thanx Mitchell

  8. #8
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

    Default

    Quote Originally Posted by icesoul View Post
    , thanx Mitchell
    No problem, to me it look like a bug but no one is acknowledging it!
    Last edited by Mitchell; 08-20-2008 at 04:17 AM.

  9. #9
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

    Default

    Okay,

    Looks like the bug is fixed, here is the solution, you can remove the above code from the header and instead change the following file!


    /lib/category.class.php


    Around line 240 change the follwing;

    // next looping
    $cat = $parent_id;
    }
    to

    // next looping

    $cat = $parent_id;
    }

    Around line 457 change the following;

    $cat_image = $this->default_image;
    else
    $cat_image = $this->image_path . $cat_image;

    $image = "<img src=\"$cat_image\" border=\"0\" alt=\"\" />";

    if ($this->default_image == "" && $cat_image == "")
    to


    $cat_image = $this->default_image;
    else
    $cat_image = $site_url.'/'.$this->image_path . $cat_image;

    $image = "<img src=\"$cat_image\" border=\"0\" alt=\"\" />";

    if ($this->default_image == "" && $cat_image == "")

  10. #10
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    It's not a bug that I'm aware of. If I remember correctly, there was a post about this same issue a few months back and the issue was determined to be caused by the script not being able to "read" the domain name. Adding base href fixes the issue quickly.

  11. #11
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

    Default

    Mind you changing the /lib/category.class.php code will fix the Category Images issue but not the other images issue such as Google PR, Member Reviews or Visitor Ratings images, they are still invisible.

  12. #12
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default

    This might be the thread you were talking about
    http://www.nicecoder.com/community/s...1&goto=newpost

    I had a simmalar issues with the custom field as an image and i had to put the slash on also

  13. #13
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    If it's custom image, it's a real bug
    We have fixed today.

    code fix is here

  14. #14
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

    Default

    Quote Originally Posted by dody View Post
    If it's custom image, it's a real bug
    We have fixed today.

    code fix is here
    Hi Dody,

    It is not completely fixed!
    Still Google PR, feedback and listing page image are not loading. The fix only allow the category inages to load but not the others.

    Cheers
    Mitchell

Similar Threads

  1. Amount of links displayed per page.
    By lewisw in forum v3.2
    Replies: 3
    Last Post: 08-18-2003, 06:12 PM
  2. How Are the links Displayed???
    By lordkinjo in forum v5.x
    Replies: 2
    Last Post: 06-21-2003, 06:06 PM
  3. Links displayed in columns, not in rows
    By chorch in forum v5.x
    Replies: 4
    Last Post: 03-06-2003, 03:32 PM
  4. Replies: 0
    Last Post: 01-11-2003, 10:09 PM
  5. subcategories displayed in main page
    By marko in forum v5.x
    Replies: 1
    Last Post: 10-17-2002, 06:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •