[Enhanced Simple PHP Gallery] Entfernen des Headers

frkz

Grünschnabel
Hallo.

Ich habe die Enhanced Simple PHP Gallery ( Link : http://wwthree.bplaced.net/gallery/index.php?dir=./wallpaper ) "installiert" und möchte diese nun anpassen.

Ich möchte den oberen Bereich der Gallery ausblenden / entfernen,weiss jedoch nicht, wie das möglich ist. Ich habe mal einen Screenshot angefertigt :

screen01rl8.th.jpg


Hier der Quellcode der sp_index.php :

PHP:
<?php
/*
Enhanced Simple PHP Gallery by Rich Pedley
based on Simple PHP Gallery by Paul Griffin.
see readme for full attribs.

This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License. 
see license.txt for further info

*/
$editmode = false;
require('lang/index.php');
require('sp_config.php');
require('sp_helper_functions.php');
require('sp_def_vars.php');
include('header.php');
?>

<p id="breadcrumb"><?php getBreadCrumbs();?></p>
<?php
//IF A FILE WAS REQUESTED FOR VIEWING, OUTPUT IT
if($display_file != '') 
{
?>	
<div id="prevnext">
<?php getPrevAndNext();?>

</div>
<div class="clearer"></div>
<div id="image"><?php getFile(); ?></div>
<?php
	if(descriptionExists())
	{
?>
<p id="description"><?php getDescription();?></p>
<?php
	}
		
	if (dateExists()==true)
	{
?>   
<p id="thedate"><?php echo $GLOBALS['lang_date_added']; ?><?php getImageDate(); ?></p>
<?php
	}
	if($showcomments==true){
	?>
		<div id="comments">
		<?php include("comment.php"); ?>
		</div>
	<?php
	}
}

//OTHERWISE, A DIRECTORY LISTING REQUEST WAS MADE.  DISPLAY THE THUMBNAIL LINKS.
else 
{
	//IF THIS DIRECTORY HAS A DESCRIPTION, OUTPUT IT
	if(getDirDescription() != '')
	{
	?>
		<div id="dirdesc">
		<?php echo getDirDescription(); ?>
		</div>

	<?php	
	}
	//IF THERE ARE SUB-DIRECTORIES, LIST THEM.
	if(subDirExist())
	{
	?>
		<div id="directories"> <?php getDirLinks(); ?></div>
	<?php
	}
	?>
	<div id="gallery">
<?php
	//OUTPUT THUMBNAIL LINKS TO ALL IMAGES IN THIS DIRECTORY
if (isset($_GET['page'])){
	$page=$_GET['page'];
	$page = preg_replace('#[^0-9]#', '', $page);
}
	if(empty($page))
	{
		$page=1;
		$_GET['page']=1;
	}
	$i=0;
	foreach(getImgLinks() as $link)
	{
		global $limit;
		$totalrows=getNumImages($dir);
		$numofpages = $totalrows / $limit;
		$limitvalue = $page * $limit - ($limit);
		$b=$limitvalue+$limit-1;
		if ($i>=$limitvalue && $i<=$b)	echo $link;
		$i++;
	}
?>
	<div class="pagination">
<?php
	paginate();
?>

	</div>
	</div>
<?php
}
?>

<p id="credit">
<?php echo $GLOBALS['lang_powered']; ?> <a href="http://www.quirm.net/"><?php echo VERSION ?></a> <br />
<a href="http://<?php echo $_SERVER["HTTP_HOST"].returnCurrentWorkingDirectory()."/"; ?>sp_editor.php?<?php echo $_SERVER["QUERY_STRING"]; ?>"><?php echo $GLOBALS['lang_admin_link']; ?></a>
</p>

<?php include('footer.php'); ?>

Und hier noch der Quellcode der header.php :

PHP:
<?php
header('Content-type: text/html; charset=utf-8');
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title><?php getPageTitle(); ?></title>
<link rel="stylesheet" type="text/css" href="<?php getCurrentWorkingDirectory();?>/sp_styles.css" media="screen" />
<style type="text/css" media="screen">
<?php
// Add dynamic styles here
if($display_file == '')
{
   $divwidth = $maxthumbwidth + 10;
   $divheight = $maxthumbheight + 24;
   if($showimgtitles)
     $divheight += 16;
   if($showdatesonthumbspage)
     $divheight += 16;

   echo "div.imgwrapper {\n";
   echo " width: " . $divwidth . "px;\n height: " . $divheight . "px;\n";
   if($alignimages)
     echo " text-align: center;\n";
   echo "}\n";
}
else
{
   echo "div#image {\n";
   echo " width: " . ($img_attr_width + 8) . "px;\n";
   echo " height: " . ($img_attr_height + 8) . "px;\n";
   echo "}\n";
}
?>
</style>
<?php

//INSERT LINK ELEMENTS
// if($display_file != '') 
if(!empty($display_file)){ //IF A FILE WAS REQUESTED FOR VIEWING, OUTPUT Prev & Next LINKS.
	getPrevAndNextLink();
} 
else //OTHERWISE, A DIRECTORY LISTING REQUEST WAS MADE; DISPLAY THE Start LINK.
{
	if(empty($disablestart))
	getStartLink();
} // END IF

//IF A FILE WAS REQUESTED FOR VIEWING, LINK TO IMAGE-FADE SCRIPT
if(!empty($display_file) && $image_fade_in) 
{
	?><script src="<?php getCurrentWorkingDirectory();?>/imagefade/imagefadein.js" type="text/javascript"></script>
<?php
}
?>
</head>
<body>
<div id="espg">
<div id="header">
<h1 id="top">Enhanced Simple PHP Gallery</h1>
</div>
<h2><?php getPageTitle(); ?></h2>

Ich wäre froh, wenn mir jemand diesbezüglich helfen könnte.Wenn noch Infos benötigt werden, einfach fragen. Ich danke.


MfG
 
das sollte das meiste entfernen:

index.php : dies löschen
PHP:
<p id="breadcrumb"><?php getBreadCrumbs();?></p>

header.php :das löschen
PHP:
<div id="header">
<h1 id="top">Enhanced Simple PHP Gallery</h1>
</div>
<h2><?php getPageTitle(); ?></h2>
 
Hi,

ich weiss ja nicht, wie die Stylesheets dazu aussehen, aber kommentiere doch das Header-Div, die Überschrift direkt darunter in der header.php und den breadcrumb-paragraph in der Hauptdatei einfach mal aus.

LG
 
Erstmal Danke für die Antworten. Das hat wunderbar geklappt :) ! Vielleicht könnt ihr mir noch sagen, wie ich die Bilder in einem neuen Fenster öffnen kann. Momentan werden die Thumbs in einer grösseren Ansicht angezeigt, siehe Screenshot :

