Results 1 to 6 of 6

Thread: Lightbox image viewer 2.03a - Not working on server

  1. #1
    Join Date
    Feb 2010
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Lightbox image viewer 2.03a - Not working on server

    Script Title: Lightbox image viewer 2.03a

    http://www.dynamicdrive.com/dynamici...box2/index.htm

    I have the script working on my local computer but when I upload the site to a remote server the script breaks. When an image is clicked the full size photo loads in a new blank page.

    I have the Lightbox files arranged in my site root like this:

    Site Root/
    Lightbox2.03a/
    js/
    images/
    css/

    Being that it works on my local drive I don't know what to change to make it work on a server. See link for site:

    http://www.midcoast.com.au/~christo2...e/gallery.html

    Christo

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    The files that power it on your server have the wrong permissions.
    Corrections to my coding/thoughts welcome.

  3. #3
    Join Date
    Feb 2010
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the fast reply. What do I do to change the permissions? I'm a newbie to all this stuff.

  4. #4
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    These files need to be accessible

    Code:
    <script type="text/javascript" src="lightbox2.03a/js/prototype.js"></script>
    <script type="text/javascript" src="lightbox2.03a/js/scriptaculous.js?load=effects"></script>
    <script type="text/javascript" src="lightbox2.03a/js/lightbox.js"></script>
    <link rel="stylesheet" href="lightbox2.03a/css/lightbox.css" type="text/css" media="screen" />
    In an ftp program right click (control+click) the files or the directory and make them accessible to all. You can make them 777 or 755.
    Corrections to my coding/thoughts welcome.

  5. The Following User Says Thank You to bluewalrus For This Useful Post:

    Christo70 (02-22-2010)

  6. #5
    Join Date
    Feb 2010
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Hi,

    Tried that. Permissions for those file are already et to 755.

    I don't understand why it works locally but not on a remote server.

  7. #6
    Join Date
    Feb 2010
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Ahh, after hours of looking for other solutions I realised permissions need to be applied to the lightbox folder as well!

    It works, thanks!

Bookmarks

Posting Permissions

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