Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Admin stylesheet, setting a background image - forbidden

    Ok before you all ask i know how to set a background image and yes the image is there, and yes I have tried changing various settings/permissions.

    Basically all i want is to set background images on various parts of admin using the stylesheet

    This is my call in the admin stylesheet.css

    body {
    background-image: url("images/header-bar.jpg");
    background:#fff;
    color:#333333;
    font-size:12px ;
    font-family: arial, helvetica, sans-serif;
    }

    However nothing appears, so when i try directly accessing the file (while logged into admin)

    Forbidden

    You don't have permission to access /admin/includes/images/header-bar.jpg on this server.

    When i check my server logs I get

    [Mon Jan 16 18:23:48 2012]
    [error]
    [client my-ip]
    client denied by server configuration: /home/grumpyki/grumpykiwi.com/html/admin/includes/images
    So i am guessing you cannot access images from the admin images folder via the stylesheet?
    Webzings Design
    Semi retired from Web Design

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Admin stylesheet, setting a background image - forbidden

    It's probably blocked by .htaccess, but that would only happen if you've altered the original .htaccess files supplied with Zen Cart.

    Question, why don't you use the /admin/images/ folder instead of /admin/includes/images/ ?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: Admin stylesheet, setting a background image - forbidden

    Doh, thankyou i just needed to change the css call

    from

    background-image: url("images/header-bar.jpg");

    to

    background-image: url("../images/header-bar.jpg");


    I somehow missed that it was adding the include folder

    Cheers

    Quote Originally Posted by DrByte View Post
    It's probably blocked by .htaccess, but that would only happen if you've altered the original .htaccess files supplied with Zen Cart.

    Question, why don't you use the /admin/images/ folder instead of /admin/includes/images/ ?
    Webzings Design
    Semi retired from Web Design

 

 

Similar Threads

  1. Adding a background image/texture to stylesheet.css
    By irori in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 28 Jul 2012, 10:52 AM
  2. Manufacturer image in product listing admin setting
    By familynow in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Nov 2011, 07:03 PM
  3. admin small image setting messes everything
    By poosk in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Apr 2009, 07:06 PM
  4. add background image to a attribute then have that background image act as hyperlink
    By sike1234 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 14 Nov 2008, 05:38 PM
  5. Changing to Background image in stylesheet?
    By stormysar in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 9 Feb 2008, 06:04 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
  •  
disjunctive-egg