Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: 1.5.8 jump to maintable  (Read 3671 times)

0 Members and 1 Guest are viewing this topic.

spacefun

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
1.5.8 jump to maintable
« on: August 13, 2010, 05:10:14 pm »

Hallo
Die neue Version von Coppermine ist eine tolle Sache. Sehr durchdacht und strukturierter als 1.4.xx.

Was mir aufgefallen ist, wäre folgendes. Wenn ich bei der Bildansicht auf weiter klicke springt die Seite immer an den oberen Rand des Bildtabelle.
Beispiel: http://coppermine-gallery.net/demo/cpg15x/displayimage.php?album=3&pid=7#top_display_media
An und für sich eine gute Sache.

In meinem Fall möchte ich diese Funktion aber ausschaltern, da ich die Gallery in einem Frame öffen und diese Funktion da nicht so toll ist.

Weiss jemand wo ich suchen muss um die Seite immer als "top" ausgeben zu lassen.?

danke
Logged

Αndré

  • Administrator
  • Coppermine addict
  • ****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: 1.5.8 jump to maintable
« Reply #1 on: August 13, 2010, 05:17:56 pm »

Kopiere folgendes in die Datei theme.php deines Themes:
Code: [Select]
function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)
{
    global $CONFIG, $LINEBREAK;

    $superCage = Inspekt::makeSuperCage();

    $width = $CONFIG['picture_table_width'];

    //echo '<a name="top_display_media"></a>'; // set the navbar-anchor
    starttable();
    echo $nav_menu;
    endtable();

    starttable();
    echo $picture;
    endtable();
    if ($CONFIG['display_film_strip'] == 1) {
        echo $film_strip;
    }


    echo $votes;

    $picinfo = $superCage->cookie->keyExists('picinfo') ? $superCage->cookie->getAlpha('picinfo') : ($CONFIG['display_pic_info'] ? 'block' : 'none');
    echo $LINEBREAK . '<div id="picinfo" style="display: '.str_replace('.gif','.png',$picinfo).';">' . $LINEBREAK;
    starttable();
    echo $pic_info;
    endtable();
    echo '</div>' . $LINEBREAK;

    echo '<a name="comments_top"></a>';
    echo '<div id="comments">' . $LINEBREAK;
        echo $comments;
        echo '</div>' . $LINEBREAK;

}

Das ist jetzt nur quick & dirty, da die Seiten trotzdem noch mit #top_display_media aufgerufen werden. Wenn dir das nicht gefällt durchsuche den Quelltext danach und entferne es.
Logged

spacefun

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: 1.5.8 jump to maintable
« Reply #2 on: August 13, 2010, 06:53:12 pm »

Vielen Dank André

Genau danach habe ich gesucht.

Gruss space
Logged
Pages: [1]   Go Up
 

Page created in 0.052 seconds with 19 queries.