Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Modifying XML file

Featured Replies

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.

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.

  • 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.

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.

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.