Problem mit Bildergallery - Anzeige von vielen Bildern

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Problem mit Bildergallery - Anzeige von vielen Bildern

    Hallo zusammen,

    ich kenne mich leider in dem Bereich nicht so gut aus, deshalb hoffe ich auf eure Hilfe bei der Erstellung meiner Homepage.

    Ich habe eine kleine Bildergallery auf meiner Homepage. Es werden aber in jedem Album nur die ersten 16 Bilder angezeigt, aber es gibt dann keine 2. Seite obwohl ich fast 100 Bilder in das Album geladen habe. ich habe im code nichts gefunden wie man das ändern kann.

    grüße,

    Sebastian

    http://party-in-ratingen.de/index.php?section=galerie

  • #2
    wende dich an den hersteller des scriptes.

    Kommentar


    • #3
      Ich habe keinen Kontakt mehr zu dem, der mir die Gallery erstellt hat.
      leigt es denn am Code oder am Template dass nur 16 bilder pro Album angezeigt werden?


      PHP-Code:
      <?php
      /*
       * Created on 07.11.2005
       *
       * nokya-online
       * coded by Heiko Schuck
       * 
       * galerie
       * 
       */
       
       
      if (!isset($_GET ['id'])) {
           
            
      $totalPages 0;
           
      $showPerPage 2// datensätze pro seite
           
      $linkTo "index.php?section=galerie&amp;uebersicht=all";
               
            if (isset(
      $_GET['uebersicht']) AND $_GET['uebersicht']=="all") {
                
      // alle anzeigen
                
      $limit "";
                
      $actPage $_GET['p'];
                
      $smarty->assign('all'true);
            } else {
                
      // nur die letzten 10 anzeigen
                
      $limit "LIMIT 0,10";
                
      $smarty->assign('all'false);
            }
       
           if(!isset(
      $_GET['p']))
              
      $actPage 1;
           else
              
      $actPage $_GET['p'];
              
       
            
      // übersicht anzeigen
            
            
      $smarty->assign('gallery_type''uebersicht');
           
           if (
      $mz->logged_in()) {
           
      $sql =  "SELECT 
                       *,
                       DATE_FORMAT(datum, '%d.%m.%Y') AS datum
                   FROM
                          gallery_albums
                   "
      ;
           } else {
                
      $sql =  "SELECT 
                       *,
                       DATE_FORMAT(datum, '%d.%m.%Y') AS datum
                   FROM
                          gallery_albums
                      WHERE 
                          typ = 'alle'
                   "
      ;    
           }
               
            
      $Anzahl $db->sql_numrows($db->sql_query($sql));  
              
      $totalPages ceil($Anzahl/$showPerPage);    
              
              if (
      $Anzahl != AND $_GET['uebersicht']=="all") {
              
      $lim1 = (($actPage-1)*$showPerPage);
              
      $limit ="LIMIT ".$lim1.",".$showPerPage."";
              } 
              
              if (isset(
      $_GET['uebersicht']) AND $_GET['uebersicht']=="all") {
              
      $pa = &new pager();
            
      $pa->init();
          
            
      $page $pa->getPager($totalPages$actPage$linkTo);
          
            
      $smarty->assign('pager'$page);
              }

          if (
      $mz->logged_in()) {
           
      $sql =  "SELECT 
                       *,
                       DATE_FORMAT(datum, '%d.%m.%Y') AS datum
                   FROM
                          gallery_albums
                      ORDER BY
                          datum DESC
                      "
      .$limit."
                   "
      ;
          } else {
          
      $sql =  "SELECT 
                       *,
                       DATE_FORMAT(datum, '%d.%m.%Y') AS datum
                   FROM
                          gallery_albums
                      WHERE typ = 'alle'
                      ORDER BY
                          datum DESC
                      "
      .$limit."
                   "
      ;    
          }
              
           
      $result $db->sql_query($sql);
           
           
      $chr 300;
           
           while (
      $row mysql_fetch_assoc($result)) {
               
              if (
      strlen($row['beschreibung']) > $chr) {
                  
      $SomeNewsMsg=substr($SomeNewsMsg,0,$chr);
                  
      $LastString=substr($SomeNewsMsg,$chr-1,1);
                  
      $SomeNewsMsg changetext_nobr($SomeNewsMsg);
                  if(
      $LastString<>" ") {
                      
      $SomeNewsMsg=substr($SomeNewsMsg,0,strrpos($SomeNewsMsg," "))."... ";
                  } else {
                      
      $SomeNewsMsg=substr($SomeNewsMsg,0,$chr-1)."... ";
                  }
              } else {
                  
      $SomeNewsMsg changetext_nobr($row['beschreibung']);
              }
                  
              
      $row['beschreibung'] = $SomeNewsMsg;
              
              
      $sql =  "SELECT 
                           id,
                           titel
                       FROM
                              events
                          WHERE 
                              id = "
      .$row['event_id']."
                   "
      ;
           
               
      $result_event $db->sql_query($sql);
               
      $row_event mysql_fetch_assoc($result_event);
               
      $event_id $row_event['id'];
               
      $event_titel $row_event['titel'];
               
               
      $sql =  "SELECT 
                           id,
                           name
                       FROM
                              locations
                          WHERE 
                              id = "
      .$row['locations_id']."
                   "
      ;
           
               
      $result_location $db->sql_query($sql);
               
      $row_location mysql_fetch_assoc($result_location);
               
      $location_id $row_location['id'];
               
      $location_name $row_location['name'];
               
               
      $gallery[] = array('id' => $row['id'],
                                  
      'datum' => $row['datum'],
                                  
      'titel' => $row['titel'],
                                  
      'pic_mini' => $row['pic_mini'],
                                  
      'location_id' => $location_id,
                                  
      'location' => $location_name,
                                  
      'event' => $event_titel,
                                  
      'event_id' => $event_id,
                                  
      'beschreibung' => $row['beschreibung']       
                                  );
           }        
           
      $smarty->assign('gallery'$gallery);
           
      $smarty->assign('locations'$locations);        
       }    
       
       if (isset(
      $_GET['id']) AND ($_GET['id'] != "")) {
           
      // album ausgewählt
           
           
      $smarty->assign('gallery_type''single');
           
           
      // allg. infos des albums
           
           
      $id addslashes($_GET['id']);
           
           
      $sql =  "SELECT 
                       *,
                       DATE_FORMAT(datum, '%d.%m.%Y') AS datum
                   FROM
                          gallery_albums
                  WHERE
                      id = '"
      .$id."'
                   "
      ;

           
      $result $db->sql_query($sql);
            
      $gallery mysql_fetch_assoc($result);
            
            
      $sql =  "SELECT 
                           id,
                           titel
                       FROM
                              events
                          WHERE 
                              id = "
      .$gallery['event_id']."
                   "
      ;
           
               
      $result_event $db->sql_query($sql);
               
      $row_event mysql_fetch_assoc($result_event);
               
      $event_id $row_event['id'];
               
      $event_titel $row_event['titel'];
               
               
      $smarty->assign('event_id'$event_id);
              
      $smarty->assign('event_titel'$event_titel);     
               
               
      $sql =  "SELECT 
                           id,
                           name
                       FROM
                              locations
                          WHERE 
                              id = "
      .$gallery['locations_id']."
                   "
      ;
           
               
      $result_location $db->sql_query($sql);
               
      $row_location mysql_fetch_assoc($result_location);
               
      $location_id $row_location['id'];
               
      $location_name $row_location['name'];
               
               
      $smarty->assign('location_id'$location_id);
              
      $smarty->assign('location_name'$location_name); 
              
               if (!isset(
      $_GET['picture'])) {
               
      $sql =  "SELECT 
                       *
                   FROM
                          gallery_pictures
                  WHERE
                      album_id = '"
      .$gallery['id']."'
                   "
      ;        
           
              
      $result $db->sql_query($sql);
              
                while (
      $row mysql_fetch_assoc($result)) {
                    
      $pictures[] = $row;
                } 
                
                
      $smarty->assign('pictures'$pictures);
               } else {
               
      $sql =  "SELECT 
                       *
                   FROM
                          gallery_pictures
                  WHERE
                      album_id = '"
      .$gallery['id']."' AND 
                      id = '"
      .addslashes($_GET['picture'])."'
                   "
      ;        
           
              
      $result $db->sql_query($sql);
              
      $picture mysql_fetch_assoc($result);
              
              
      $picture_id $_GET['picture'];
              
              if (!
      $_SESSION['picture_count'][$picture_id] == "ok") {
                  
      // bild wurde noch nicht angeschaut
                  
      $_SESSION['picture_count'][$_GET['picture']] = "ok";
                  
      $sql =  "SELECT 
                               count
                           FROM
                                  gallery_pictures
                          WHERE
                              album_id = '"
      .$gallery['id']."' AND 
                              id = '"
      .addslashes($_GET['picture'])."'
                           "
      ;        
           
                  
      $result $db->sql_query($sql);
                  
      $row mysql_fetch_assoc($result);
                  
      $count $row['count'] + 1;
                  
                  
      $picture['count'] = $count;
                  
      $sql "UPDATE 
                              gallery_pictures 
                          SET 
                              count = '"
      .$count." '
                          WHERE 
                              album_id = '"
      .$gallery['id']."' AND 
                              id = '"
      .addslashes($_GET['picture'])."'
                          "
      ;    
                  
      $result $db->sql_query($sql);
              }
              
              
      $smarty->assign('picture'$picture);
              
              include (
      "inc/func/comment.php");
              
               }
            
            
      $smarty->assign('gallery'$gallery);
                 
       }     
       
      ?>

      Kommentar

      Lädt...
      X