July 30, 201115 yr I am using the Piecemaker 2 3D Slider in my HTML page. The images will be extracted from the XML file: <?xml version="1.0" encoding="utf-8"?> <Piecemaker> <Contents> <Image Source="image/image1.png" Title="Image 1"></Image> <Image Source="image/image2.png" Title="Image 2"></Image> </Contents> </Piecemaker> The question is, how am I going to make the <content> part as a php loop function so that any new picture uploaded to the image folder, the XML file will automatically get the new image and put it on the slider loop? Something like this: <?xml version="1.0" encoding="utf-8"?> <Piecemaker> <Contents> <?php while ($row = mysql_fetch_array($result)) { echo $image; } ?> </Contents> </Piecemaker> Thanks.
July 30, 201115 yr how are the images being uploaded? They do have a wordpress installation tutorial http://net.tutsplus.com/tutorials/wordpress/integrating-the-piecemaker-3d-gallery-into-your-wordpress-theme/ that will write anything to the .xml file. Remember that this .xml file is being read by Flash's actionscript so you won't be able to just stick some php in it and hope for the best. The best solution, apart from not using Flash and a awful slider in the first place, would be to look at modifying the action script to not look at the .xml file in the way it does and just scan the image folder.
August 2, 201115 yr Author I am applying the slider in my HTML page, not Wordpress. So, basically the image will be uploaded using a custom HTML form that will upload the image into the image folder in the root directory. modifying the action script to not look at the .xml file in the way it does and just scan the image folder Can you teach me how on earth can I possibly do that? That will actually solved my problem. I don't have to teach the client how to add the slider to the website using manual method like modifying the XML files.
August 2, 201115 yr no I can't teach you. Well unless you want to part with a lot of money. Maybe look at a different slider or don't offer the client solutions you cannot deliver.
August 3, 201115 yr Author Think you hit the nail on the head there The solution has been delivered. Now its the process of improving the administration of the website.
Create an account or sign in to comment