Results 1 to 11 of 11

Thread: Default Category Image Removal

  1. #1
    Join Date
    Apr 2006
    Posts
    447

    Default Default Category Image Removal

    How do you go about removing the default category image?

    I removed

    $cat_default_image = $site_url.'/themes/'.$active_theme.'/images/star.png';

    from settings.php. Strangely, however, the image remained in several category pages.

    Any help is appreciated.

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

    Default

    Admin Panel -> Categories -> Edit Categories. You can set each category to have its own unique image, or all the images to be the same.
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  3. #3
    Join Date
    Apr 2006
    Posts
    447

    Default

    okay, but i have thousands of categories. isn't there one place in the code where the image can be removed?

    btw, i am not an comfortable with sql ... so a database command may be beyond me.

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

    Default

    Goto the Admin Panel -> Database -> Find and Replace

    Select Table = idx_category
    Select Field = image
    Find What = folder.gif ( I think this is the default but whatever the file name currently is enter it here )
    Replace With = <your_new_image_name>.gif ( it doesn't have to be gif )

    Let me know if that helps
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  5. #5
    Join Date
    May 2006
    Posts
    20

    Default

    Another idea (I have not tested this) is to replace the file by another one with same name with 1x1 pixel dimension.

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

    Default

    FSGDAG showed the proper way to replace the image name. But yes, the image could be replaced by a transparent image of a 1x1px image of the same colour background as the page.

  7. #7
    Join Date
    Apr 2006
    Posts
    447

    Default

    okay. so there is no way to remove altogether the image reference? just workarounds to hide.

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

    Default

    Quote Originally Posted by CEC View Post
    okay. so there is no way to remove altogether the image reference? just workarounds to hide.
    Yes... The method I stated with "Find and Replace" will allow you to change the image file name for ALL of your categories at one time.

    The other suggestion XSmith makes about having a transparent image that is a 1x1px is good if you want no image. Just create it as the same filename ( folder.gif ) and replace the current file thats there.
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

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

    Default

    You can remove the image if you want to edit the code.

    Edit /lib/category.class.php

  10. #10
    Join Date
    Apr 2006
    Posts
    447

    Default

    thanks for the help.

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

    Default

    Most users are afraid of editing code, so the solutions we typically offer are the easy ones.

Similar Threads

  1. Copyright removal
    By Bruceper in forum Announcements
    Replies: 17
    Last Post: 01-30-2009, 04:11 PM
  2. Removal of powered by indexU
    By trout in forum Pre-Sales Questions
    Replies: 1
    Last Post: 10-29-2005, 09:12 PM
  3. Add default Category description, meta, title, ...
    By HottieListings in forum v5.x
    Replies: 0
    Last Post: 08-15-2005, 12:39 PM
  4. How to Change category default image?
    By althahabi in forum v5.x
    Replies: 5
    Last Post: 02-01-2005, 07:53 AM
  5. Default image for links
    By manuel_pr in forum v5.x
    Replies: 5
    Last Post: 01-28-2004, 11:04 AM

Posting Permissions

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