Page 1 of 1

Probs with HTML-Integration

Posted: 12 Mar 2008, 04:56
by Hanky
Hi,

I have some problems to integrate my gallery into my php-based webside http://www.muellerlohs.de . By cklicking the menupoint 'Galerie' in my navigationbar, the gallery should be shown inside this side. It works little strange by opening the gallery as an own side

my hauptnavigation.php
Code
<tr>
 <td><a class="hauptnavigation" href="index.php" title="">Home</a></td>
 <td><a href="gallery1/index.php" title="Galerie" target="_parent" class="hauptnavigation">Galerie</a></td>
 <td><a class="hauptnavigation" href="index.php?nav=motorrad&site=motor" title="Motorrad">Motorrad</a></td>
 <td><a class="hauptnavigation" href="index.php?nav=rennrad&site=rennrad" title="Rennrad">Rennrad</a></td>
 <td><a class="hauptnavigation" href="index.php?nav=suedtirol&site=intro5" title="Sà¼dtirol">Sà¼dtirol</a></td>
 <td><a class="hauptnavigation" href="index.php?nav=sonstiges&site=sonstiges" title="Sonstiges">Sonstiges</a></td>
</tr>
</table>
my index.php
Code
<div class='container' align="center">

<table style="border: 1px solid #808080;" width="100%" height="100%" border="0" cellpadding="1" cellspacing="1">
<tr>
 <td style="margin: 3px 0 3px 0;" height="115" align="center" bgcolor="#990000"><img class="standard" style="border-left: 1px solid #808080; border-right: 1px solid #808080;" src="images/haeder.jpg" width="1050" height="175" border="0" alt="Mà¼llerLohs Photography"></td>
</tr>
<tr>
 <td style="margin: 3px 0 3px 0; border-top: 1px solid #808080; border-bottom: 1px solid #808080;" height="30"><?php include ("hauptnavigation.php");?></td>
</tr>
<tr>
 <td height="*">
 <div class='nav' align="center">

<?php
      switch ($nav) {
         case "galerie": include ("gallery1/index.php"); break;
         case "motorrad": include ("motor71001/index.php"); break;
         case "rennrad": include ("rad1/index.php"); break;
         case "suedtirol": include ("suedtirol/index.php"); break;
         case "sonstiges": include ("sonstiges/index.php"); break;
         //case "": include (""); break;
      default: include ("intro.htm");
      }

?></div></td>
</tr>
I hope you can help me.

Posted: 12 Mar 2008, 05:53
by mjau-mjau
Generally you need to integrate the gallery into your custom page. Did you read the html-integration guidelines here: viewtopic.php?t=2544 ? It should explain what code to insert into your custom pages to get the gallery to display.

Nice gallery you have!

Posted: 12 Mar 2008, 15:02
by Hanky
Hi Karl,

thanks for helping. I didn't know html-integration guidelines yet but I try to understand them. It's a little bit difficult for me but I will do my very best. I think Example 2 - html_integrate_2.html is the one solution I am looking for, it looks great and seems close to my side.

The only thing I don't know: :oops: in which side has a DAU like me to integrate your code? in the index.php, the navigation.php oder in a new side the gallery was ´craeted in?

Thanks once more

Posted: 12 Mar 2008, 20:09
by mjau-mjau
Thats right - I believe you should use the code from example 2 -

As for what page yo should integrate it into, that is really upto you - Isn't it the point that you want to have the same style as the rest of your pages for your gallery? If so, then use your page template, integrate the imagevue embed code, and call it gallery.php or gallery.html, then point your gallery link to that page.

Posted: 13 Mar 2008, 02:43
by Hanky
ok, Thanks Karl,

I will try it this way

Posted: 13 Mar 2008, 14:37
by Hanky
no chance to get it started, :cry: :cry:

I created a side called galerie.htm and I use this code
Code
<script language="JavaScript">
<!--

function SymError()
{
  return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
  return (new Object());
}

window.open = SymWinOpen;

//-->
</script>



<body>
<div style="height:800px;" id="imagevue"> 
   www.muellerlohs.de/gallery1/index.php
</div> 
<script type="text/javascript"> 
   var so = new SWFObject("imagevue.swf", "imagevue", "900", "800", "6", "#FFFFFF"); 
   so.addVariable("backimage", "false"); 
   so.write("imagevue"); 
</script>

</body>
</html>

<script language="JavaScript">
<!--
var SymRealOnLoad;
var SymRealOnUnload;

function SymOnUnload()
{
  window.open = SymWinOpen;
  if(SymRealOnUnload != null)
     SymRealOnUnload();
}

function SymOnLoad()
{
  if(SymRealOnLoad != null)
     SymRealOnLoad();
  window.open = SymRealWinOpen;
  SymRealOnUnload = window.onunload;
  window.onunload = SymOnUnload;
}

SymRealOnLoad = window.onload;
window.onload = SymOnLoad;

//-->
</script>
what' wrong? Can you please take a look inside my page?
Thanks

Btw: the folder of my gallery ist called: gallery1

Posted: 17 Mar 2008, 08:17
by Hanky
Hi,

has nobody else an idea which could help me to integrate the gallery1 into my webside by using the button Galerie? :? :?

The code of this galerie.php is at the moment
Code
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="JavaScript">
<!--

function SymError()
{
  return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
  return (new Object());
}

window.open = SymWinOpen;

//-->
</script>

<script type="text/javascript" src="javascript/swfobject_source.js"></script>

</head>

<body>
	<div style="height:800px;" id="imagevue">
		www.muellerlohs.de imagevue gallery module
	</div>
	<script type="text/javascript">
		var so = new SWFObject("imagevue.swf", "imagevue", "800", "800", "6", "#FFFFFF");
		so.addVariable("backimage", "false");
		so.write("imagevue");
	</script>
    </div>
</body>
</html>

<script language="JavaScript">
<!--
var SymRealOnLoad;
var SymRealOnUnload;

function SymOnUnload()
{
  window.open = SymWinOpen;
  if(SymRealOnUnload != null)
     SymRealOnUnload();
}

function SymOnLoad()
{
  if(SymRealOnLoad != null)
     SymRealOnLoad();
  window.open = SymRealWinOpen;
  SymRealOnUnload = window.onunload;
  window.onunload = SymOnUnload;
}

SymRealOnLoad = window.onload;
window.onload = SymOnLoad;

//-->
</script>
Is there a probleme because I am using 3 different gallery-folders in my side, so called gallery1, gallery2, gallery3 :?:

Thanks for any good idea and your help

Posted: 19 Mar 2008, 04:37
by mjau-mjau
Perhaps you can post a link to the page with the code you pasted?