see live demo!

Not signed in (Sign In)

Categories

 

buy Monoslideshow

via PayPal / credit card

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorrepeater
    • CommentTimeDec 24th 2009
     permalink

    Hello folks,
    just my simple script to build the image part in the XML.
    Have fun,
    Robert
    ##############################

    <html>
    <head>
    <title>partial output for XML data </title>

    </head>
    <?
    //partial output for XML data
    //by robert wagner
    //[email protected]
    //it's free, have fun!

    //secure: after getting data you can switch off with changing $on to 0
    $on=1;

    if ($on=="1")
    {

    $neuesDir="";
    //e.g.: $neuesDir="cms/pictures/2008/";

    $dh = opendir($neuesDir);
    while (false !== ($filenames = readdir($dh)))
    {

    if ($filenames=="." || $filenames=="..")
    {

    }
    else

    {
    $bilder[] = $filenames;
    }
    }
    closedir($dh);
    $anzahlBilder=count($bilder);

    //output number of pictures in directory
    //echo $anzahlBilder;

    for ($i=0;$i< $anzahlBilder;$i++)
    {

    //monoslideshow 1 xml paramenter
    //echo '\n<img source="'.$bilder[$i].'" thumbnail="'.$bilder[$i].'" />';

    //monoslideshow 2 xml paramenter
    echo '<image source="'.$bilder[$i].'" />';
    echo "\n";
    }
    }
    ?>
    <body>
    </body>
    </html>

    Thankful People: Jarredja

monokai logo © 2009 Monokai, all rights reserved. Buy Monoslideshow.