XRayden Posted June 20, 2008 Share Posted June 20, 2008 this is a picasaweb / simple viewer manipulation, it work... not as intented. you can specifie an album or a user and an album like that : http://www.sportsmotorises.com/newviewer/?album=17052008AutodromeChaudiere http://www.sportsmotorises.com/newviewer/?user=martin.bourget&album=StPierreDeBroughton when the user is not specified, the code use 'olivierlabbe" as a user, but in the php side. here is the code with "index.php" first I check for a user and an album. <?php if ($_GET['album'] == "") {print 'No album was specified'; } if (empty($_GET['user'])) { $userIDTag = ''; } else { $userIDTag = '\&user='.$_GET['user']; } ?> then it call the script. <div id="flashcontent">SimpleViewer requires Macromedia Flash. <a href="http://www.macromedia.com/go/getflashplayer/">Get Macromedia Flash.</a> If you have Flash installed, <a href="index.html?detectflash=false">click to view gallery</a>.</div> <script type="text/javascript"> var fo = new SWFObject("viewer.swf", "viewer", "100%", "100%", "7", "#000000"); fo.addVariable("preloaderColor", "0xffffff"); fo.addVariable("xmlDataPath", "<?php print "PicasaViewer.php?album=" . $_GET['album'].$userIDTag; ?>"); fo.write("flashcontent"); </script> it work when only an album is there, but when a user is specified... do not work. i've checked and the page generated by "<?php print "PicasaViewer.php?album=" . $_GET['album'].$userIDTag; ?>" is working (output an xml) so I thought it was the "&" that was not working I tried : \&, &, \& none of it worked... got an idea? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.