Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Aug 2007
    Posts
    9
    Plugin Contributions
    0

    Default Randomizing the header_bg image

    hi

    I'm having issues setting the header_bg image to randomize.

    I've tried both the css method and the src= method, with three different php random scripts, and non of them works.

    Alt text shows, so I know I have the file paths correct. There's no instruction with any of the scripts regarding permissions (I have the php files in the templates/CUSTOM/images folder and the css files in the templates/CUSTOM/css file) so I wonder if this is the issue?

    I wonder if anyone has any suggestions?

    Thanks
    Christian

  2. #2
    Join Date
    Apr 2006
    Posts
    265
    Plugin Contributions
    0

    Default Re: Randomizing the header_bg image

    If the alt text is showing, most likely the file paths are NOT correct.

    Do you have a link?

    BrandTim

  3. #3
    Join Date
    Aug 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Randomizing the header_bg image

    Quote Originally Posted by brandtim View Post
    If the alt text is showing, most likely the file paths are NOT correct.

    Do you have a link?

    BrandTim
    indeed:

    http://www.fairytalemail.co.uk/index.php

  4. #4
    Join Date
    Aug 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Randomizing the header_bg image

    I should add the image path is

    http://www.fairytalemail.co.uk/inclu.../header_bg.jpg

    and this sits in the space labelled "Featured Products"

  5. #5
    Join Date
    Apr 2006
    Posts
    265
    Plugin Contributions
    0

    Default Re: Randomizing the header_bg image

    Taking a brief look at your code, the img src is this:
    http://www.fairytalemail.co.uk/inclu...der/rotate.php

    but you want it to be this:
    http://www.fairytalemail.co.uk/inclu.../header_bg.jpg

    Not sure exactly why you're trying to use a php file as the src for an image (although it can be done). It would be much better if you called the php file which then either returned or echoed the src URL.

    Regardless, your file path is definitely not what you want it to be.

    BrandTim

  6. #6
    Join Date
    Aug 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Randomizing the header_bg image

    I'm not sure where you're getting the

    http://www.fairytalemail.co.uk/inclu...der/rotate.php

    from, as I can't find that anywhere.

    Not sure why I was rambling about the alt text, however, what I meant to say was that attempting to open

    http://www.fairytalemail.co.uk/inclu...ader/image.php

    gives me a 403 error - I expect that this is right, and the filepath is right. It's the same file in the src: includes/templates/santa/images/header/image.php - and the same location as http://www.fairytalemail.co.uk/inclu.../header_bg.jpg which of course opens.

    That's why I suspected a permissions issue in the firstplace, as there seems to be no fauilt with the filepaths

 

 

Similar Threads

  1. moving the navigation bar to just below the header_bg image?
    By silver500 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Nov 2011, 12:26 AM
  2. Another Randomizing Items Question
    By DK_Scully in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 24 Jan 2011, 08:53 PM
  3. How to add another Image each side of header_bg
    By butchx5 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 15 Jan 2009, 03:29 PM
  4. Product Sort Order keeps randomizing
    By muzikladie in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 6 Aug 2007, 04:03 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