screen02uv8.th.jpg


Sobald man draufklickt, erscheint im gleichen Frame das Bild. Wie kriege ich es hin, dass das Originalbild in einem neuen Fenster angezeigt wird?

Hier der Quellcode sp_config.php :

PHP:
<?php
$title = 'Willkommen auf wwthree';

//Thumbnail Settings
$maxthumbwidth = 120;
$maxthumbheight = 96;
$thumbquality = 100;

//Thumbnail next to category
$cat_thumbs = false;

// Unsharp mask settings for thumbnails
$thumb_applyunsharpmask = true;
$thumb_amount = 50;
$thumb_radius = 0.5;
$thumb_threshold = 2;

//Main Image Resize Settings
$resize = true;
$maxwidth = 640;
$maxheight = 480;
$resizequality = 100;

// Unsharp mask settings for resized images
$resize_applyunsharpmask = true;
$resize_amount = 50;
$resize_radius = 0.5;
$resize_threshold = 2;

//$modrewrite Settings
$modrewrite = false;

//Cache Settings
$cachethumbs = true;
$cachefolder = 'cache';

$cacheresized = true;
$cacheresizedfolder = 'rcache';

//Preload next image
$precache = true;

//Folder Hiding
$hide_folders[] = 'cgi-bin';

// Editing functions
$allowdeleting = true;
$allowmaking = true;

