Results 1 to 5 of 5

Thread: PHP Photo Album script v2.11

  1. #1
    Join Date
    Nov 2010
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default PHP Photo Album script v2.11

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

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

    3) Describe problem:
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>home</title>
    
    <script type="text/javascript" src="photo/getalbumpics.php?id=photo"></script>
     
    <script type="text/javascript"> 
    photo.desc[2]="This picture has a custom description."
    </script>
     
    <script type="text/javascript" src="ddphpalbum.js"> 
     
    /***********************************************
    * PHP Photo Album script v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
    ***********************************************/
     
    </script>
     
    <link rel="stylesheet" type="text/css" href="ddphpalbum.css" />
    
    </head>
    
    <body>
    
    <script type="text/javascript">
    
    new phpimagealbum({
    	albumvar: photo, //ID of photo album to display (based on getpics.php?id=xxx)
    	dimensions: [3,2],
    	sortby: ["file", "asc"], //["file" or "date", "asc" or "desc"]
    	autodesc: "Photo %i", //Auto add a description beneath each picture? (use keyword %i for image position, %d for image date)
    	showsourceorder: true, //Show source order of each picture? (helpful during set up stage)
    	onphotoclick:function(thumbref, thumbindex, thumbfilename){
    		thumbnailviewer.loadimage(thumbref.src, "fit2screen")
    	}
    })
    
    </script>
    
    </body>
    </html>
    Whats wrong in this code? Opens empty page.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    IDK. Maybe you don't have a PHP enabled server. Maybe you do, but it doesn't like the PHP code in the getalbumpics.php file. That's just to name two, there could be so many things, many having nothing to do with PHP. It could be more than one thing.

    To have even a chance of being able to tell for sure we would need a link to the live page:

    Please post a link to a page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Nov 2010
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Very interesting. Has loaded page on a hosting there all operations normally.)))
    Sorry.

    Problem with my local hosting.

  4. #4
    Join Date
    Nov 2010
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    How to adjust align center?

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    As with most advanced scripts, you probably should avoid using align center. Instead one may use the css margin: 0 auto; style on a container of explicit width to center it. This requires a DOCTYPE that invokes standards compliance in IE.

    If you want more help:

    1. Please be specific about what you want centered and in relation to what.
    2. Please post a link to a page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •