Results 1 to 7 of 7

Thread: Category image location

  1. #1
    Join Date
    Jan 2008
    Posts
    46

    Default Category image location

    I would like to make the category image show up on the category page, but not the index page. I thought I could find the code, remove it from the front page and copy it to the category page, but I can't find it.

    Thanks for any help!

    P.S. Banners are working now, thanks!

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

    Default

    What you want should be found in category.class.php

  3. #3
    Join Date
    Jan 2008
    Posts
    46

    Default

    But where is that ?

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

    Default

    Is it that hard to look for it? Try /lib/

  5. #5
    Join Date
    Jan 2008
    Posts
    46

    Default

    I did look, thanks. I looked in several folders, but apparently not the right one. Is it that hard to give a path?

  6. #6
    Join Date
    Jan 2008
    Posts
    46

    Default

    Well, I never figured out how to move it, but I just used a custom header and added a banner in that code. I'll just have to manually code each custom header/banner for the category, but it's no big deal.

    Thanks!

  7. #7
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by twomiracles View Post
    I would like to make the category image show up on the category page, but not the index page. I thought I could find the code, remove it from the front page and copy it to the category page, but I can't find it.

    I'm not sure if it what he was looking for but it may help someone who reads this later:

    the default category image is set in the setting.php file located in the themes/kosmos folder
    $cat_default_image = $site_url.'/themes/'.$active_theme.'/images/folder.gif';

    then in index.php and browse.php the default image is set with the following line
    $category_obj->default_image = $cat_default_image;

    The above will use the same image for all cats and subcats.

    of course you can set a different cat image from the subcat image.

    And if you edit the category in the Admin Control Panel, you can set a specific image for any category to override the default cat or subcat image.



    .
    Last edited by esm; 03-31-2008 at 09:58 PM.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

Similar Threads

  1. Image map for IndexU category list
    By Bruceper in forum Blocks and Modification
    Replies: 6
    Last Post: 01-29-2008, 12:30 AM
  2. Image for Category Listing
    By L.Murugesan in forum Tutorials, Hints & Tips
    Replies: 0
    Last Post: 05-26-2007, 10:32 PM
  3. Admin Who's Online Location
    By mbarnett in forum v5.x
    Replies: 4
    Last Post: 08-23-2006, 06:49 AM
  4. IP and Location are not showing up
    By Aircut in forum v5.x
    Replies: 0
    Last Post: 10-21-2004, 11:29 PM
  5. Replies: 3
    Last Post: 06-29-2004, 04:12 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
  •