forum.coppermine-gallery.net

Support => Deutsch (German) => Language Specific Support => cpg1.4.x Deutsch (German) => Topic started by: Hexo on June 06, 2009, 01:50:11 pm

Title: Bildansicht ändern.
Post by: Hexo on June 06, 2009, 01:50:11 pm
Huhu.

Ich hab da mal ne doofe frage:
Kann man das irgendwie konfigurieren, dass man, wenn man in der Thumbsübersicht eines Album ist und man ein Thumb anklickt, die Zwischengröße OHNE den Header oder den Footer öffnet? Das bräuchte ich für meine Integration nämlich so.

Gruß Hexo
Title: Re: Bildansicht ändern.
Post by: Αndré on June 06, 2009, 04:59:56 pm
Eventuell ist das Plugin EnlargeIt! (http://forum.coppermine-gallery.net/index.php/topic,55168.0.html) genau das, was du suchst.
Title: Re: Bildansicht ändern.
Post by: Hexo on June 06, 2009, 05:22:03 pm
Das sieht schonmal sehr sehr gut aus.
Aber jetzt mal doof gefragt...

Wo ist der toGalleryRoot Ordner?
Im Download existiert ein solcher Ordner nicht.
Title: Re: Bildansicht ändern.
Post by: Αndré on June 06, 2009, 05:53:21 pm
toGalleryRoot Ordner?

Das ist der Stammordner deiner Coppermine Galerie ::)
Title: Re: Bildansicht ändern.
Post by: Hexo on June 07, 2009, 10:19:34 am
Ne, dass ich schon klar, aber ich finde in dem Downloadordner in dem ersten Post von Timos-Welt keinen entsprechenden Ordner "toGalleryRoot" so dass ich auch keine Dateien in den Hauptordner einfügen kann.

