- Previous: PhotoShow Authoring Widget
- Up: Using PhotoShow Tools
- Next: PhotoShow Viewer
Importing User Pictures
The PhotoShow authoring widget will, by default, allow users to add photos to their show from their local computer. You may also wish to allow them to add photos from your site. In order to do this, you will need to supply two additional callback functions in your configOptions object:
- getAlbumList: used to obtain a list of the albums the currently logged in user can see.
- getAlbum: used to obtain a list of the photos in a particular album.
For example:
<script type="text/javascript" src="http://api.photoshow.com/widgets/make_photoshow.0.1.0.js"/></script>
<script type="text/javascript">
var configOptions = {
postShow: 'http://www.mydomain.com/callbacks/post_photoshow.php',
sessionKey: 'sk_123h8324hrkl234',
userId: 'user_17',
viewerWidth: '320',
getAlbumList: 'http://www.mydomain.com/callbacks/photoshow_album_list.php',
getAlbum: 'http://www.mydomain.com/callbacks/photoshow_album_contents.php'
}
</script>
<a href="javascript:PhotoShow.widgets.launchMakePhotoShow('YOUR_DEVELOPER_KEY', configOptions);" title="Add a multimedia PhotoShow">Add a PhotoShow</a>
Both the launchMakePhotoShow and embedMakePhotoShow functions support getAlbumList and getAlbum.
- Previous: PhotoShow Authoring Widget
- Up: Using PhotoShow Tools
- Next: PhotoShow Viewer

Comments
Please sign in to post a comment.