Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: PHP Photo Album script v2.0 - sortby:date/desc doesnt appear to work properly

  1. #1
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default PHP Photo Album script v2.0 - sortby:date/desc doesnt appear to work properly

    1) Script Title: PHP Photo Album script v2.0

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...photoalbum.htm

    3) Describe problem: I set the gallery to sortby: ["date", "desc"], //["file" or "date", "asc" or "desc"] and the gallery doesnt show (only tested in IE7) although its fine when sorted ["date", "asc"]
    Last edited by Beverleyh; 08-08-2009 at 04:16 PM. Reason: corrected code

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    If "asc" for date works, then "desc" should also work, since all the script does is reverse the results of the former. Do you have a URL to the problem page? Be sure to enable "autodesc" to show the date ("%d"), so we can easily see the dates of each image.
    DD Admin

  3. #3
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Here's the page with the sortby set to ["date", "asc"]: http://temp.jemcon.org/images.php

    And here's the page with the sortby set to ["date", "desc"]: http://temp.jemcon.org/images1.php

    autodesc is set to "%d" for both.

    Please note - there are other javascripts on the pages, but both are identical other than the above sortby setting, so why would one work in IE and not the other? (confused)
    (I also tried the script on a basic version of the page, without any other javascripts, and experienced the same problem)

    Additional: The "["date", "desc"]: http://temp.jemcon.org/images1.php" page works fine in FireFox and Safari - its just IE that doesnt like it.
    Last edited by Beverleyh; 08-08-2009 at 09:43 PM. Reason: Additional note re:IE

  4. #4
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Should this thread be moved to the main "Dynamic Drive scripts help" forum?

    I've redownloaded/reinstalled the script but still cannot get it to work with sortby set to ["date", "desc"], in IE.

    Is this just a problem with me as I see you have a note on the script page that says its compatiable with FF1+, IE5+ and Opr7+ ?

  5. #5
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    In IE8 at least, I don't see the gallery on image1.php actually. I do see it on image.php though. Is there something in the former that may be hiding the gallery for me in IE?
    DD Admin

  6. #6
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    hi again ddadmin,

    No, the pages are exactly the same apart from the sortby setting of the gallery being ["date", "asc"] in the image.php page but ["date", "desc"] in the image1.php page.

    I have used IETester to view the pages in all versions of IE but the ["date", "desc"] gallery in image1.php is not visible in any. (I have IE7 installed and set to my default browser)

    I hope you can fix it as the upgrade really is a lovely gallery script.

  7. #7
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Ok I see what you mean now. Basically the "desc" didn't work in IE due to one of those IE specific "quirks". I believe I've fixed the issue- just revisit the script, and replace both "ddphpalbum.js" and "getalbumpics.php" with the revised versions.
    DD Admin

  8. The Following User Says Thank You to ddadmin For This Useful Post:

    Beverleyh (08-11-2009)

  9. #8
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Thats wonderful! - thank you for the fix, ddadmin

  10. #9
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Hi ddadmin,

    I've found another little bug, this time with the navigation links underneath the gallery.

    As soon as the page button links exceed the gallery width and jump to the line below, they overlap the page button links on the line above - see page button link 14: http://www.jemcon.org/upload_gallery.php

    I tried adding margin-bottom:5px; to the .albumnavlinks a class (under margin-right:5px in the CSS file, but that didnt work.

    Can you look into this for us please too?
    Last edited by Beverleyh; 08-12-2009 at 08:48 PM. Reason: corrected spelling mistakes

  11. #10
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    OK - I've been playing a little more with the CSS and come up with something that works in IE but not in FireFox or Safari.

    I added the CSS below to the appropriate areas of the stylesheet:

    Code:
    .albumnavlinks{ /*CSS for DIV containing the navigational links*/
    width: 100%;
    
    .albumnavlinks a, .albumnavlinks a.current:hover{ /*CSS for each navigational link*/
    height: 18px;
    margin-bottom: 5px; 
    display: inline;
    Which looks like this: http://www.jemcon.org/upload_gallery.php

    I'm still having no joy with FireFox or Safari and the navigation button links in the 2nd row still overlap to row above.

    If anyone could offer any further assistance, I would be very grateful.

    Thanks

    Beverley

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
  •