Topic: Putting simpleviewer in php pages of current website

We have a database driven website that uses php. I would like to show my simpleviewer gallery within the existing framework of our current webpage. But I have been unsuccessful in accomplishing this.

If anyone could help with this I would greatly appreciate it. Thanks

Re: Putting simpleviewer in php pages of current website

I need this also ,..same deal, someone please reply.  :?:   :shock:

Re: Putting simpleviewer in php pages of current website

I am by no means an expert either with php or with simpleviewer, but I ran into this problem myself and have remedied it to some extent. I'll give you a url, but the page is under construction (and I'm no expert), so be kind. :-) Temporary url http://centaurus.dnshostbase.com/~commu … photos.php and http://centaurus.dnshostbase.com/~communihome page These are temporary links, so they may go down at the end of November 2006 if you're reading this later.

Basically, I just pasted the code from index.html that simpleviewer uses to call the flash object in place of my php include statement that would normally include my content page. Here's a simplified set of examples.

original page:
<html>
<head>
<body>
<div id="header">
     <? include("header.php") ?>
<div id="content">
     <? include("content.php") ?>
</body>
</html>

simpleviewer page:
<html>
<head>
     <script type="text/javascript" src="swfobject.js"></script>
<body>
<div id="header">
     <? include("header.php") ?>
<div id="content">
     <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",
         "640", "480", "7", "#FFFFFF");             
        fo.write("flashcontent");         
       </script>
</body>
</html>



My example requires putting the php framework in the simpleviewer folder, but I'm sure there's a way around this. If someone has a better way, please let me know, and I'll use it too. :-)