<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Flash Gallery integration]]></title>
		<link>https://punbb.informer.com/forums/topic/14671/flash-gallery-integration/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/14671/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Flash Gallery integration.]]></description>
		<lastBuildDate>Fri, 02 Feb 2007 22:52:05 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Flash Gallery integration]]></title>
			<link>https://punbb.informer.com/forums/post/86468/#p86468</link>
			<description><![CDATA[<p>Moved to Integration</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Fri, 02 Feb 2007 22:52:05 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/86468/#p86468</guid>
		</item>
		<item>
			<title><![CDATA[Flash Gallery integration]]></title>
			<link>https://punbb.informer.com/forums/post/86467/#p86467</link>
			<description><![CDATA[<p>I&#039;m testing localy this excellent flash gallery script <a href="http://www.creation3d.org/galerie_dynamique/#fr10">Flash gallery script</a> in a subdirectory of the forum.<br />Having just added an additionnal link to point to the directory where gallery index file is located.<br />I would like to have the header and the footer forum in the gallery page.<br />I&#039;ve added this code in top of index.php<br /></p><div class="codebox"><pre><code>&lt;?php
define(&#039;PUN_ROOT&#039;, &#039;../&#039;);
require PUN_ROOT.&#039;include/common.php&#039;;

if ($pun_user[&#039;g_read_board&#039;] == &#039;0&#039;)
    message($lang_common[&#039;No view&#039;]);

require PUN_ROOT.&#039;header.php&#039;; 
?&gt;</code></pre></div><p>Here is the index.php of the gallery<br /></p><div class="codebox"><pre><code>&lt;?php
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
// CETTE PARTIE SERT AU CALCUL DES STATISTIQUES, SI VOUS LA SUPPRIMEZ LES STATISTIQUES NE FONCTIONNERONT PLUS
header(&quot;Expires: Mon, 26 Jul 1997 05:00:00 GMT&quot;);            // Date du passé 
header(&quot;Last-Modified: &quot; . gmdate(&quot;D, d M Y H:i:s&quot;) . &quot; GMT&quot;); // toujours modifié 
header(&quot;Cache-Control: no-cache, must-revalidate&quot;);          // HTTP/1.1 
header(&quot;Pragma: no-cache&quot;);                                  // HTTP/1.0 
$dt_a =date (&quot;Y&quot;);
$dt_m =date (&quot;m&quot;);
$dt_j =date (&quot;d&quot;);
$dt_h =date (&quot;H&quot;);
$dt_mn =date (&quot;i&quot;);
$dt_s =date (&quot;s&quot;);
$st_sess=0;
$st_sess=$_GET[&#039;ac_sess&#039;];
$st_reference=$_GET[&#039;ac_reference&#039;];
$st_type=$_GET[&#039;ac_type&#039;];
$st_languec=$_GET[&#039;ac_languec&#039;];
$gallerie=$_GET[&#039;gallerie&#039;];
$hidemenu=$_GET[&#039;hidemenu&#039;];
if ($st_sess &gt; 0) {
} else {
$hasard=rand (0, 9000);
$st_sess= $dt_s.$hasard.$dt_j.$dt_h.$dt_mn.$dt_m.$dt_a;
$st_reference=getenv(&quot;HTTP_REFERER&quot;);
$st_reference2=getenv(&quot;SERVER_NAME&quot;).getenv(&quot;REQUEST_URI&quot;);
$empla=strpos($st_reference2,&#039;?&#039;);
if($empla){$st_reference2=substr($st_reference2,0,$empla);}
}
$ip=getenv(&quot;REMOTE_ADDR&quot;);
$navigateur=getenv(&quot;HTTP_USER_AGENT&quot;);
$nbpages=$st_nbpages;
$nbclic=$st_nbclics;
$exploitation=$st_os;
$langue=$st_langue;
$resolution=$st_resolution;
$sess=$st_sess;
$reference=$st_reference;
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
?&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt;
&lt;title&gt;Galerie Photo&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
body,td,th {
    color: #222222;
}
body {
    background-color: #222222;
}
--&gt;
&lt;/style&gt;
&lt;script language=&quot;JavaScript&quot; type=&quot;text/JavaScript&quot;&gt;
&lt;!--
////////////////////////////////////////////////////////////////////////////////////////
// CETTE PARTIE SERT A REDIMENSIONNER AUTOMATIQUEMENT L&#039;ECRAN - VOUS POUVEZ LA SUPPRIMER
if (screen.height&gt;800) {
var gtop=(screen.height-750)/2;
var gleft=(screen.width-820)/2;
self.resizeTo(820,750);self.moveTo(gleft,gtop);self.focus();
}
else {
self.resizeTo(screen.width,screen.height);self.moveTo(0,0);self.focus();
}; 
////////////////////////////////////////////////////////////////////////////////////////
//--&gt;
&lt;/script&gt;

&lt;/head&gt;
&lt;body&gt;
&lt;div align=&quot;center&quot;&gt;&lt;table width=&quot;90%&quot; height=&quot;90%&quot;  border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tr&gt;&lt;td align=&quot;center&quot; valign=&quot;middle&quot;&gt;&lt;div align=&quot;center&quot;&gt;
&lt;!--//////////////////////////////////////////////
// CETTE PARTIE CONTIENT L&#039;APPEL DE LA GALERIE 
//////////////////////////////////////////////--&gt;
      &lt;br&gt;
      &lt;object classid=&quot;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&quot; codebase=&quot;http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0&quot; width=&quot;750&quot; height=&quot;450&quot; align=&quot;middle&quot;&gt;
    &lt;?php $phrase1=&#039;&lt;PARAM NAME=movie VALUE=&quot;09.swf?hidemenu=&#039;.$hidemenu.&#039;&amp;gallerie=&#039;.$gallerie.&#039;&amp;ac_annee=&#039;.$dt_a.&#039;&amp;ac_mois=&#039;.$dt_m.&#039;&amp;ac_jour=&#039;.$dt_j.&#039;&amp;ac_sess=&#039;.$sess.&#039;&amp;ac_reference=&#039;.$st_reference.&#039;&amp;ac_reference2=&#039;.$st_reference2.&#039;&quot;&gt;&#039;;
print $phrase1;?&gt;
        &lt;param name=&quot;quality&quot; value=&quot;best&quot; &gt;
    &lt;param name=&quot;wmode&quot; value=&quot;transparent&quot; &gt;
        &lt;param name=&quot;bgcolor&quot; value=&quot;#ffffff&quot; &gt;
        &lt;embed &lt;?php $phrase2=&#039;src=&quot;09.swf?hidemenu=&#039;.$hidemenu.&#039;&amp;gallerie=&#039;.$gallerie.&#039;&amp;ac_annee=&#039;.$dt_a.&#039;&amp;ac_mois=&#039;.$dt_m.&#039;&amp;ac_jour=&#039;.$dt_j.&#039;&amp;ac_sess=&#039;.$sess.&#039;&amp;ac_reference=&#039;.$st_reference.&#039;&amp;ac_reference2=&#039;.$st_reference2.&#039;&quot;&#039;;print $phrase2;?&gt; quality=&quot;best&quot; wmode=&quot;transparent&quot; bgcolor=&quot;#ffffff&quot; width=&quot;750&quot; height=&quot;450&quot; align=&quot;middle&quot; type=&quot;application/x-shockwave-flash&quot; pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot; /&gt;      
&lt;/object&gt;
      &lt;br&gt;
      &lt;!--//////////////////////////////////////////////--&gt;
&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre></div><p>and this at bottom of the file <br /></p><div class="codebox"><pre><code>&lt;?php

require PUN_ROOT.&#039;footer.php&#039;;

?&gt;</code></pre></div><p>The result is not perfect at all, everything is shifted.<br />Where did i do a ( or many ) mistake ?<br />Any advice would be helpfull</p>]]></description>
			<author><![CDATA[null@example.com (glucarelli)]]></author>
			<pubDate>Fri, 02 Feb 2007 22:49:21 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/86467/#p86467</guid>
		</item>
	</channel>
</rss>
