Photos directly on free personal page?

Mafaro -  
 mafaro -
Comment ouvrir "directly" a full photo folder on a Free personal page without the redirector that "closes" the index (Free offers this)?
Indeed, I do not want to manually insert 100 photos on an HTML page. I have already transferred the folder containing the photos via FTP to Free.
Thank you for your explicit answers.

14 answers

  1. dugenou Posted messages 6262 Status Contributor 1 455
     
    If you use SPA, I can try to help you.
    It's actually very simple, just place the index.php file in the folder containing the photo files.
    You can simply create a link from an index.html page located at the root of your site to the index.php file in the photo folder.
    Furthermore, you can modify the album configuration by editing the index.php file in Windows Notepad and changing this part:

    // START OF PARAMETERS SECTION $doc_title = "Album generated by Simple Photo Album"; //web page title $columns=4; //number of images per line $ratio=5; //ratio imageSize / thumbnailImageSize $quality=5; //thumbnail image quality (0: worst to 100:best) $scriptname= "index.php"; //filename of this script $thumb_dir = "thumb"; //directory created to stored small images $thumb_prefix = "thumb_"; //prefix for generated images // END OF PARAMETERS SECTION


    You can modify the page title, the number of thumbnails, the number of columns, the photo quality, the name of the folder where the thumbnails will be stored, etc.

    You can of course change the background color, text color, etc. just like in any HTML page.

    At the bottom of the script, you can also translate the text that will be displayed at the bottom of the slideshow, and even by adding the last line of this script, automate the slideshow:

     $prevnumber = $filenumber - 1; $filestab[$prevnumber] = str_replace(" ","%20",$filestab[$prevnumber]); // Allow filenames with space characters echo "["; echo " << Previous] \n"; } echo "   [Index]  \n"; echo " \n" ; if ($filenumber != $nbfiles) { $nextnumber = $filenumber + 1; $filestab[$nextnumber] = str_replace(" ","%20",$filestab[$nextnumber]); // Allow filenames with space characters echo "["; echo "Next >> ]\n"; echo "\n\n<meta http-equiv="Refresh" content="10;URL=$scriptname?ishome=1&amp;filename=$filestab[$nextnumber]&amp;filenumber=$nextnumber" />\n\n";


    See you!
    3
    1. MAFARO Posted messages 13 Status Member
       
      You're a GOD........Thank you so much, I've been struggling for two days...
      I didn't do everything you suggested, but I properly placed index.php and the link and it works.....
      0
  2. dugenou Posted messages 6262 Status Contributor 1 455
     
    Hello,

    You might consider using a photo album script in PHP, I really like SPA (Simple Photo Album) without a database, see at this address:

    http://www.phpscripts-fr.net/scripts/scripts.php?cat=Galeries+%2F+Images

    Good luck.
    0
    1. MAFARO Posted messages 13 Status Member
       
      Thank you, I looked: I think it's exactly what I want to do; I don't read English; but can you help me set it up, I'm too much of a beginner
      thank you dugenou (I checked your links)
      0
  3. MAFARO Posted messages 13 Status Member
     
    Thank you, I looked: I think this is really what I want to do; I don't read English; but can you help me set it up, I'm too much of a beginner
    thanks dugenou (I checked your links)
    0
  4. MAFARO Posted messages 13 Status Member
     
    Can you help me with the quality of the photos; I changed the quality to 100 but it's still not as nice as in the demo....
    0
  5. dugenou Posted messages 6262 Status Contributor 1 455
     
    No, I'm sorry, I don't really know how to play with the quality of the photos. The only thing I've noticed is that it's better if the photos aren't too large.
    0
    1. MAFARO Posted messages 13 Status Member
       
      Thank you for all your help.
      0
  6. jojoledémago
     
    Hello!
    I tried to implement your solutions, so I created the index.php in my photo directory, but I don't know how to create the index.html link. I suppose it's simple, but once again, when you know!...
    In managing my personal page, my only options are to upload a file or create a directory...
    Thank you for your responses.
    0
  7. jojoledémago
     
    I'm completely LOST!!!!!!!!
    Here it is, I admit, I'm a complete beginner, actually, I just want to share my photos by providing a preview of them from my personal page on Free because I've already created an FTP server on my machine, but there's no way to create previews...
    I'm trying to use Macromedia Dreamweaver MX 2004 to manage this page, so I've managed to create the link from index.html to index.php, I've placed it in my local root folder and copied it to the root folder of my personal page, when I open my personal page, I get the opening of index.html with the link I titled "Photos," but when I click on it -> impossible to display the page!...
    Please find the error, I'm really struggling
    Thanks in advance for any advice
    See you soon
    0
  8. dugenou Posted messages 6262 Status Contributor 1 455
     
    Hello,

    Did you create an images or photos folder at the root of your site to put the index.php file and your photos?

    If so, the link on your index.html page to the index.php file should be in the following form:

    <a href="photos/index.php">My photos</a>

    Remember to include a link in the index.php file to return to your site's homepage, which is:

    <a href="../index.html">Back to homepage</a>

    See you later
    0
    1. jojoledémago
       
      I'm starting to understand the thing!...

      But it doesn't quite suit me; if I proceed this way, I am forced to upload my photos first to Free's FTP, which is limited to 1GB. However, some of my photos are quite large, and my interest, as well as that of potential users, is not to reduce them. So would it be possible to display only a preview of the images, allowing users to download only the photos they want from my personal FTP (which, of course, is not limited but is very slow in return)?

      Thanks again.
      0
      1. jojoledémago > jojoledémago
         
        With a link suggested from the preview directly on my personal FTP, if it's not too much to ask!...
        0
  9. dugenou Posted messages 6262 Status Contributor 1 455
     
    It may be possible, but I don't know of any ready-made script for that.

    Look towards sites that offer scripts:

    http://www.phpscripts-fr.net/

    http://www.phpcs.com/index.aspx

    http://www.01php.com/index.php?PHPSESSID=83db2e03bb104f91529cbbf2a48a6155

    Good luck.
    0
    1. mafaro
       
      Re-hello,
      Do you know how to automatically add a sound when opening index.html
      or/and add a sound when opening a page x or by clicking on an image.....
      Thank you for the explanations.
      0
  10. dugenou Posted messages 6262 Status Contributor 1 455
     
    Good evening,

    You can put this in the body of your page:

    <embed src="fichier.mid" volume="100" hidden="true" autostart="true" loop="true">


    but I wouldn't recommend it, as it's quite annoying for the visitor.

    Alternatively, you could put it in a popup that the visitor can close or leave open if they wish.

    Personally, when I surf, I listen to music or the radio on my hi-fi system and turn the sound off on my computer.

    Good luck.
    0
    1. mafaro
       
      Thank you for your reply
      I only want to add a short sound, about 4 to 5 seconds, when opening either the homepage or when opening a link that points to a photo folder (for example......)

      You are talking to me about the body part (?????), a popup? How to do it or link
      Thank you for your help, my motto being: those who share enrich themselves....
      0
  11. dugenou Posted messages 6262 Status Contributor 1 455
     
    The body part is the part of your page located between the opening tag <body> and the closing tag </body>

    For the popup, there are several solutions, here is the script I use on my sites:

    to be placed in the body part of the page, the script that determines the popup, the toolbar, address bar, scrollbar, resizing, etc. (0 or 1), its size and its position:

    <script language="javaScript"> function musique(){ win1=window.open("musique.html","","toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=500,height=400") win1.moveTo(screen.width/2-100,screen.height/2-100) } </script>


    then the link:

    <a href="javascript:;" onClick="musique()">Music</a>


    You also need to create an HTML page (musique.html, in the example), where you will place the script:

    <embed src="file.mid" volume="100" hidden="true" autostart="true" loop="true">


    (I believe you need to remove loop="true" for the piece to play only once)

    and add a close button:

    <input type="button" value="Close" onClick="self.close()" name="button">


    See you!
    0
  12. lina
     
    Je suis en train de créer un album photo avec PHP. Voici
    qu'avec un formulaire HTML, je saisis le dossier où se trouvent les photos et, avec cela, le programme PHP crée des fichiers HTML qui contiennent des vignettes et des fichiers HTML qui contiennent les agrandissements des photos. Tout cela fonctionne bien, mais mon problème est de pouvoir afficher directement ma première page de vignettes, qui se trouve dans le dossier saisi, après l'exécution du formulaire. Quand je mets un lien vers cette page, cela ne fonctionne pas.
    Merci pour votre aide.
    0
  13. maco
     
    Salut le monde. I need to add one or more images to an HTML page. Please help me. I'm counting on us.
    0
  14. mafaro
     
    Hello Maco,
    do you have the previous messages? Cartu has the answers....:-)
    0