View Poll Results: What Improvment would be best

Voters
3. You may not vote on this poll
  • Have the script search multple directories?

    0 0%
  • Sort out only GIF or JPG files to display?

    1 33.33%
  • Online configuration tool?

    1 33.33%
  • More instructions

    1 33.33%
Results 1 to 10 of 10

Thread: [DHTML] CMotion Image Gallery Extended with PHP

  1. #1
    Join Date
    Jun 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default [DHTML] CMotion Image Gallery Extended with PHP

    1) CMotion Image Gallery Extended with PHP
    2) Nick Reale www.handyheroes.com

    3) I took the CMotion Image Gallery and extended it to read a directory of thumbnails, place the code into the CMotion image gallery and display the thumbnails. Very simple. There are only four configurable variables.

    4) http://www.shellyreale.com/demo/demo2.php

    or, ATTACHED BELOW (see #3 in guidelines below):

  2. #2
    Join Date
    Jul 2005
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Good call man! Very easy to use and makes this script a killer.

    Is there any way to add an automatic image resize to this script?
    and
    Is there any way to have the php in a separate file like the DD PHP Photo Albumn script?
    -Jonthan

  3. #3
    Join Date
    Jun 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The only way to do an image resize is either put in hard coded /variable image sizes in the PHP code or use a server side tool like Image Majik. Most servers don't provide that function so I did not include it.

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    It's Image Magick Actually, it's possible to use the GD image-manipulation library, which most servers support.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Jun 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks Twey.. I'll give it a shot.

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Not all though -- remember to include a check:
    Code:
    $serverHasGD = function_exists("imageCreateFromGIF");
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Jul 2005
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok, this may be a stretch, but is it possible for the script to create the full-size image and the thumbnail? Or assuming that the file you upload is the full-size image, could the script keep that image and create an additional thumbnail?
    -Jonathan

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Of course.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Jul 2005
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok, let me have one of those, a small fries and large DP...

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

    Default

    A nice simple add-on. There are probably a lot of scripts on DD that could benefit from a corresponding backend script, namely, the scroller and image related scripts.

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
  •