//Max image upload size default is 150Kb or 153600 bytes
$max_size = 2153600;

// Number of thumbnails to display on one page
$limit = 15;

//Miscellaneous Settings
$showcomments=true;
$showfolderdetails = true;
$showimgtitles = true;
$showdatesonthumbspage = false;
$alignimages = true;
$image_fade_in = true;// requires javascript

// Sort directories by title (true) or folder name (false)
$sortfoldersbytitle = false;

$gd_version = "2.0.28";
?>

Und hier noch der Code der sp_index.php :

PHP:
<?php
/*
Enhanced Simple PHP Gallery by Rich Pedley
based on Simple PHP Gallery by Paul Griffin.
see readme for full attribs.

This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License. 
see license.txt for further info

*/
$editmode = false;
require('lang/index.php');
require('sp_config.php');
require('sp_helper_functions.php');
require('sp_def_vars.php');
include('header.php');
?>

<?php
//IF A FILE WAS REQUESTED FOR VIEWING, OUTPUT IT
if($display_file != '') 
{
?>	
<div id="prevnext">
<?php getPrevAndNext();?>

</div>
<div class="clearer"></div>
<div id="image"><?php getFile(); ?></div>
<?php
	if(descriptionExists())
	{
?>
<p id="description"><?php getDescription();?></p>
<?php
	}
		
	if (dateExists()==true)
	{
?>   
<p id="thedate"><?php echo $GLOBALS['lang_date_added']; ?><?php getImageDate(); ?></p>
<?php
	}
	if($showcomments==true){
	?>
		<div id="comments">
		<?php include("comment.php"); ?>
		</div>
	<?php
	}
}

//OTHERWISE, A DIRECTORY LISTING REQUEST WAS MADE.  DISPLAY THE THUMBNAIL LINKS.
else 
{
	//IF THIS DIRECTORY HAS A DESCRIPTION, OUTPUT IT
	if(getDirDescription() != '')
	{
	?>
		<div id="dirdesc">
		<?php echo getDirDescription(); ?>
		</div>

	<?php	
	}
	//IF THERE ARE SUB-DIRECTORIES, LIST THEM.
	if(subDirExist())
	{
	?>
		<div id="directories"> <?php getDirLinks(); ?></div>
	<?php
	}
	?>
	<div id="gallery">
<?php
	//OUTPUT THUMBNAIL LINKS TO ALL IMAGES IN THIS DIRECTORY
if (isset($_GET['page'])){
	$page=$_GET['page'];
	$page = preg_replace('#[^0-9]#', '', $page);
}
	if(empty($page))
	{
		$page=1;
		$_GET['page']=1;
	}
	$i=0;
	foreach(getImgLinks() as $link)
	{
		global $limit;
		$totalrows=getNumImages($dir);
		$numofpages = $totalrows / $limit;
		$limitvalue = $page * $limit - ($limit);
		$b=$limitvalue+$limit-1;
		if ($i>=$limitvalue && $i<=$b)	echo $link;
		$i++;
	}
?>
	<div class="pagination">
<?php
	paginate();
?>

	</div>
	</div>
<?php
}
?>

<p id="credit">
<?php echo $GLOBALS['lang_powered']; ?> <a href="http://www.quirm.net/"><?php echo VERSION ?></a> <br />
<a href="http://<?php echo $_SERVER["HTTP_HOST"].returnCurrentWorkingDirectory()."/"; ?>sp_editor.php?<?php echo $_SERVER["QUERY_STRING"]; ?>"><?php echo $GLOBALS['lang_admin_link']; ?></a>
</p>

<?php include('footer.php'); ?>
 

Neue Beiträge

Zurück