Aktuell ist das so, wenn ich das Plugin aktiviere, kann ich kein Bild anklicken :-(

By the way. Ich hab mir auf Timo´s Welt das mal anschaut. Sieht schon gut aus. Ich will es auf jeden Fall mal testen (kann auch sein, dass ich das dauerhaft einsetzen werde), aber würde es denn, zu meiner Hauptfrage, evtl. noch eine andere Lösung geben?
Title: Re: Bildansicht ändern.
Post by: Joachim Müller on June 07, 2009, 10:21:35 am
aber würde es denn [...] evtl. noch eine andere Lösung geben?
Die gibt es immer.
Title: Re: Bildansicht ändern.
Post by: Hexo on June 07, 2009, 10:22:59 am
Könntest Du mir dann evtl. auch einen Denkanstoß geben, wie man sowas machen könnte?
Title: Re: Bildansicht ändern.
Post by: Hexo on June 07, 2009, 10:32:29 am
Sorry, ich finde den Editbutton nicht.

Es geht mir auf ein wenig um folgenden Code in meiner Theme.php

Code: [Select]
<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2006 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.9
**********************************************/

// ------------------------------------------------------------------------- //
// This theme has all CORE items removed                                     //
// ------------------------------------------------------------------------- //
define('THEME_IS_XHTML10_TRANSITIONAL',1);

$chCounter_visible 0;
$chCounter_status 'active';
$chCounter_page_title 'Emsfriends.com';
include( 
'/var/www/web2/web/counter/counter.php' );



// HTML template for title row of the thumbnail view (album title + sort options)
$template_thumb_view_title_row = <<<EOT

                        <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td width="100%" class="statlink"><h2>{ALBUM_NAME}</h2></td>
                                <td><img src="images/spacer.gif" width="1" alt="" /></td>
                                <td class="sortorder_cell">
                                        <table cellpadding="0" cellspacing="0">
                                        <tr>
                                                <!--<td class="sortorder_options">{TITLE}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=ta" title="{SORT_TA}">&nbsp;+&nbsp;</a></span></td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=td" title="{SORT_TD}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        <tr>
                                                <!--<td class="sortorder_options">{NAME}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=na" title="{SORT_NA}">&nbsp;+&nbsp;</a></span></td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=nd" title="{SORT_ND}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        <tr>
                                                <!--<td class="sortorder_options">{DATE}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=da" title="{SORT_DA}">&nbsp;+&nbsp;</a></span></td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=dd" title="{SORT_DD}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        <tr>
                                                <!--<td class="sortorder_options">{POSITION}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pa" title="{SORT_PA}">&nbsp;+&nbsp;</a></span></td>-->
                                               <!-- <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pd" title="{SORT_PD}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        </table>
                                </td>
                        </tr>
                        </table>

EOT;

// HTML template for thumbnails display
if (!isset($template_thumbnail_view))  //{THEMES}
$template_thumbnail_view = <<<EOT

<!-- BEGIN header -->
        <tr>
<!-- END header -->
<!-- BEGIN thumb_cell -->
        <td valign="top" class="thumbnails" width ="{CELL_WIDTH}" align="center">
         <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td align="center">
                        <a href="javascript:newwin=window.open('{LINK_TGT}', 'newwin', 'width=650,height=650'); newwin.focus();">{THUMB}<br /></a>
                                                                    {CAPTION}
                                        {ADMIN_MENU}
                                </td>
                        </tr>
                </table>
        </td>
<!-- END thumb_cell -->
<!-- BEGIN empty_cell -->
                <td valign="top" class="thumbnails" align="center">&nbsp;</td>
<!-- END empty_cell -->
<!-- BEGIN row_separator -->
        </tr>
        <tr>
<!-- END row_separator -->
<!-- BEGIN footer -->
        </tr>
<!-- END footer -->
<!-- BEGIN tabs -->
        <tr>
                <td colspan="{THUMB_COLS}" style="padding: 0px;">
                        <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
                                       {TABS}
                                </tr>
                        </table>
                </td>
        </tr>
<!-- END tabs -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->

EOT;

// HTML template for title row of the thumbnail view (album title + sort options)
$template_thumb_view_title_row = <<<EOT

                        <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td width="100%" class="statlink"><h2>{ALBUM_NAME}</h2></td>
                                <td><img src="images/spacer.gif" width="1" alt="" /></td>
                                <td class="sortorder_cell">
                                        <table cellpadding="0" cellspacing="0">
                                        <tr>
                                                <!--<td class="sortorder_options">{TITLE}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=ta" title="{SORT_TA}">&nbsp;+&nbsp;</a></span></td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=td" title="{SORT_TD}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        <tr>
                                                <!--<td class="sortorder_options">{NAME}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=na" title="{SORT_NA}">&nbsp;+&nbsp;</a></span></td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=nd" title="{SORT_ND}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        <tr>
                                                <!--<td class="sortorder_options">{DATE}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=da" title="{SORT_DA}">&nbsp;+&nbsp;</a></span></td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=dd" title="{SORT_DD}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        <tr>
                                                <!--<td class="sortorder_options">{POSITION}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pa" title="{SORT_PA}">&nbsp;+&nbsp;</a></span></td>-->
                                               <!-- <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pd" title="{SORT_PD}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        </table>
                                </td>
                        </tr>
                        </table>

EOT;

// Display the full size image
function theme_display_fullsize_pic()
{
    global 
$CONFIG$THEME_DIR$ALBUM_SET;
    global 
$lang_errors$lang_fullsize_popup$lang_charset;

    if (isset(
$_GET['picfile']))
    {
        if (!
GALLERY_ADMIN_MODEcpg_die(ERROR$lang_errors['access_denied'], __FILE____LINE__);

    
$picfile $_GET['picfile'];
    
$picname $CONFIG['fullpath'] . $picfile;
    
$imagesize = @getimagesize($picname);
    
$imagedata = array('name' => $picfile'path' => path2url($picname), 'geometry' => $imagesize[3]);
    }
    elseif (isset(
$_GET['pid']))
    {
    
$pid = (int)$_GET['pid'];
    
$sql "SELECT * " "FROM {$CONFIG['TABLE_PICTURES']} " "WHERE pid='$pid$ALBUM_SET";
    
$result cpg_db_query($sql);

    if (!
mysql_num_rows($result)) cpg_die(ERROR$lang_errors['non_exist_ap'], __FILE____LINE__);

    
$row mysql_fetch_array($result);
    
$pic_url get_pic_url($row'fullsize');
    
$geom 'width="' $row['pwidth'] . '" height="' $row['pheight'] . '"';
    
$imagedata = array('name' => $row['filename'], 'path' => $pic_url'geometry' => $geom);
    }

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=<?php echo $CONFIG['charset'] == 'language file' $lang_charset $CONFIG['charset'?>" />
  <title><?php echo $CONFIG['gallery_name'?>: <?php echo $lang_fullsize_popup['click_to_close'];
      
?>
</title>
  <script type="text/javascript" src="scripts.js"></script>
  <style type="text/css">
  body { margin: 0; padding: 0; background-color: grey; }
  img { margin:0; padding:0; border:0; }
  #content { margin:0 auto; padding:0; border:0; }
  table { border:0; height:100%; width:100%; border-collapse:collapse}
  td {         vertical-align: middle; text-align:center; }
  </style>
  </head>
  <body>
    <script language="JavaScript" type="text/JavaScript">
      adjust_popup();
    </script>
    <table>
      <tr>
            <td>
          <div id="content">
              <?php     echo  '<a href="javascript: window.close()"><img src="'
                
htmlspecialchars($imagedata['path']) . '" '
                
$imagedata['geometry']
                . 
'alt="'
                
htmlspecialchars($imagedata['name'])
                . 
'" title="'
                
htmlspecialchars($imagedata['name'])
                . 
"\n" $lang_fullsize_popup['click_to_close']
                . 
'" /></a><br />' ."\n";
               
?>

          </div>
        </td>
      </tr>
    </table>
  </body>
</html>
<?php
}

// HTML template for e-cards
$template_ecard = <<<EOT
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="{LANG_DIR}">
<head>
<meta http-equiv="content-type" content="text/html; charset={CHARSET}" />
<title>{TITLE}</title>
</head>
<body bgcolor="#FFFFFF" text="#0F5475" link="#0F5475" vlink="#0F5475" alink="#0F5475">
<br />
<p align="center"><a href="{VIEW_ECARD_TGT}"><b>{VIEW_ECARD_LNK}</b></a></p>
<table border="0px" cellspacing="0px" cellpadding="1px" align="center">
  <tr>
    <td bgcolor="#000000">
      <table border="0px" cellspacing="0px" cellpadding="10px" bgcolor="#ffffff">
        <tr>
          <td valign="top">
           <a href="{VIEW_MORE_TGT}/displayimage.php?pos=-{PID}">
                                         <img src="{PIC_URL}" border="1px" alt="" /></a>
                                         <br />
                                         <div align="center">
                                                 <h2>{PIC_TITLE}</h2>
                                         </div>

          </td>
          <td valign="top" width="300px">
            <div align="right"><img src="{URL_PREFIX}images/stamp.gif" border="0px" alt="" /></div>
            <br />
            <b><font face="arial" color="#000000" size="4">{GREETINGS}</font></b>
            <br />
            <br />
            <font face="arial" color="#000000" size="2">{MESSAGE}</font>
            <br />
            <br />
            <font face="arial" color="#000000" size="2">{SENDER_NAME}</font>
            (<a href="mailto:{SENDER_EMAIL}"><font face="arial" color="#000000" size="2">{SENDER_EMAIL}</font></a>)
          </td>
        </tr>
                <tr>
                        <td colspan="2">
                                {PIC_CAPTION}
                        </td>
                </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>
EOT;

// plain-text template for e-cards (as fallback for clients that can't display html-formatted mails)
$template_ecard_plaintext = <<<EOT
{TITLE}
=========================================

{VIEW_ECARD_LNK_PLAINTEXT}:
{VIEW_ECARD_TGT}

{GREETINGS}


{PLAINTEXT_MESSAGE}

{SENDER_NAME} ({SENDER_EMAIL})

-----------------------------------------
EOT;
?>

Damit steuer ich das so, dass ich von der Thumbnailübersicht direkt ein Popup bekomme. Das klappt auch wunderbar und auch die art der Navigation hat sich bei uns als gut bewährt. Allerdings wird in diesem Popup auch immer der Footer und der Header gezeigt, was an der Stelle nicht mehr zweckmäßig ist. Ich würde nur gerne den Header und den Footer darauf haben und aktuell hab ich keine Ahnung wie ich das machen soll.

Gruß


Title: Re: Bildansicht ändern.
Post by: Αndré on June 07, 2009, 12:38:13 pm
ich finde in dem Downloadordner in dem ersten Post von Timos-Welt keinen entsprechenden Ordner "toGalleryRoot" so dass ich auch keine Dateien in den Hauptordner einfügen kann.

v2.15 (2009/04/05)
--------------------
- it is not longer neccessary to copy anything to your gallery root
Title: Re: Bildansicht ändern.
Post by: Hexo on June 07, 2009, 01:17:37 pm
Es ist auf jeden Fall so, dass wenn ich das Plugin aktiviere, dass ich kein Bild mehr anklicken kann. Liegt vielleicht an Modpack v1 for CPG 1.4.23 bridge support from Stramm Send PM .
Title: Re: Bildansicht ändern.
Post by: Αndré on June 07, 2009, 01:27:23 pm
Dann installiere das Plugin bitte noch einmal. Vielleicht liegt es ja an deinem Browser.


Allerdings wird in diesem Popup auch immer der Footer und der Header gezeigt, was an der Stelle nicht mehr zweckmäßig ist. Ich würde nur gerne den Header und den Footer darauf haben und aktuell hab ich keine Ahnung wie ich das machen soll.
Wenn ich mir deine Galerie ansehe, wird der Header und Footer ja eigentlich nur auf den Vorschauseiten (http://www.emsfriends.com/thumbnails.php?album=44) benötigt, richtig? Wenn das so ist, kannst du Header & Footer ja generell weglassen und nur auf den Vorschauseiten einblenden lassen. So würde ich zumindest an die Sache herangehen.
Title: Re: Bildansicht ändern.
Post by: Hexo on June 07, 2009, 01:32:40 pm
Stimmt, ich brauche das nur auf der Startseite, meinen Extraseiten (Video, Disclaimer und Links) und auf der Vorschauseite, sonst nicht.
Doch wie kann ich das Steuern, dass bestimmte Seiten den Header und Footer bekommen, die Einzelansicht eines Bildes aber nicht mehr?

Achso, das Plugin hab ich nochmal deinstalliert und installiert. Kein Effekt. Es klappt einfach nicht. Weder beim IE, FF, Chrome oder Opera.
Aber ich glaub, dass Plugin hat mehr funktionen als ich überhaupt brauche. Deswegen wäre es mir persönlich lieber, wenn ich es ohne das Plugin hinbekommen könnte.
Title: Re: Bildansicht ändern.
Post by: Αndré on June 07, 2009, 01:41:44 pm
Doch wie kann ich das Steuern, dass bestimmte Seiten den Header und Footer bekommen, die Einzelansicht eines Bildes aber nicht mehr?

Wie schon gesagt:
Header & Footer generell weglassen und nur auf den Vorschauseiten einblenden lassen.

Wie man das am besten löst, kann ich dir evtl. morgen sagen, falls du bis dahin keine eigene Lösung gefunden hast.
Title: Re: Bildansicht ändern.
Post by: Hexo on June 07, 2009, 01:43:37 pm
Wenn ich ehrlich bin, suche ich schon seit ca. 1 Jahr eine Lösung :-(
Deswegen bin ich für jede Hilfe dankbar!
Title: Re: Bildansicht ändern.
Post by: Joachim Müller on June 07, 2009, 09:04:30 pm
Als erstes würde ich mal
Code: [Select]
<!--
|  chCounter 3.1.3
|  a counter and statistics script written in PHP
|  (c) Christoph Bachner and Bert Koern 2007 - released under the GNU GPL
|  see at [ http://chCounter.org/ ]
-->


<!-- BEGIN chCounter 3.1.3 additional statistics -->
<script type="text/javascript">
// <![CDATA[
document.write("<script type=\"text/javascript\" src=\"http://www.emsfriends.com/counter/additional.php?res_width=" + screen.width + "&res_height=" + screen.height + "&js=true\"><\/script>");
// ]]>
</script>
<!-- END chCounter 3.1.3 additional statistics -->
vor der doctype-declaration weghauen - da bekommt ja jeder Browser Depressionen.
Title: Re: Bildansicht ändern.
Post by: Hexo on June 07, 2009, 10:21:08 pm
Ups, dass sollte eigentlich nicht mehr da drin stehen. ok, hab ich mal raus gemacht.
Und was kann ich noch machen?

Gruß
Title: Re: Bildansicht ändern.
Post by: Αndré on June 08, 2009, 09:00:09 am
Und was kann ich noch machen?
Wie schon gesagt: bis heute warten ::)



Kopiere die Funktion pageheader aus der Datei themes/sample/theme.php in die Datei themes/<Dein Theme>/theme.php, falls diese dort noch nicht vorhanden ist.

Ersetze dann
Code: [Select]
$custom_header = cpg_get_custom_include($CONFIG['custom_header_path']);mit
Code: [Select]
global $PHP_SELF;
if ($PHP_SELF == 'thumbnails.php') {
$custom_header = cpg_get_custom_include($CONFIG['custom_header_path']);
}

Jetzt wird dein Header im Coppermine nur noch auf den Vorschauseiten angezeigt.
Title: Re: Bildansicht ändern.
Post by: Hexo on June 08, 2009, 12:32:17 pm
Moment. Heißt das in dem Code, dass der auf den Custom Header zurückgreift?
Ich hab meinen Header und Footer in dem Theme.html.

Weil ich hab das jetzt mal ausprobiert und es klappt leider nicht.
Achso, Footer müsste auch raus :-)

Gruß und danke für die Gedult!

Meine theme.php
Code: [Select]
<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2006 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.9
**********************************************/

// ------------------------------------------------------------------------- //
// This theme has all CORE items removed                                     //
// ------------------------------------------------------------------------- //
define('THEME_IS_XHTML10_TRANSITIONAL',1);

$chCounter_visible 0;
$chCounter_status 'active';
include( 
'/var/www/web2/web/counter/counter.php' );

// Function for writing a pageheader
function pageheader($section$meta '')
{
    global 
$CONFIG$THEME_DIR;
    global 
$template_header$lang_charset$lang_text_dir;

    global 
$PHP_SELF;
if ($PHP_SELF == 'thumbnails.php') {
$custom_header cpg_get_custom_include($CONFIG['custom_header_path']);
}


        
$charset = ($CONFIG['charset'] == 'language file') ? $lang_charset $CONFIG['charset'];

    
header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
        
header("Content-Type: text/html; charset=$charset");
    
user_save_profile();

    
$template_vars = array('{LANG_DIR}' => $lang_text_dir,
        
'{TITLE}' => $CONFIG['gallery_name'] . ' - ' strip_tags(bb_decode($section)),
        
'{CHARSET}' => $charset,
        
'{META}' => $meta,
        
'{GAL_NAME}' => $CONFIG['gallery_name'],
        
'{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],
        
'{SYS_MENU}' => theme_main_menu('sys_menu'),
        
'{SUB_MENU}' => theme_main_menu('sub_menu'),
        
'{ADMIN_MENU}' => theme_admin_mode_menu(),
        
'{CUSTOM_HEADER}' => $custom_header,
        );

    echo 
template_eval($template_header$template_vars);
}



// HTML template for title row of the thumbnail view (album title + sort options)
$template_thumb_view_title_row = <<<EOT

                        <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td width="100%" class="statlink"><h2>{ALBUM_NAME}</h2></td>
                                <td><img src="images/spacer.gif" width="1" alt="" /></td>
                                <td class="sortorder_cell">
                                        <table cellpadding="0" cellspacing="0">
                                        <tr>
                                                <!--<td class="sortorder_options">{TITLE}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=ta" title="{SORT_TA}">&nbsp;+&nbsp;</a></span></td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=td" title="{SORT_TD}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        <tr>
                                                <!--<td class="sortorder_options">{NAME}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=na" title="{SORT_NA}">&nbsp;+&nbsp;</a></span></td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=nd" title="{SORT_ND}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        <tr>
                                                <!--<td class="sortorder_options">{DATE}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=da" title="{SORT_DA}">&nbsp;+&nbsp;</a></span></td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=dd" title="{SORT_DD}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        <tr>
                                                <!--<td class="sortorder_options">{POSITION}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pa" title="{SORT_PA}">&nbsp;+&nbsp;</a></span></td>-->
                                               <!-- <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pd" title="{SORT_PD}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        </table>
                                </td>
                        </tr>
                        </table>

EOT;

// HTML template for thumbnails display
if (!isset($template_thumbnail_view))  //{THEMES}
$template_thumbnail_view = <<<EOT

<!-- BEGIN header -->
        <tr>
<!-- END header -->
<!-- BEGIN thumb_cell -->
        <td valign="top" class="thumbnails" width ="{CELL_WIDTH}" align="center">
         <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td align="center">
                        <a href="javascript:newwin=window.open('{LINK_TGT}', 'newwin', 'width=650,height=650'); newwin.focus();">{THUMB}<br /></a>
                                                                    {CAPTION}
                                        {ADMIN_MENU}
                                </td>
                        </tr>
                </table>
        </td>
<!-- END thumb_cell -->
<!-- BEGIN empty_cell -->
                <td valign="top" class="thumbnails" align="center">&nbsp;</td>
<!-- END empty_cell -->
<!-- BEGIN row_separator -->
        </tr>
        <tr>
<!-- END row_separator -->
<!-- BEGIN footer -->
        </tr>
<!-- END footer -->
<!-- BEGIN tabs -->
        <tr>
                <td colspan="{THUMB_COLS}" style="padding: 0px;">
                        <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
                                       {TABS}
                                </tr>
                        </table>
                </td>
        </tr>
<!-- END tabs -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->

EOT;

// HTML template for title row of the thumbnail view (album title + sort options)
$template_thumb_view_title_row = <<<EOT

                        <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td width="100%" class="statlink"><h2>{ALBUM_NAME}</h2></td>
                                <td><img src="images/spacer.gif" width="1" alt="" /></td>
                                <td class="sortorder_cell">
                                        <table cellpadding="0" cellspacing="0">
                                        <tr>
                                                <!--<td class="sortorder_options">{TITLE}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=ta" title="{SORT_TA}">&nbsp;+&nbsp;</a></span></td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=td" title="{SORT_TD}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        <tr>
                                                <!--<td class="sortorder_options">{NAME}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=na" title="{SORT_NA}">&nbsp;+&nbsp;</a></span></td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=nd" title="{SORT_ND}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        <tr>
                                                <!--<td class="sortorder_options">{DATE}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=da" title="{SORT_DA}">&nbsp;+&nbsp;</a></span></td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=dd" title="{SORT_DD}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        <tr>
                                                <!--<td class="sortorder_options">{POSITION}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pa" title="{SORT_PA}">&nbsp;+&nbsp;</a></span></td>-->
                                               <!-- <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pd" title="{SORT_PD}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        </table>
                                </td>
                        </tr>
                        </table>

EOT;

// Display the full size image
function theme_display_fullsize_pic()
{
    global 
$CONFIG$THEME_DIR$ALBUM_SET;
    global 
$lang_errors$lang_fullsize_popup$lang_charset;

    if (isset(
$_GET['picfile']))
    {
        if (!
GALLERY_ADMIN_MODEcpg_die(ERROR$lang_errors['access_denied'], __FILE____LINE__);

    
$picfile $_GET['picfile'];
    
$picname $CONFIG['fullpath'] . $picfile;
    
$imagesize = @getimagesize($picname);
    
$imagedata = array('name' => $picfile'path' => path2url($picname), 'geometry' => $imagesize[3]);
    }
    elseif (isset(
$_GET['pid']))
    {
    
$pid = (int)$_GET['pid'];
    
$sql "SELECT * " "FROM {$CONFIG['TABLE_PICTURES']} " "WHERE pid='$pid$ALBUM_SET";
    
$result cpg_db_query($sql);

    if (!
mysql_num_rows($result)) cpg_die(ERROR$lang_errors['non_exist_ap'], __FILE____LINE__);

    
$row mysql_fetch_array($result);
    
$pic_url get_pic_url($row'fullsize');
    
$geom 'width="' $row['pwidth'] . '" height="' $row['pheight'] . '"';
    
$imagedata = array('name' => $row['filename'], 'path' => $pic_url'geometry' => $geom);
    }

?>

<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=<?php echo $CONFIG['charset'] == 'language file' $lang_charset $CONFIG['charset'?>" />
  <title><?php echo $CONFIG['gallery_name'?>: <?php echo $lang_fullsize_popup['click_to_close'];
      
?>
</title>
  <script type="text/javascript" src="scripts.js"></script>
  <style type="text/css">
  body { margin: 0; padding: 0; background-color: grey; }
  img { margin:0; padding:0; border:0; }
  #content { margin:0 auto; padding:0; border:0; }
  table { border:0; height:100%; width:100%; border-collapse:collapse}
  td {         vertical-align: middle; text-align:center; }
  </style>
  </head>
  <body>
    <script language="JavaScript" type="text/JavaScript">
      adjust_popup();
    </script>
    <table>
      <tr>
            <td>
          <div id="content">
              <?php     echo  '<a href="javascript: window.close()"><img src="'
                
htmlspecialchars($imagedata['path']) . '" '
                
$imagedata['geometry']
                . 
'alt="'
                
htmlspecialchars($imagedata['name'])
                . 
'" title="'
                
htmlspecialchars($imagedata['name'])
                . 
"\n" $lang_fullsize_popup['click_to_close']
                . 
'" /></a><br />' ."\n";
               
?>

          </div>
        </td>
      </tr>
    </table>
  </body>
</html>
<?php
}

// HTML template for e-cards
$template_ecard = <<<EOT
<html dir="{LANG_DIR}">
<head>
<meta http-equiv="content-type" content="text/html; charset={CHARSET}" />
<title>{TITLE}</title>
</head>
<body bgcolor="#FFFFFF" text="#0F5475" link="#0F5475" vlink="#0F5475" alink="#0F5475">
<br />
<p align="center"><a href="{VIEW_ECARD_TGT}"><b>{VIEW_ECARD_LNK}</b></a></p>
<table border="0px" cellspacing="0px" cellpadding="1px" align="center">
  <tr>
    <td bgcolor="#000000">
      <table border="0px" cellspacing="0px" cellpadding="10px" bgcolor="#ffffff">
        <tr>
          <td valign="top">
           <a href="{VIEW_MORE_TGT}/displayimage.php?pos=-{PID}">
                                         <img src="{PIC_URL}" border="1px" alt="" /></a>
                                         <br />
                                         <div align="center">
                                                 <h2>{PIC_TITLE}</h2>
                                         </div>

          </td>
          <td valign="top" width="300px">
            <div align="right"><img src="{URL_PREFIX}images/stamp.gif" border="0px" alt="" /></div>
            <br />
            <b><font face="arial" color="#000000" size="4">{GREETINGS}</font></b>
            <br />
            <br />
            <font face="arial" color="#000000" size="2">{MESSAGE}</font>
            <br />
            <br />
            <font face="arial" color="#000000" size="2">{SENDER_NAME}</font>
            (<a href="mailto:{SENDER_EMAIL}"><font face="arial" color="#000000" size="2">{SENDER_EMAIL}</font></a>)
          </td>
        </tr>
                <tr>
                        <td colspan="2">
                                {PIC_CAPTION}
                        </td>
                </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>
EOT;

// plain-text template for e-cards (as fallback for clients that can't display html-formatted mails)
$template_ecard_plaintext = <<<EOT
{TITLE}
=========================================

{VIEW_ECARD_LNK_PLAINTEXT}:
{VIEW_ECARD_TGT}

{GREETINGS}


{PLAINTEXT_MESSAGE}

{SENDER_NAME} ({SENDER_EMAIL})

-----------------------------------------
EOT;
?>
Title: Re: Bildansicht ändern.
Post by: Αndré on June 08, 2009, 12:38:15 pm
Ich hab meinen Header und Footer in dem Theme.html.
Ich schätze mal, dass du die Datei template.html (http://www.emsfriends.com/themes/emsfriends/template.html) meinst.

Einfachste Lösung: nimm deinen Header aus der template.html heraus und pack ihn in eine extra Datei. Diese bindest du dann über den Custom-Header ein und dann sollte mein Code funktionieren. Dieselbe Methode kannst du dann auch für den Footer anwenden.

Title: Re: Bildansicht ändern.
Post by: Hexo on June 08, 2009, 08:20:56 pm
Ich pack et net. Es klappt so. Allerdings wird jetzt bei meinen eigenen Seiten kein Footer und Header mehr gezeigt.

z.b. meine Startseite (start.php)

Code: [Select]
<?php

define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');

pageheader('Start');

starttable("100%");

echo <<< EOT

        <tr align="center">
<td width="1px"><img src="images/spacer.gif" width="1" height="275" border="" alt="" /></td>
           <td width="250px" valign="middle"><div align="center">
        <b>WICHTIGE DATES</b><br />
        <br />
        23.05.09 Ramon Senj. Geb.<br />
        19.06.09 Eileen Geb.<br />
        21.06.09 Dani Geb.<br />
        <br />
                
        </div></td>
    <td valign="middle"><div align="center">
        <img src="themes/emsfriends/images/news.jpg" width="275px" height="44px" alt="news" /><br />
        <h2>Zufallsbild letzte &Auml;nderung:</h2><br />
<br />
EOT;
       include 
"./cpmfetch/cpmfetch.php";
       $objCpm = new cpm("./cpmfetch/cpmfetch_config.php");
       $options = array( 'imagesize' => 'thumb' );
       $objCpm->cpm_viewRandomMediaFromAlbum(1,1,44,$options); 
       $objCpm->cpm_close();
       
        
echo <<< EOT
        <br /><i>Letzte &Auml;nderung: </i><br />
        PICS/PARTYS: <a href="./thumbnails.php?album=44" target="_self">Kanutour 2009</a><br />
        PICS/PARTYS: <a href="./thumbnails.php?album=43" target="_self">Black and White 2009</a><br />
         </div></td>
    <td width="250px" valign="middle"><div align="center">
        Eine Schifffahrt die ist sch&ouml;n.<br />
       Prost ihr S&auml;cke :-)<br />
   
        <br />
    </div></td>
<td width="1px"><img src="images/spacer.gif" width="1" height="275" border="" alt="" /></td>
  </tr>

EOT;

endtable();
pagefooter();
ob_end_flush();

?>

[code]

[/code]
Title: Re: Bildansicht ändern.
Post by: Hexo on June 08, 2009, 08:31:36 pm
Verdammt. Ich suche echt den Editbutton....

Wie dem auch sei: Es klappt doch nicht. Ich hab den Header und den Footer nur wenn ich die Thumbs sehe. Sonst sind beide immer deaktiviert.

Ich hab mal so gelassen: www.emsfriends.com . Da kann man das sehen.

Meine theme.php
Code: [Select]
<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2006 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.9
**********************************************/

// ------------------------------------------------------------------------- //
// This theme has all CORE items removed                                     //
// ------------------------------------------------------------------------- //
define('THEME_IS_XHTML10_TRANSITIONAL',1);

$chCounter_visible 0;
$chCounter_status 'active';
include( 
'/var/www/web2/web/counter/counter.php' );

// Function for writing a pageheader
function pageheader($section$meta '')
{
    global 
$CONFIG$THEME_DIR;
    global 
$template_header$lang_charset$lang_text_dir;

    global 
$PHP_SELF;
if ($PHP_SELF == 'thumbnails.php') {
$custom_header cpg_get_custom_include($CONFIG['custom_header_path']);
}

        
$charset = ($CONFIG['charset'] == 'language file') ? $lang_charset $CONFIG['charset'];

    
header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
        
header("Content-Type: text/html; charset=$charset");
    
user_save_profile();

    
$template_vars = array('{LANG_DIR}' => $lang_text_dir,
        
'{TITLE}' => $CONFIG['gallery_name'] . ' - ' strip_tags(bb_decode($section)),
        
'{CHARSET}' => $charset,
        
'{META}' => $meta,
        
'{GAL_NAME}' => $CONFIG['gallery_name'],
        
'{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],
        
'{SYS_MENU}' => theme_main_menu('sys_menu'),
        
'{SUB_MENU}' => theme_main_menu('sub_menu'),
        
'{ADMIN_MENU}' => theme_admin_mode_menu(),
        
'{CUSTOM_HEADER}' => $custom_header,
        );

    echo 
template_eval($template_header$template_vars);
}


// Function for writing a pagefooter
function pagefooter()
{
    
//global $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_SERVER_VARS;
    
global $USER$USER_DATA$ALBUM_SET$CONFIG$time_start$query_stats$queries;
    global 
$template_footer;

global $PHP_SELF;
if ($PHP_SELF == 'thumbnails.php') {
$custom_footer cpg_get_custom_include($CONFIG['custom_footer_path']);
}

    if (
$CONFIG['debug_mode']==|| ($CONFIG['debug_mode']==&& GALLERY_ADMIN_MODE)) {
    
cpg_debug_output();
    }

    
$template_vars = array(
        
'{CUSTOM_FOOTER}' => $custom_footer,
        
'{VANITY}' => (defined('THEME_IS_XHTML10_TRANSITIONAL') && $CONFIG['vanity_block']) ? theme_vanity() : '',
    );

    echo 
template_eval($template_footer$template_vars);
}



// HTML template for title row of the thumbnail view (album title + sort options)
$template_thumb_view_title_row = <<<EOT

                        <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td width="100%" class="statlink"><h2>{ALBUM_NAME}</h2></td>
                                <td><img src="images/spacer.gif" width="1" alt="" /></td>
                                <td class="sortorder_cell">
                                        <table cellpadding="0" cellspacing="0">
                                        <tr>
                                                <!--<td class="sortorder_options">{TITLE}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=ta" title="{SORT_TA}">&nbsp;+&nbsp;</a></span></td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=td" title="{SORT_TD}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        <tr>
                                                <!--<td class="sortorder_options">{NAME}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=na" title="{SORT_NA}">&nbsp;+&nbsp;</a></span></td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=nd" title="{SORT_ND}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        <tr>
                                                <!--<td class="sortorder_options">{DATE}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=da" title="{SORT_DA}">&nbsp;+&nbsp;</a></span></td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=dd" title="{SORT_DD}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        <tr>
                                                <!--<td class="sortorder_options">{POSITION}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pa" title="{SORT_PA}">&nbsp;+&nbsp;</a></span></td>-->
                                               <!-- <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pd" title="{SORT_PD}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        </table>
                                </td>
                        </tr>
                        </table>

EOT;

// HTML template for thumbnails display
if (!isset($template_thumbnail_view))  //{THEMES}
$template_thumbnail_view = <<<EOT

<!-- BEGIN header -->
        <tr>
<!-- END header -->
<!-- BEGIN thumb_cell -->
        <td valign="top" class="thumbnails" width ="{CELL_WIDTH}" align="center">
         <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td align="center">
                        <a href="javascript:newwin=window.open('{LINK_TGT}', 'newwin', 'width=650,height=650'); newwin.focus();">{THUMB}<br /></a>
                                                                    {CAPTION}
                                        {ADMIN_MENU}
                                </td>
                        </tr>
                </table>
        </td>
<!-- END thumb_cell -->
<!-- BEGIN empty_cell -->
                <td valign="top" class="thumbnails" align="center">&nbsp;</td>
<!-- END empty_cell -->
<!-- BEGIN row_separator -->
        </tr>
        <tr>
<!-- END row_separator -->
<!-- BEGIN footer -->
        </tr>
<!-- END footer -->
<!-- BEGIN tabs -->
        <tr>
                <td colspan="{THUMB_COLS}" style="padding: 0px;">
                        <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
                                       {TABS}
                                </tr>
                        </table>
                </td>
        </tr>
<!-- END tabs -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->

EOT;

// HTML template for title row of the thumbnail view (album title + sort options)
$template_thumb_view_title_row = <<<EOT

                        <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td width="100%" class="statlink"><h2>{ALBUM_NAME}</h2></td>
                                <td><img src="images/spacer.gif" width="1" alt="" /></td>
                                <td class="sortorder_cell">
                                        <table cellpadding="0" cellspacing="0">
                                        <tr>
                                                <!--<td class="sortorder_options">{TITLE}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=ta" title="{SORT_TA}">&nbsp;+&nbsp;</a></span></td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=td" title="{SORT_TD}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        <tr>
                                                <!--<td class="sortorder_options">{NAME}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=na" title="{SORT_NA}">&nbsp;+&nbsp;</a></span></td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=nd" title="{SORT_ND}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        <tr>
                                                <!--<td class="sortorder_options">{DATE}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=da" title="{SORT_DA}">&nbsp;+&nbsp;</a></span></td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=dd" title="{SORT_DD}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        <tr>
                                                <!--<td class="sortorder_options">{POSITION}</td>-->
                                                <!--<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pa" title="{SORT_PA}">&nbsp;+&nbsp;</a></span></td>-->
                                               <!-- <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pd" title="{SORT_PD}">&nbsp;-&nbsp;</a></span></td>-->
                                        </tr>
                                        </table>
                                </td>
                        </tr>
                        </table>

EOT;

// Display the full size image
function theme_display_fullsize_pic()
{
    global 
$CONFIG$THEME_DIR$ALBUM_SET;
    global 
$lang_errors$lang_fullsize_popup$lang_charset;

    if (isset(
$_GET['picfile']))
    {
        if (!
GALLERY_ADMIN_MODEcpg_die(ERROR$lang_errors['access_denied'], __FILE____LINE__);

    
$picfile $_GET['picfile'];
    
$picname $CONFIG['fullpath'] . $picfile;
    
$imagesize = @getimagesize($picname);
    
$imagedata = array('name' => $picfile'path' => path2url($picname), 'geometry' => $imagesize[3]);
    }
    elseif (isset(
$_GET['pid']))
    {
    
$pid = (int)$_GET['pid'];
    
$sql "SELECT * " "FROM {$CONFIG['TABLE_PICTURES']} " "WHERE pid='$pid$ALBUM_SET";
    
$result cpg_db_query($sql);

    if (!
mysql_num_rows($result)) cpg_die(ERROR$lang_errors['non_exist_ap'], __FILE____LINE__);

    
$row mysql_fetch_array($result);
    
$pic_url get_pic_url($row'fullsize');
    
$geom 'width="' $row['pwidth'] . '" height="' $row['pheight'] . '"';
    
$imagedata = array('name' => $row['filename'], 'path' => $pic_url'geometry' => $geom);
    }

?>

<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=<?php echo $CONFIG['charset'] == 'language file' $lang_charset $CONFIG['charset'?>" />
  <title><?php echo $CONFIG['gallery_name'?>: <?php echo $lang_fullsize_popup['click_to_close'];
      
?>
</title>
  <script type="text/javascript" src="scripts.js"></script>
  <style type="text/css">
  body { margin: 0; padding: 0; background-color: grey; }
  img { margin:0; padding:0; border:0; }
  #content { margin:0 auto; padding:0; border:0; }
  table { border:0; height:100%; width:100%; border-collapse:collapse}
  td {         vertical-align: middle; text-align:center; }
  </style>
  </head>
  <body>
    <script language="JavaScript" type="text/JavaScript">
      adjust_popup();
    </script>
    <table>
      <tr>
            <td>
          <div id="content">
              <?php     echo  '<a href="javascript: window.close()"><img src="'
                
htmlspecialchars($imagedata['path']) . '" '
                
$imagedata['geometry']
                . 
'alt="'
                
htmlspecialchars($imagedata['name'])
                . 
'" title="'
                
htmlspecialchars($imagedata['name'])
                . 
"\n" $lang_fullsize_popup['click_to_close']
                . 
'" /></a><br />' ."\n";
               
?>

          </div>
        </td>
      </tr>
    </table>
  </body>
</html>
<?php
}

// HTML template for e-cards
$template_ecard = <<<EOT
<html dir="{LANG_DIR}">
<head>
<meta http-equiv="content-type" content="text/html; charset={CHARSET}" />
<title>{TITLE}</title>
</head>
<body bgcolor="#FFFFFF" text="#0F5475" link="#0F5475" vlink="#0F5475" alink="#0F5475">
<br />
<p align="center"><a href="{VIEW_ECARD_TGT}"><b>{VIEW_ECARD_LNK}</b></a></p>
<table border="0px" cellspacing="0px" cellpadding="1px" align="center">
  <tr>
    <td bgcolor="#000000">
      <table border="0px" cellspacing="0px" cellpadding="10px" bgcolor="#ffffff">
        <tr>
          <td valign="top">
           <a href="{VIEW_MORE_TGT}/displayimage.php?pos=-{PID}">
                                         <img src="{PIC_URL}" border="1px" alt="" /></a>
                                         <br />
                                         <div align="center">
                                                 <h2>{PIC_TITLE}</h2>
                                         </div>

          </td>
          <td valign="top" width="300px">
            <div align="right"><img src="{URL_PREFIX}images/stamp.gif" border="0px" alt="" /></div>
            <br />
            <b><font face="arial" color="#000000" size="4">{GREETINGS}</font></b>
            <br />
            <br />
            <font face="arial" color="#000000" size="2">{MESSAGE}</font>
            <br />
            <br />
            <font face="arial" color="#000000" size="2">{SENDER_NAME}</font>
            (<a href="mailto:{SENDER_EMAIL}"><font face="arial" color="#000000" size="2">{SENDER_EMAIL}</font></a>)
          </td>
        </tr>
                <tr>
                        <td colspan="2">
                                {PIC_CAPTION}
                        </td>
                </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>
EOT;

// plain-text template for e-cards (as fallback for clients that can't display html-formatted mails)
$template_ecard_plaintext = <<<EOT
{TITLE}
=========================================

{VIEW_ECARD_LNK_PLAINTEXT}:
{VIEW_ECARD_TGT}

{GREETINGS}


{PLAINTEXT_MESSAGE}

{SENDER_NAME} ({SENDER_EMAIL})

-----------------------------------------
EOT;
?>

Title: Re: Bildansicht ändern.
Post by: Αndré on June 09, 2009, 07:43:30 am
Ups. Kleiner Fehler meinerseits :P

Code: [Select]
global $PHP_SELF;
if ($PHP_SELF == 'thumbnails.php') {
$custom_header = cpg_get_custom_include($CONFIG['custom_header_path']);
}
muss natürlich
Code: [Select]
global $PHP_SELF;
if ($PHP_SELF != 'thumbnails.php') {
$custom_header = cpg_get_custom_include($CONFIG['custom_header_path']);
}
heissen.
Title: Re: Bildansicht ändern.
Post by: Hexo on June 09, 2009, 09:03:26 am
Ok, wieder ein schritt weiter, aber es klappt leider noch nicht so 100% wie ich mir das vorstelle.

Jetzt hab ich bei meinen Eigenen Seiten, sowie in der Albumübersicht den Header und den Footer. So soll es sein.
Wenn ich in ein Album rein gehe und die Thumbs sehe, dann ist der Footer und Header weg. Das soll so nicht sein. Dort soll eigentlich der Header und Footer auch zu sehen sein.
Wenn ich ein Thumb anklicke und das Popup sich aufmacht, ist der Header und der Footer da. Das soll so nicht sein. Genau in diesem Bild will ich den Header und Footer nicht sehen.

Gruß Hexo
Title: Re: Bildansicht ändern.
Post by: Αndré on June 09, 2009, 09:07:41 am
Ersetze
Code: [Select]
global $PHP_SELF;
if ($PHP_SELF != 'thumbnails.php') {
$custom_header = cpg_get_custom_include($CONFIG['custom_header_path']);
}
mit
Code: [Select]
global $PHP_SELF;
if ($PHP_SELF != 'displayimage.php') {
$custom_header = cpg_get_custom_include($CONFIG['custom_header_path']);
}
Title: Re: Bildansicht ändern.
Post by: Hexo on June 09, 2009, 12:26:12 pm
Genial. Mit Displayimage hatte ich es gestern schon probiert aber irgendwie wollte das gestern nicht.
Jetzt klappt es. Super genial.
10000000 Dank!!!!

Gruß Hexo
Title: Re: Bildansicht ändern.
Post by: Joachim Müller on June 09, 2009, 11:15:30 pm
Dann ändere
Code: [Select]
if ($PHP_SELF == 'thumbnails.php') {in
Code: [Select]
if ($PHP_SELF == 'thumbnails.php' || $PHP_SELF == 'start.php') {
Title: Re: Bildansicht ändern.
Post by: Hexo on June 10, 2009, 12:06:29 am
Dann ändere
Code: [Select]
if ($PHP_SELF == 'thumbnails.php') {in
Code: [Select]
if ($PHP_SELF == 'thumbnails.php' || $PHP_SELF == 'start.php') {

Hey.
Ich meine nur, dass ich es mit Displayimage ausprobiert hatte, aber es klappte gestern nicht.
Anscheinend hatte ich irgendwo einen kleinen Fehler drin.
Mit dem Code von eenemeenemuu
Code: [Select]
global $PHP_SELF;
if ($PHP_SELF != 'displayimage.php') {

hat es auch wunderbar geklappt!

Danke nochmals für die Hilfen!