Forums Index » jGallery 1.3.* - PHP based photo-album creator » ik zie het hele album niet
Message: ik zie het hele album niet
hallo prachtig album maar ik wil hem includen in een andere pagina maar nu werkt hij niet ik zei het hele album niet dit is de link www.nikytoys.woelmuis.nl/test.php het album zelf staat op www.nikytoys.woelmuis.nl/foto_galerij.php en dit is het script
<!--CTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dt-->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><style type="text/css">
<!--
body {
background-color: #000033;
}
body,td,th {
color: #FFFFFF;
}
a:link {
color: #000033;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000033;
}
a:hover {
text-decoration: none;
color: #000033;
}
a:active {
text-decoration: none;
color: #000033;
}
.stijl1 {
color: #000000
}
.stijl4 {
font-size: 36px;
color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
--></style><script src="http://nikytoys.woelmuis.nl/Scripts/AC_RunActiveContent.js" type="text/javascript"></script><script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<!--Welkom op mijn site -->
<table width="865" border="0">
<tr>
<td width="859" bordercolor="#000033" bgcolor="#000033"><div align="center"><img src="Welkom.jpg" alt="Welkom" width="800" height="150" /></div></td>
</tr>
</table>
<center>
<table width="865" border="0">
<tr bordercolor="#000033" bgcolor="#000033">
<td width="181"><a href="home.php"><img src="home.jpg" alt="Home" width="120" height="40" border="0" /></a></td>
<td width="189"><a href="foto_galerij.php"><img src="Fotos.jpg" alt="Foto's" width="140" height="40" border="0" /></a></td>
<td width="189"> </td>
<td width="189"> </td>
<td width="95"> </td>
</tr>
</table>
<table width="865" border="0">
<tr>
<td>
<?php
$G_JGALL['inc_path'] = 'jGallery/';
include($G_JGALL['inc_path'] . 'foto_galerij.php');
?>
</td>
</tr>
</table>
</center>
ik snap niet waarom ik hem niet kan zien ik hoop dat iemand me kan helpen
Posted on Fri Jun 06, 2008 16:01 GMT
Posted by nigel (active user)
Message:
Sterker nog, ik zie helemaal niets van hetgene je post. De bron van je pagina is:
<a href="http://www.woelmuis.nl" target="_blank"><img src="http://www.woelmuis.nl/img/gratishosting-but.gif" width="68" height="13" border="0"></a>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3622710-1");
pageTracker._setDomainName("woelmuis.nl");
pageTracker._initData();
pageTracker._trackPageview();
</script>
Denk dat je ff je bestanden goed moet leren opslaan nadat je ze hebt bewerkt
Posted on Tue Jun 10, 2008 09:17 GMT
Posted by Kooijman (spiderman)
Message:
hij werkt nu wel ik moest hem gewoon ff opnieuw uploaden maar nu heb ik hem geupload maar dan is de achtergrondkleur van de pagina weg hoe los ik dat op?
www.nikytoys.woelmuis.nl/test.php
Posted on Wed Jun 11, 2008 09:03 GMT
Posted by nigel (active user)
Message:
Kun je de bron van test.php eens posten?
Posted on Wed Jun 11, 2008 09:30 GMT
Posted by Kooijman (spiderman)
Message:
<!--CTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dt-->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><style type="text/css">
<title>UNDER CONSTRUCTION</title>
<!--
body {
background-color: #000033;
}
body,td,th {
color: #FFFFFF;
}
a:link {
color: #000033;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000033;
}
a:hover {
text-decoration: none;
color: #000033;
}
a:active {
text-decoration: none;
color: #000033;
}
.stijl1 {
color: #000000
}
.stijl4 {
font-size: 36px;
color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
body {
background-color: #000033;
}
--></style><script src="http://nikytoys.woelmuis.nl/Scripts/AC_RunActiveContent.js" type="text/javascript"></script><script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script><!--Welkom op mijn site -->
<table width="865" border="0">
<tbody>
<tr>
<td bordercolor="#000033" width="859" bgcolor="#000033">
<div align="center"><img height="150" alt="Welkom" width="800" src="Welkom.jpg" /></div>
</td>
</tr>
</tbody>
</table>
<center>
<table width="865" border="0">
<tbody>
<tr bordercolor="#000033" bgcolor="#000033">
<td width="181"><a href="home.php"><img height="40" alt="Home" width="120" border="0" src="home.jpg" /></a></td>
<td width="189"><a href="foto.php"><img height="40" alt="Foto's" width="140" border="0" src="Fotos.jpg" /></a></td>
<td width="189"> </td>
<td width="189"> </td>
<td width="95"> </td>
</tr>
</tbody>
</table>
<p> </p>
<p><?php
/*
jGallery 1.3.3
------------------------------------------------------------------
Support forums: http://portal.kooijman-design.nl/viewforum.php?f=1
*/
// -----------------------------------------------------------------------------------
// Some frontcontrolers:
// -----------------------------------------------------------------------------------
error_reporting(E_ALL);
foreach($_GET as $key => $value)
{
if(is_array($key) OR is_array($value))
{
die('Hacking attempt!');
}
}
$G_JGALL['version'] = '1.3.3';
$G_JGALL['inc_path'] = (IsSet($G_JGALL['inc_path'])) ? $G_JGALL['inc_path'] : '';
$G_JGALL['get']['dir'] = (IsSet($_GET['JGALL_DIR'])) ? str_replace('../','',strip_tags(str_replace('\','/',$_GET['JGALL_DIR']))) : '';
$G_JGALL['get']['img'] = (IsSet($_GET['JGALL_IMG'])) ? str_replace('../','',strip_tags(str_replace('\','/',$_GET['JGALL_IMG']))) : '';
$G_JGALL['get']['page'] = (IsSet($_GET['JGALL_PAGE'])) ? preg_replace('/[^0-9]/i','',$_GET['JGALL_PAGE']) : '';
// -----------------------------------------------------------------------------------
// Include files to handle
// -----------------------------------------------------------------------------------
include($G_JGALL['inc_path'] . 'config.inc.php');
include($G_JGALL['inc_path'] . 'language.inc.php');
include($G_JGALL['inc_path'] . 'functions.inc.php');
// -----------------------------------------------------------------------------------
// General presets and important functions:
// -----------------------------------------------------------------------------------
$G_JGALL['UserGets'] = JGALL_UserGets();
$G_JGALL['style'] = JGALL_GetStyle($C_JGALL['gall_theme']);
$G_JGALL['gall_items'] = JGALL_ReadDir($G_JGALL['get']['dir'],'gall');
$G_JGALL['dir_handle'] = $C_JGALL['gall_dir'] . $G_JGALL['get']['dir'];
$G_JGALL['dir_handle_array'] = explode ('/', $G_JGALL['get']['dir']);
$G_JGALL['dir_handle_count'] = count($G_JGALL['dir_handle_array']);
$G_JGALL['dir_handle_up'] = '';
for($G_JGALL['i_up']='1'; $G_JGALL['i_up'] < $G_JGALL['dir_handle_count']-1; $G_JGALL['i_up']++)
{
$G_JGALL['dir_handle_up'] .= $G_JGALL['dir_handle_array'][$G_JGALL['i_up']-1].'/';
}
$G_JGALL['sort'] = '';
$G_JGALL['tablewidth'] = ($C_JGALL['gall_thumb_size']*$C_JGALL['gall_cols']) + ($C_JGALL['gall_spacing']*($C_JGALL['gall_cols']+1));
// -----------------------------------------------------------------------------------
// Calculate number of pages ($G_JGALL['pages'])
// -----------------------------------------------------------------------------------
$G_JGALL['full_page'] = $C_JGALL['gall_cols'] * $C_JGALL['gall_rows'];
$G_JGALL['pages'] = ceil($G_JGALL['gall_items']['total'] / $G_JGALL['full_page']);
if(!empty($G_JGALL['get']['page']))
{
$G_JGALL['current_page'] = $G_JGALL['get']['page']-1;
$G_JGALL['i_pages'] = $G_JGALL['current_page']*($C_JGALL['gall_cols']*$C_JGALL['gall_rows']);
$G_JGALL['Max'] = $G_JGALL['i_pages']+($C_JGALL['gall_cols']*$C_JGALL['gall_rows']);
if($G_JGALL['Max'] > $G_JGALL['gall_items']['total'])
{
$G_JGALL['Max'] = $G_JGALL['gall_items']['total'];
}
}
else
{
$G_JGALL['i_pages'] = '0';
$G_JGALL['Max'] = $C_JGALL['gall_cols']*$C_JGALL['gall_rows'];
if ($G_JGALL['Max'] > $G_JGALL['gall_items']['total']) {
$G_JGALL['Max'] = $G_JGALL['gall_items']['total'];
}
}
$G_JGALL['temp_start'] = $G_JGALL['i_pages'];
// -----------------------------------------------------------------------------------
// CREATE MENU BAR -> Output to $G_JGALL['output_location']
// -----------------------------------------------------------------------------------
$G_JGALL['output_location'] = '';
$G_JGALL['mainfolder'] = $C_JGALL['lang_mainfolder'];
$G_JGALL['button_home'] = '<img src="' . $G_JGALL['style']['images'] . 'homefolder_gray.gif" border="0" align="absmiddle" title="' . $C_JGALL['lang_home'] . '">';
$G_JGALL['button_up'] = '<img src="' . $G_JGALL['style']['images'] . 'upfolder_gray.gif" border="0" align="absmiddle" title="' . $C_JGALL['lang_up'] . '">';
$G_JGALL['key_current'] = 0;
if((!empty($G_JGALL['get']['dir'])) OR ($G_JGALL['get']['page'] > 1) OR !empty($G_JGALL['get']['img']))
{
$G_JGALL['button_home'] = '<a href="' . $G_JGALL['UserGets'] . 'JGALL_DIR"><img src="' . $G_JGALL['style']['images'] . 'homefolder.gif" border="0" align="absmiddle" title="' . $C_JGALL['lang_gohome'] . '"></a>';
if(!empty($G_JGALL['get']['dir']))
{
$G_JGALL['mainfolder'] = '<a class="JGALL_location" href="'.$G_JGALL['UserGets'].'JGALL_DIR">' . $C_JGALL['lang_mainfolder'] . '</a> / ';
$G_JGALL['button_up'] = '<a href="' . $G_JGALL['UserGets'] . 'JGALL_DIR=' . $G_JGALL['dir_handle_up'] . '"><img src="' . $G_JGALL['style']['images'] . 'upfolder.gif" border="0" align="absmiddle" title="' . $C_JGALL['lang_goup'] . '"></a>';
$G_JGALL['key_current'] = $G_JGALL['dir_handle_count']-2;
}
elseif(!empty($G_JGALL['get']['img']) && file_exists($G_JGALL['inc_path'] . $G_JGALL['dir_handle'] . $G_JGALL['get']['img']))
{
$G_JGALL['mainfolder'] = '<a class="JGALL_location" href="' . $G_JGALL['UserGets'] . 'JGALL_DIR=&JGALL_PAGE=' . $G_JGALL['gall_items']['current']['page'] . '">' . $C_JGALL['lang_mainfolder'] . '</a>';
}
}
$G_JGALL['output_location'] .= JGALL_TBS(1) . '<tr>';
$G_JGALL['output_location'] .= JGALL_TBS(2) . '<td style="' . $G_JGALL['style']['location'] . '" width="' . $G_JGALL['tablewidth'] . '">';
$G_JGALL['output_location'] .= JGALL_TBS(3) . '<table width="' . $G_JGALL['tablewidth'] . '">';
$G_JGALL['output_location'] .= JGALL_TBS(4) . '<tr>';
$G_JGALL['output_location'] .= JGALL_TBS(5) . '<td align="left"><font style="' . $G_JGALL['style']['font.location'] . '">';
$G_JGALL['output_location'] .= JGALL_TBS(6) . ' ' . $C_JGALL['lang_location'] . ': ' . $G_JGALL['mainfolder'];
$G_JGALL['crumb'] = '';
for($G_JGALL['i_crumb']=1; $G_JGALL['i_crumb'] < $G_JGALL['dir_handle_count']-1; $G_JGALL['i_crumb']++)
{
$G_JGALL['crumb'] .= $G_JGALL['dir_handle_array'][$G_JGALL['i_crumb']-1].'/';
$G_JGALL['output_location'] .= '<a class="JGALL_location" href="' . $G_JGALL['UserGets'] . 'JGALL_DIR=' . $G_JGALL['crumb'] . '">' . $G_JGALL['dir_handle_array'][$G_JGALL['i_crumb']-1] . '</a> / ';
}
if(!empty($G_JGALL['get']['img']) && file_exists($G_JGALL['inc_path'] . $G_JGALL['dir_handle'] . $G_JGALL['get']['img']))
{
$G_JGALL['output_location'] .= '<a class="JGALL_location" href="' . $G_JGALL['UserGets'] . 'JGALL_DIR=' . $G_JGALL['get']['dir'] . '&JGALL_PAGE=' . $G_JGALL['gall_items']['current']['page'] . '">' . $G_JGALL['dir_handle_array'][$G_JGALL['i_crumb']-1] . '</a>';
$G_JGALL['output_location'] .= ' / ' . $G_JGALL['get']['img'];
}
else
{
$G_JGALL['output_location'] .= '<b>' . $G_JGALL['dir_handle_array'][$G_JGALL['key_current']] . '</b>';
}
$G_JGALL['output_location'] .= JGALL_TBS(5) . '</font></td>' . JGALL_TBS(5) . '<td align="right">';
$G_JGALL['output_location'] .= JGALL_TBS(6) . ' ' . $G_JGALL['button_home'] . ' ' . $G_JGALL['button_up'] . ' <a href="javascript:location.reload();" target="_self"><img src="' . $G_JGALL['style']['images'] . 'refresh.gif" border="0" align="absmiddle" title="' . $C_JGALL['lang_refresh'] . '"></a> ';
/* Nice to see you like this script! You're welcome!
In return, please do not remove the info-button,
or place a link to us on your website. Thank you!
http://portal.kooijman-design.nl/jGallery/ */
$G_JGALL['output_location'] .= ' <a href="http://portal.kooijman-design.nl/jGallery/README.html" target="_blank"><img src="' . $G_JGALL['style']['images'] . 'info.gif" border="0" align="absmiddle" title="powered by: jGallery"></a> ';
$G_JGALL['output_location'] .= JGALL_TBS(5) . '</td>' . JGALL_TBS(4) . '</tr>' . JGALL_TBS(3) . '</table>' . JGALL_TBS(2) . '</td>' . JGALL_TBS(1) . '</tr>';
// -----------------------------------------------------------------------------------
// CREATE PAGE LINKS -> Output to $G_JGALL['output_pagelinks']
// -----------------------------------------------------------------------------------
$G_JGALL['output_pagelinks'] = '';
if(!empty($G_JGALL['gall_items']['total']) && (($G_JGALL['gall_items']['total'] > $G_JGALL['full_page']) OR (!empty($G_JGALL['get']['img']))))
{
$G_JGALL['output_pagelinks'] .= JGALL_TBS(1) . '<tr>' . JGALL_TBS(2) . '<td style="' . $G_JGALL['style']['pagelink'] . '" align="center" width="' . $G_JGALL['tablewidth'] . '"><font style="' . $G_JGALL['style']['font.pagelink'] . '">';
if(!empty($G_JGALL['get']['img']) && file_exists($G_JGALL['inc_path'].$G_JGALL['dir_handle'].$G_JGALL['get']['img']))
{
// If you are Viewing one image
if($G_JGALL['gall_items']['current']['num'] > 1)
{
// « first | prev
$G_JGALL['output_pagelinks'] .= JGALL_TBS(3) . ' <a class="JGALL_pagelink" href="' . $G_JGALL['UserGets'] . 'JGALL_DIR=' . $G_JGALL['get']['dir'] . '&JGALL_IMG=' . $G_JGALL['gall_items'][$G_JGALL['gall_items']['directorys']]['name'] . '">' . $C_JGALL['lang_first'] . '</a> | <a class="JGALL_pagelink" href="' . $G_JGALL['UserGets'] . 'JGALL_DIR=' . $G_JGALL['get']['dir'] . '&JGALL_IMG=' . $G_JGALL['gall_items']['prev'] . '">' . $C_JGALL['lang_prev'] . '</a> |';
}
$G_JGALL['output_pagelinks'] .= JGALL_TBS(3) . ' ' . str_replace('{CURRENT}',$G_JGALL['gall_items']['current']['num'],str_replace('{TOTAL}',$G_JGALL['gall_items']['images'],$C_JGALL['lang_image_info'])) . ' ';
if($G_JGALL['gall_items']['current']['num'] < $G_JGALL['gall_items']['images'])
{
// next | last »
$G_JGALL['output_pagelinks'] .= JGALL_TBS(3) . '| <a class="JGALL_pagelink" href="' . $G_JGALL['UserGets'] . 'JGALL_DIR=' . $G_JGALL['get']['dir'] . '&JGALL_IMG=' . $G_JGALL['gall_items']['next'] . '">' . $C_JGALL['lang_next'] . '</a> | <a class="JGALL_pagelink" href="' . $G_JGALL['UserGets'] . 'JGALL_DIR=' . $G_JGALL['get']['dir'].'&JGALL_IMG=' . $G_JGALL['gall_items']['last'] . '">' . $C_JGALL['lang_last'] . '</a> ';
}
}
else
{
// If you are viewing thumbnails
if ($G_JGALL['pages'] > 1)
{
$G_JGALL['current'] = (!empty($G_JGALL['get']['page']) && is_numeric($G_JGALL['get']['page'])) ? $G_JGALL['get']['page'] : 1;
$prev = $G_JGALL['current']-1;
$next = $G_JGALL['current']+1;
if($G_JGALL['current'] > '1')
{
// « first | prev
$G_JGALL['output_pagelinks'] .= JGALL_TBS(3) . ' <a class="JGALL_pagelink" href="' . $G_JGALL['UserGets'] . 'JGALL_DIR=' . $G_JGALL['get']['dir'] . '&JGALL_PAGE=1">' . $C_JGALL['lang_first'] . '</a> | <a class="JGALL_pagelink" href="' . $G_JGALL['UserGets'] . 'JGALL_DIR=' . $G_JGALL['get']['dir'] . '&JGALL_PAGE=' . $prev . '">' . $C_JGALL['lang_prev'] . '</a> |' ;
}
for ($i=1; $i<=$G_JGALL['pages']; $i++)
{
if($i == $G_JGALL['current'])
{
$G_JGALL['output_pagelinks'] .= JGALL_TBS(3) . ' <b>' . $i . '</b> ';
}
else
{
$G_JGALL['output_pagelinks'] .= JGALL_TBS(3) . '<a class="JGALL_pagelink" href="' . $G_JGALL['UserGets'] . 'JGALL_DIR=' . $G_JGALL['get']['dir'] . '&JGALL_PAGE='. $i .'"> <b>' . $i . '</b> </a>';
}
}
if($G_JGALL['current'] < $G_JGALL['pages'])
{
// next | last »
$G_JGALL['output_pagelinks'] .= JGALL_TBS(3) . '| <a class="JGALL_pagelink" href="' . $G_JGALL['UserGets'] . 'JGALL_DIR=' . $G_JGALL['get']['dir'] . '&JGALL_PAGE=' . $next . '">' . $C_JGALL['lang_next'] . '</a> | <a class="JGALL_pagelink" href="' . $G_JGALL['UserGets'] . 'JGALL_DIR=' . $G_JGALL['get']['dir'] . '&JGALL_PAGE=' . $G_JGALL['pages'] . '">' . $C_JGALL['lang_last'] . '</a> ';
}
}
}
$G_JGALL['output_pagelinks'] .= JGALL_TBS(2) . '</font></td>' . JGALL_TBS(1) . '</tr>';
}
// -----------------------------------------------------------------------------------
// Build layout order:
// -----------------------------------------------------------------------------------
foreach($C_JGALL['layout_order'] as $key => $value)
{
$C_JGALL['layout_order'][$key] = '{' . strtoupper($value) . '}';
}
$G_JGALL['output_order'] = $C_JGALL['layout_order'][0] . '{FIRST_SPACING}' . $C_JGALL['layout_order'][1] . '{SECOND_SPACING}' . $C_JGALL['layout_order'][2];
foreach($C_JGALL['layout_spacing'] as $key => $spacing)
{
$G_JGALL['output_spacing'][$key] = '';
if($C_JGALL['layout_spacing'][$key] > '0')
{
$G_JGALL['output_spacing'][$key] = JGALL_TBS(1) . '<tr name="spacing" cellspacing="0" cellpadding="0" border="0"><td height="' . $spacing . '" width="' . $G_JGALL['tablewidth'] . '"></td></tr>';
}
}
$G_JGALL['output_order'] = explode('{MAIN}',$G_JGALL['output_order']);
// -----------------------------------------------------------------------------------
// Place output into position and parse template:
// -----------------------------------------------------------------------------------
$G_JGALL['nav_output_top'] = str_replace('{LOCATION}',$G_JGALL['output_location'],$G_JGALL['output_order'][0]);
$G_JGALL['nav_output_top'] = str_replace('{PAGELINK}',$G_JGALL['output_pagelinks'],$G_JGALL['nav_output_top']);
$G_JGALL['nav_output_top'] = str_replace('{FIRST_SPACING}',$G_JGALL['output_spacing']['first'],$G_JGALL['nav_output_top']);
$G_JGALL['nav_output_top'] = str_replace('{SECOND_SPACING}',$G_JGALL['output_spacing']['second'],$G_JGALL['nav_output_top']);
$G_JGALL['nav_output_bottom'] = str_replace('{LOCATION}',$G_JGALL['output_location'],$G_JGALL['output_order'][1]);
$G_JGALL['nav_output_bottom'] = str_replace('{PAGELINK}',$G_JGALL['output_pagelinks'],$G_JGALL['nav_output_bottom']);
$G_JGALL['nav_output_bottom'] = str_replace('{FIRST_SPACING}',$G_JGALL['output_spacing']['first'],$G_JGALL['nav_output_bottom']);
$G_JGALL['nav_output_bottom'] = str_replace('{SECOND_SPACING}',$G_JGALL['output_spacing']['second'],$G_JGALL['nav_output_bottom']);
// -----------------------------------------------------------------------------------
// Start output:
// -----------------------------------------------------------------------------------
if(empty($G_JGALL['inc_path']))
{
echo '<html>' . "n" . '<head>' . "n" . '<title>' . $C_JGALL['lang_title'] . '</title>' . "n" . $G_JGALL['style']['css_output_header'] . '</head>' . "nn" . '<body style="' . $G_JGALL['style']['body'] . '">' . "nn";
}
echo '<div align="center" width="' . $G_JGALL['tablewidth'] . '">' . "n" . $G_JGALL['style']['css_output_body'];
echo '<table name="jGalery' . $G_JGALL['version'] . '" cellspacing="0" cellpadding="0" border="0" style="' . $G_JGALL['style']['maintable'] . '" width="' . $G_JGALL['tablewidth'] . '">';
// -----------------------------------------------------------------------------------
// Output items on top of image-viewer
// -----------------------------------------------------------------------------------
echo $G_JGALL['nav_output_top'];
// -----------------------------------------------------------------------------------
// Output thumbnails or view image
// -----------------------------------------------------------------------------------
$G_JGALL['view_image_size'] = (!empty($C_JGALL['gall_max_view_img_size'])) ? $C_JGALL['gall_max_view_img_size'] : $G_JGALL['tablewidth'] - ($C_JGALL['gall_spacing'] * 2);
$C_JGALL['gall_folder_size'] = $C_JGALL['gall_thumb_size'];
$spacing_keys = array('border','border-left','border-right','padding','padding-left','padding-right','margin','margin-left','margin-right','spacing','spacing-left','spacing-right');
foreach($spacing_keys as $property)
{
$G_JGALL['view_image_size'] -= (!empty($G_JGALL['style']['numeric']['gallery_image'][$property])) ? $G_JGALL['style']['numeric']['gallery_image'][$property] * 2 : 0;
$C_JGALL['gall_thumb_size'] -= (!empty($G_JGALL['style']['numeric']['gallery_thumb'][$property])) ? $G_JGALL['style']['numeric']['gallery_thumb'][$property] * 2 : 0;
}
echo JGALL_TBS(1) . '<tr>' . JGALL_TBS(2) . '<td style="' . $G_JGALL['style']['gallery'] . '" width="' . $G_JGALL['tablewidth'] . '">';
echo JGALL_TBS(3) . '<table cellspacing="' . $C_JGALL['gall_spacing'] . '" border="0" cellpadding="0" width="' . $G_JGALL['tablewidth'] . '">';
if(!empty($G_JGALL['get']['img']) && file_exists($G_JGALL['inc_path'].$G_JGALL['dir_handle'].$G_JGALL['get']['img']))
{
$G_JGALL['show_info'] = 'image';
$G_JGALL['image_link_start'] = (eregi($C_JGALL['gall_link2source'],'y')) ? '<a href="' . $G_JGALL['inc_path'] . $G_JGALL['dir_handle'] . $G_JGALL['get']['img'] . '" target="_blank" title="' . $C_JGALL['lang_downloadimage'] . ': ' . $G_JGALL['get']['img'] . '">' : ' ' ;
$G_JGALL['image_link_end'] = (eregi($C_JGALL['gall_link2source'],'y')) ? '</a>' : '';
echo JGALL_TBS(4) . '<tr>' . JGALL_TBS(5) . '<td align="center">';
echo JGALL_TBS(6) . $G_JGALL['image_link_start'] . '<img name="image" ' . JGALL_resize($G_JGALL['gall_items']['current']['info'],$G_JGALL['view_image_size']) . ' border="0" style="' . $G_JGALL['style']['gallery_thumb'] . ';" src="' . $G_JGALL['inc_path'] . 'thumb.php?MaxSize=' . $G_JGALL['view_image_size'] . '&src=' . $G_JGALL['dir_handle'] . $G_JGALL['get']['img'] . '&view=y">' . $G_JGALL['image_link_end'];
echo JGALL_TBS(5) .'</td>' . JGALL_TBS(4) . '</tr>';
}
else
{
$G_JGALL['show_info'] = 'gall';
if (!empty($G_JGALL['gall_items']['total']))
{
$C_JGALL['x'] = '0';
$C_JGALL['y'] = '0';
for ($G_JGALL['i_pages']=$G_JGALL['i_pages']; $G_JGALL['i_pages']<=$G_JGALL['Max']-1; $G_JGALL['i_pages']++)
{
if(0==0)
{
$C_JGALL['x']++;
if($C_JGALL['x'] == 1) {
echo JGALL_TBS(4) . '<tr>';
$C_JGALL['y']++;
}
// For images
if ($G_JGALL['gall_items'][$G_JGALL['i_pages']]['type'] == 'image')
{
$G_JGALL['show_filename'] = ($C_JGALL['gall_show_filenames'] == 'y') ? '<br /><a class="JGALL_thumblink" href="' . $G_JGALL['UserGets'] . 'JGALL_DIR=' . $G_JGALL['get']['dir'] . '&JGALL_IMG=' . $G_JGALL['gall_items'][$G_JGALL['i_pages']]['name'] . '">' . $G_JGALL['gall_items'][$G_JGALL['i_pages']]['name'] . '</a>' : '';
$G_JGALL['this_thumb_height'] = ($C_JGALL['gall_show_filenames'] == 'y') ? 'height="' . $C_JGALL['gall_thumb_size'] . '"' : '';
echo JGALL_TBS(5) . '<td align="center" valign="middle" align="center" width="' . $C_JGALL['gall_thumb_size'] . '"' . $G_JGALL['this_thumb_height'] . '>';
echo JGALL_TBS(6) . '<a href="' . $G_JGALL['UserGets'] . 'JGALL_DIR=' . $G_JGALL['get']['dir'] . '&JGALL_IMG=' . $G_JGALL['gall_items'][$G_JGALL['i_pages']]['name'] . '"><img ' . JGALL_resize($G_JGALL['gall_items'][$G_JGALL['i_pages']]['info'],$C_JGALL['gall_thumb_size']) . ' border="0" style="' . $G_JGALL['style']['gallery_thumb'] . '" src="' . $G_JGALL['inc_path'] . 'thumb.php?MaxSize=' . $C_JGALL['gall_thumb_size'] . '&src=' . $G_JGALL['dir_handle'] . $G_JGALL['gall_items'][$G_JGALL['i_pages']]['name'] . '" title="' . $G_JGALL['gall_items'][$G_JGALL['i_pages']]['name'] . '">' . $G_JGALL['show_filename'] . '</a>';
echo JGALL_TBS(5) . '</td>';
}
// For folders
else
{
$G_JGALL['FolderTopSpacerHeight'] = round($C_JGALL['gall_thumb_size'] / 100 * 14);
$G_JGALL['FolderBottomSpacerHeight'] = round($C_JGALL['gall_thumb_size'] / 100 * ;
$G_JGALL['FolderMainSpacerHeight'] = $C_JGALL['gall_thumb_size'] - ($G_JGALL['FolderTopSpacerHeight'] + $G_JGALL['FolderBottomSpacerHeight']);
echo JGALL_TBS(5) . '<td width="' . $C_JGALL['gall_folder_size'] . '" height="' . $C_JGALL['gall_folder_size'] . '" style="background:url('' . $G_JGALL['inc_path'] . 'thumb.php?MaxSize=' . $C_JGALL['gall_folder_size'] . '&src=folder');background-repeat:no-repeat;cursor:hand;cursor:pointer;" onclick="location.href='' . $G_JGALL['UserGets'] . 'JGALL_DIR=' . $G_JGALL['get']['dir'] . $G_JGALL['gall_items'][$G_JGALL['i_pages']]['name'] . '/' . ''" valign="middle">';
echo JGALL_TBS(6) . '<table width="' . $C_JGALL['gall_thumb_size'] . '" height="' . $C_JGALL['gall_thumb_size'] . '" cellspacing="0" cellpadding="0">' . JGALL_TBS(7) . '<tr>';
echo JGALL_TBS( . '<td width="' . $C_JGALL['gall_thumb_size'] . '" height="' . $G_JGALL['FolderTopSpacerHeight'] . '"><img src="' . $G_JGALL['style']['images'] . 'spacer.gif" width="' . $C_JGALL['gall_folder_size'] . '" height="' . $G_JGALL['FolderTopSpacerHeight'] . '"></td>';
echo JGALL_TBS(7) . '</tr>' . JGALL_TBS(7) . '<tr>';
echo JGALL_TBS( . '<td width="' . $C_JGALL['gall_folder_size'] . '" height="' . $G_JGALL['FolderMainSpacerHeight'] . '" valign="middle" align="center">';
echo JGALL_TBS(9) . $G_JGALL['gall_items'][$G_JGALL['i_pages']]['first_image'] . '<br />';
echo JGALL_TBS(9) . '<a class="JGALL_folderlink" href="' . $G_JGALL['UserGets'] . 'JGALL_DIR=' . $G_JGALL['get']['dir'] . $G_JGALL['gall_items'][$G_JGALL['i_pages']]['name'] . '/' . '">' . $G_JGALL['gall_items'][$G_JGALL['i_pages']]['name'] . '</a>';
echo JGALL_TBS( . '</td>' . JGALL_TBS(7) . '</tr>' . JGALL_TBS(7) . '<tr>';
echo JGALL_TBS( . '<td width="' . $C_JGALL['gall_folder_size'] . '" height="' . $G_JGALL['FolderBottomSpacerHeight'] . '"><img src="' . $G_JGALL['style']['images'] . 'spacer.gif" width="' . $C_JGALL['gall_folder_size'] . '" height="' . $G_JGALL['FolderBottomSpacerHeight'] . '"></td>';
echo JGALL_TBS(7) . '</tr>' . JGALL_TBS(6) . '</table>' . JGALL_TBS(5) . '</td>';
}
if ($C_JGALL['x'] == $C_JGALL['gall_cols'])
{
echo JGALL_TBS(4) . '</tr>';
$C_JGALL['x'] = '0';
}
}
}
if($C_JGALL['x'] != '0')
{
echo JGALL_TBS(4) . '</tr>';
}
}
else
{
echo JGALL_TBS(4) . '<tr>' . JGALL_TBS(5) . '<td colspan="' . $C_JGALL['gall_cols'] . '" align="center">';
echo JGALL_TBS(6) . '<br /><font style="' . $G_JGALL['style']['font.emptydir'] . '"' . JGALL_TBS(6) . '<h3>' . $C_JGALL['lang_emptydir'] . '</font><br /><br /><br />';
echo JGALL_TBS(5) . '</td>' . JGALL_TBS(4) . '</tr>';
}
}
echo JGALL_TBS(3) . '</table>';
echo JGALL_TBS(2) . '</td>' . JGALL_TBS(1) . '</tr>';
if($C_JGALL['gall_show_info'] == 'y')
{
echo JGALL_TBS(1) . '<tr>' . JGALL_TBS(2) . '<td style="' . $G_JGALL['style']['gallery_info'] . '" align="center"><font style="' . $G_JGALL['style']['font.gallery_info'] . '">';
if($G_JGALL['show_info'] == 'image')
{
$C_JGALL['lang_image_detail'] = str_replace('{NAME}',$G_JGALL['gall_items']['current']['name'],$C_JGALL['lang_image_detail']);
$C_JGALL['lang_image_detail'] = str_replace('{WIDTH}',$G_JGALL['gall_items']['current']['info'][0],$C_JGALL['lang_image_detail']);
$C_JGALL['lang_image_detail'] = str_replace('{HEIGHT}',$G_JGALL['gall_items']['current']['info'][1],$C_JGALL['lang_image_detail']);
$C_JGALL['lang_image_detail'] = str_replace('{FILESIZE}',round($G_JGALL['gall_items']['current']['size']/1000),$C_JGALL['lang_image_detail']);
$C_JGALL['lang_image_detail'] = str_replace('{MIME}',$G_JGALL['gall_items']['current']['info']['mime'],$C_JGALL['lang_image_detail']);
echo JGALL_TBS(3) . $C_JGALL['lang_image_detail'];
}
elseif($G_JGALL['show_info'] == 'gall')
{
$C_JGALL['lang_gall_detail'] = str_replace('{FIRST}',$G_JGALL['temp_start']+1,$C_JGALL['lang_gall_detail']);
$C_JGALL['lang_gall_detail'] = str_replace('{LAST}',$G_JGALL['Max'],$C_JGALL['lang_gall_detail']);
$C_JGALL['lang_gall_detail'] = str_replace('{TOTAL}',$G_JGALL['gall_items']['total'],$C_JGALL['lang_gall_detail']);
$C_JGALL['lang_gall_detail'] = str_replace('{FOLDERS}',$G_JGALL['gall_items']['directorys'],$C_JGALL['lang_gall_detail']);
$C_JGALL['lang_gall_detail'] = str_replace('{IMAGES}',$G_JGALL['gall_items']['images'],$C_JGALL['lang_gall_detail']);
$C_JGALL['lang_gall_detail'] = str_replace('{DIR}',$C_JGALL['lang_mainfolder'] . '/' . $G_JGALL['get']['dir'],$C_JGALL['lang_gall_detail']);
echo JGALL_TBS(3) . $C_JGALL['lang_gall_detail'];
}
echo JGALL_TBS(2) . '</font></td>' . JGALL_TBS(1) . '</tr>';
}
// -----------------------------------------------------------------------------------
// Output items at the bottom of image-viewer
// -----------------------------------------------------------------------------------
echo $G_JGALL['nav_output_bottom'];
// -----------------------------------------------------------------------------------
// End output and debug-function
// -----------------------------------------------------------------------------------
echo "n" . '</table>' . "n";
echo '</div>' . "nn";
if(!empty($_GET['debug']) && ($_GET['debug'] == 'y' OR $_GET['debug'] == 'all'))
{
echo '<div align="left"><pre><code>';
if($_GET['debug'] != 'all')
{
unset(
$G_JGALL['nav_output_top'] ,
$G_JGALL['nav_output_bottom'] ,
$G_JGALL['output_location'] ,
$G_JGALL['output_pagelinks'] ,
$G_JGALL['output_spacing'] ,
$G_JGALL['image_link_start'] ,
$G_JGALL['image_link_end']
);
}
print_r($G_JGALL);
print_r($C_JGALL);
echo '</div></code></pre>';
echo '<a href="?JGALL_DIR='.$G_JGALL['get']['dir'].'&JGALL_PAGE='.$G_JGALL['get']['page'].'&JGALL_IMG='.$G_JGALL['get']['img'].'">Stop debugging</a>';
}
if(empty($G_JGALL['inc_path']))
{
echo'</body>' . "n" . '</html>';
}
// --> End
?></p>
</center>
Posted on Wed Jun 11, 2008 10:10 GMT
Posted by nigel (active user)
Message:
Ik zie dat je de hele inhoud van index.php hebt gekopieerd naar test.php. Dat veroorzaakt de fout.
Je kunt 2 dingen doen:
- jGallery installeren zoals hier: http://portal.kooijman-design.nl/viewtopic.php?t=37 aangegeven. Gewoon hele map uploaden en het script includen zoals aangegeven.
OF
- Zoek dit gedeelte in de code:
// -----------------------------------------------------------------------------------
// Start output:
// -----------------------------------------------------------------------------------
if(empty($G_JGALL['inc_path']))
{
echo '<html>' . "n" . '<head>' . "n" . '<title>' . $C_JGALL['lang_title'] . '</title>' . "n" . $G_JGALL['style']['css_output_header'] . '</head>' . "nn" . '<body style="' . $G_JGALL['style']['body'] . '">' . "nn";
}
En wijzig daar het statement; if(empty($G_JGALL['inc_path'])) door if(0==1)
Hiermee knip je wel in een goed script maar dat moet omdat je 'm verkeerd gebruikt.
Ik raad je aan om voor het eerste te gaan.
Posted on Wed Jun 11, 2008 10:21 GMT
Posted by Kooijman (spiderman)
Message:
hij werkt al heb het zelf al gefixed =)
Posted on Wed Jun 11, 2008 15:12 GMT
Posted by nigel (active user)
Message:
nigel wrote: hij werkt al heb het zelf al gefixed =)
Je hebt nu de stylesheet aangepast, maar als gevolg van je vreemde manier van installeren wordt er een site-header weer gegeven boven het jGallery script.
Het werkt wel maar er kunnen browsers zijn die hier over struikelen. Geen nette oplossing maar als jij er blij mee bent...
Posted on Wed Jun 11, 2008 19:45 GMT
Posted by Kooijman (spiderman)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
Powered by phpBB 2.0.21 © 2001, 2006 phpBB Group |
|
Back to top