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

Thread: Merging 2 scripts

  1. #1
    Join Date
    Apr 2006
    Posts
    429
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Merging 2 scripts

    can i merge

    http://www.dynamicdrive.com/dynamici...ongallery2.htm

    with

    http://www.dynamicdrive.com/dynamici...photoalbum.htm

    so that i dont have to enter the image urls manually? tnx

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

    Default

    I helped do something like this recently. Search.
    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!

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

    Default

    It's here:

    http://www.dynamicdrive.com/forums/s...t=10016&page=2

    but I still couldnt get it to work.


    Nelson

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

    Default

    Code:
    <?php
    // getpics.php
    $directory = "."; // Directory in which the images are stored, relative to the location of this script. Must have the slash.
    
    header("Content-Type: text/javascript");
    $dir = opendir($directory);
    for($i=0;$file = readdir($dir);$i++)
    if(strpos($file, ".") === 0) {
      $i--;
      continue;
    } else echo("fadeimages[$i]=['$directory/$file', '', ''];\n");
    ?>
    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
    May 2006
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    If you go to :

    http://www.protestantlawyersny.org/test.htm

    you will see Twey's solution in action, except that:

    1- I no longer can show two pictures side by side
    (the second array doesnt seem to load)

    2- there is an error generated on the page

    3- the link effect on each pic is no longer enabled (not that I really see a need for such an effect).


    Nelson

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

    Default

    nelsontimken, please only post in one thread.

    Here is my response to that.
    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
    Apr 2006
    Posts
    429
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    how recently? an hour ago? how many weeks ago?
    an estimate number of "recently" would be fine...
    coz im searching all threads where u have posted and i might need a time frame to start looking and not go thru all the 500+ threads tnx

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

    Default

    nelsontimken found it fine, and linked to it above.
    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
    Apr 2006
    Posts
    429
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    but what nelson linked is Ultimate Fade In Slideshow

    but what im asking is combining CMotion and PHP Album script?

    is Ultimate Fade same as CMotion?

    i should have posted the scripts' title and not just its link....

    my mistake...

  10. #10
    Join Date
    Apr 2006
    Posts
    429
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    anbody there can help me?

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
  •