Neuste Album Bild geht nicht

Support zum phpBB2 und zu MODs anderer Autoren.

Moderator: Supporter

Beitragvon pepi » 15. Sep 2005 02:05

hallo amiga

das problem habe ich zwar nicht muss ausgebesstert worden sein
aber anderes prob

das neueste bild mod geht nicht mehr ???
habe nix da .............
kannst mir helfen ???
gruß Pepi

Bild
Benutzeravatar
pepi
User
 
Beiträge: 116
Registriert: 2. Mai 2005 15:58
Wohnort: Lienz - Austria

Beitragvon AmigaLink » 15. Sep 2005 14:06

Ich hab den Fix auch im Full Album thread, bei Smartor, bekannt gegeben. Evtl. hat ihn ihn Mighty Gordon in die neuste Version aufgenommen (ich war nicht mehr schaun). :)

Was ist denn dein Problem?
Wenn ich bei dir nachsehe, dann wird mir ein Bild angezeigt!
Ausserdem geht der MOD nicht einfach so kaputt. Da musst du schon irgendetwas geändert haben. ;)
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon pepi » 15. Sep 2005 14:58

danke

ne ich habe den versucht im neuen board einzubauen
http://www.cool-lighter.com/board/
funzt nicht
aber werde es nochmal versuchen

Zugefügt nach 42 Minute(n):

hier der code es funzt leider nicht
habe auch alles im ACP eingestellt

Code: Alles auswählen
// Start add - Photo Album Block
   'S_COLS' => $album_config['cols_per_page'],
   'S_COL_WIDTH' => ( 100/$album_config['cols_per_page'] ) . '%',
   'TARGET_BLANK' => ( $album_config['fullpic_popup'] ) ? ' target="_blank"' : '',
   'U_ALBUM' => append_sid('album.'.$phpEx),
   'L_ALBUM' => $lang['Album'],
   'L_NEWEST_PICS' => ( $album_config['pics_sort'] == '0' ) ? $lang['Newest_pics'] : $lang['Random_pics'],
   'L_NO_PICS' => $lang['No_Pics'],
   'L_PIC_TITLE' => $lang['Pic_Title'],
   'L_POSTER' => $lang['Poster'],
   'L_POSTED' => $lang['Posted'],
   'L_DIMENSION' => $lang['Dimension'],
   'L_SIZE' => $lang['Size'],
   'L_VIEW' => $lang['View'],
   // End add - Photo Album Block
gruß Pepi

Bild
Benutzeravatar
pepi
User
 
Beiträge: 116
Registriert: 2. Mai 2005 15:58
Wohnort: Lienz - Austria

Beitragvon AmigaLink » 15. Sep 2005 15:00

^^ Das ist nur die übergabe der Variablen ans Template.
Da fehlt noch jede menge!
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon pepi » 15. Sep 2005 15:05

ups war das falsche
Code: Alles auswählen
// Start add  - Photo Album Block
$album_root_path = $phpbb_root_path . 'album_mod/';
include_once($album_root_path . 'album_common.'.$phpEx);

// Build Categories Index
$sql = "SELECT c.*
      FROM ". ALBUM_CAT_TABLE ." AS c
         LEFT JOIN ". ALBUM_TABLE ." AS p ON c.cat_id = p.pic_cat_id
      WHERE cat_id <> 0
      GROUP BY cat_id
      ORDER BY cat_order ASC";
if ( !($result = $db->sql_query($sql)) )
{
   message_die(GENERAL_ERROR, 'Could not query categories list', '', __LINE__, __FILE__, $sql);
}
$catrows = array();

while( $row = $db->sql_fetchrow($result) )
{
   $album_user_access = album_user_access($row['cat_id'], $row, 1, 0, 0, 0, 0, 0); // VIEW
   if ($album_user_access['view'] == 1)
   {
      $catrows[] = $row;
   }
}
if ( $album_config['pics_all'] == '1' )
{
   $allowed_cat = '0'; // For Recent Public Pics below
}
else
{
   $allowed_cat = '';
}

//
// $catrows now stores all categories which this user can view. Dump them out!
//
for ($i = 0; $i < count($catrows); $i++)
{
   // Build allowed category-list (for recent pics after here)
   $allowed_cat .= ($allowed_cat == '') ? $catrows[$i]['cat_id'] : ',' . $catrows[$i]['cat_id'];

   // Check Pic Approval
   if ( ($catrows[$i]['cat_approval'] == ALBUM_ADMIN) || ($catrows[$i]['cat_approval'] == ALBUM_MOD) )
   {
      $pic_approval_sql = 'AND p.pic_approval = 1'; // Pic Approval ON
   }
   else
   {
      $pic_approval_sql = ''; // Pic Approval OFF
   }
}

// Recent Public Pics
if ( $album_config['pics_all'] == '1' )
{
   $pics_allowed = '0';
}
else
{
   $pics_allowed = '';
}

if ( $allowed_cat != $pics_allowed )
{
   $category_id = $album_config['cat_id'];

   if ( $album_config['pics_sort'] == '1' )
   {
      if ( $category_id != 0 )
      {
         $sql = "SELECT p.pic_id, p.pic_title, p.pic_desc, p.pic_user_id, p.pic_user_ip, p.pic_username, p.pic_time, p.pic_cat_id, p.pic_view_count, u.user_id, u.username, u.user_level, r.rate_pic_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments, p.pic_filename AS picfilename
            FROM ". ALBUM_TABLE ." AS p
               LEFT JOIN ". USERS_TABLE ." AS u ON p.pic_user_id = u.user_id
               LEFT JOIN ". ALBUM_CAT_TABLE ." AS ct ON p.pic_cat_id = ct.cat_id
               LEFT JOIN ". ALBUM_RATE_TABLE ." AS r ON p.pic_id = r.rate_pic_id
               LEFT JOIN ". ALBUM_COMMENT_TABLE ." AS c ON p.pic_id = c.comment_pic_id
            WHERE p.pic_cat_id IN ($allowed_cat) AND ( p.pic_approval = 1 OR ct.cat_approval = 0 ) AND pic_cat_id IN ($category_id)
            GROUP BY p.pic_id
            ORDER BY RAND()
            LIMIT ". $album_config['pics_number'];
      }
      else
      {
         $sql = "SELECT p.pic_id, p.pic_title, p.pic_desc, p.pic_user_id, p.pic_user_ip, p.pic_username, p.pic_time, p.pic_cat_id, p.pic_view_count, u.user_id, u.username, u.user_level, r.rate_pic_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments, p.pic_filename AS picfilename
            FROM ". ALBUM_TABLE ." AS p
               LEFT JOIN ". USERS_TABLE ." AS u ON p.pic_user_id = u.user_id
               LEFT JOIN ". ALBUM_CAT_TABLE ." AS ct ON p.pic_cat_id = ct.cat_id
               LEFT JOIN ". ALBUM_RATE_TABLE ." AS r ON p.pic_id = r.rate_pic_id
               LEFT JOIN ". ALBUM_COMMENT_TABLE ." AS c ON p.pic_id = c.comment_pic_id
            WHERE p.pic_cat_id IN ($allowed_cat) AND ( p.pic_approval = 1 OR ct.cat_approval = 0 )
            GROUP BY p.pic_id
            ORDER BY RAND()
            LIMIT ". $album_config['pics_number'];
         }
   }
   else if ( $album_config['pics_sort'] == '0' )
   {
      if ( $category_id != 0 )
      {
         $sql = "SELECT p.pic_id, p.pic_title, p.pic_desc, p.pic_user_id, p.pic_user_ip, p.pic_username, p.pic_time, p.pic_cat_id, p.pic_view_count, u.user_id, u.username, u.user_level, r.rate_pic_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments, p.pic_filename AS picfilename
            FROM ". ALBUM_TABLE ." AS p
               LEFT JOIN ". USERS_TABLE ." AS u ON p.pic_user_id = u.user_id
               LEFT JOIN ". ALBUM_CAT_TABLE ." AS ct ON p.pic_cat_id = ct.cat_id
               LEFT JOIN ". ALBUM_RATE_TABLE ." AS r ON p.pic_id = r.rate_pic_id
               LEFT JOIN ". ALBUM_COMMENT_TABLE ." AS c ON p.pic_id = c.comment_pic_id
            WHERE p.pic_cat_id IN ($allowed_cat) AND ( p.pic_approval = 1 OR ct.cat_approval = 0 ) AND pic_cat_id IN ($category_id)
            GROUP BY p.pic_id
            ORDER BY pic_time DESC
            LIMIT ". $album_config['pics_number'];
      }
      else
      {
         $sql = "SELECT u.user_level, p.pic_id, p.pic_title, p.pic_desc, p.pic_user_id, p.pic_user_ip, p.pic_username, p.pic_time, p.pic_cat_id, p.pic_view_count, u.user_id, u.username, u.user_level, r.rate_pic_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments, p.pic_filename AS picfilename
            FROM ". ALBUM_TABLE ." AS p
               LEFT JOIN ". USERS_TABLE ." AS u ON p.pic_user_id = u.user_id
               LEFT JOIN ". ALBUM_CAT_TABLE ." AS ct ON p.pic_cat_id = ct.cat_id
               LEFT JOIN ". ALBUM_RATE_TABLE ." AS r ON p.pic_id = r.rate_pic_id
               LEFT JOIN ". ALBUM_COMMENT_TABLE ." AS c ON p.pic_id = c.comment_pic_id
            WHERE p.pic_cat_id IN ($allowed_cat) AND ( p.pic_approval = 1 OR ct.cat_approval = 0 )
            GROUP BY p.pic_id
            ORDER BY pic_time DESC
            LIMIT ". $album_config['pics_number'];
      }
   }
   if ( !($result = $db->sql_query($sql)) )
   {
      message_die(GENERAL_ERROR, 'Could not query recent pics information', '', __LINE__, __FILE__, $sql);
   }
   $recentrow = array();

   while( $row = $db->sql_fetchrow($result) )
   {
      $recentrow[] = $row;
   }

   if (count($recentrow) > 0)
   {
      for ($i = 0; $i < count($recentrow); $i += $album_config['cols_per_page'])
      {
         $template->assign_block_vars('recent_pics', array());

         for ($j = $i; $j < ($i + $album_config['cols_per_page']); $j++)
         {
            if ( $j >= count($recentrow) )
            {
               break;
            }

            if (!$recentrow[$j]['rating'])
            {
               $recentrow[$j]['rating'] = $lang['Not_rated'];
            }
            else
            {
               $recentrow[$j]['rating'] = round($recentrow[$j]['rating'], 2);
            }

            // Display pics horizontally
            $template->assign_block_vars('recent_pics.recent_col', array(
               'U_PIC' => ($album_config['fullpic_popup']) ? append_sid("album_pic.$phpEx?pic_id=". $recentrow[$j]['pic_id']) : append_sid("album_page.$phpEx?pic_id=". $recentrow[$j]['pic_id']),
               'THUMBNAIL' => append_sid("album_thumbnail.$phpEx?pic_id=". $recentrow[$j]['pic_id']),
               'DESC' => $recentrow[$j]['pic_desc'])
            );

            if ( ($recentrow[$j]['user_id'] == ALBUM_GUEST) or ($recentrow[$j]['username'] == '') )
            {
               $recent_poster = ($recentrow[$j]['pic_username'] == '') ? $lang['Guest'] : $recentrow[$j]['pic_username'];
            }
            else
            {
               // Start add - Username Color Mod
               switch ( $recentrow[$j]['user_level'] )
               {
                  case ADMIN:
                     $poster_name = '<strong>' . $recentrow[$j]['username'] . '</strong>';
                     $style_color = ' style="color:# ' . $theme['fontcolor3'] . '"';
                     break;
                  case MOD:
                     $poster_name = '<strong>' . $recentrow[$j]['username'] . '</strong>';
                     $style_color = ' style="color:# ' . $theme['fontcolor2'] . '"';
                     break;
                  default:
                     $poster_name = $recentrow[$j]['username'];
                     $style_color = '';
                     break;
               }
               // End add - Username Color Mod
               $recent_poster = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;". POST_USERS_URL .'='. $recentrow[$j]['user_id']) . '"' . $style_color . '>' . $poster_name . '</a>';
            }

            // Start add - Pics Dimension/Size Add-on
            $pic_dimension = getimagesize(ALBUM_UPLOAD_PATH . $recentrow[$j]['picfilename']);
            $pic_width = $pic_dimension[0];
            $pic_height = $pic_dimension[1];

            $pic_size = round(((filesize(ALBUM_UPLOAD_PATH . $recentrow[$j]['picfilename'])) / 1024), 2) . ' ' . $lang['Kb'];
            // End add - Pics Dimension/Size Add-on

            // Display pics vertically
            $template->assign_block_vars('recent_pics.recent_detail', array(
               'U_PIC' => ($album_config['fullpic_popup']) ? append_sid("album_pic.$phpEx?pic_id=". $recentrow[$j]['pic_id']) : append_sid("album_page.$phpEx?pic_id=". $recentrow[$j]['pic_id']),
               'THUMBNAIL' => append_sid("album_thumbnail.$phpEx?pic_id=". $recentrow[$j]['pic_id']),
               'DESC' => $recentrow[$j]['pic_desc'],
               'TITLE' => $recentrow[$j]['pic_title'],
               'POSTER' => $recent_poster,
               'TIME' => create_date($board_config['default_dateformat'], $recentrow[$j]['pic_time'], $board_config['board_timezone']),
               // New entries - Pics Dimension/Size Add-on
               'DIMENSION' => $pic_width . ' x ' . $pic_height,
               'SIZE' => $pic_size,
               'VIEW' => $recentrow[$j]['pic_view_count'],
               'RATING' => ($album_config['rate'] == 1) ? ( $lang['Rating'] . ': <a href="' . append_sid("album_rate.$phpEx?pic_id=". $recentrow[$j]['pic_id']) . '">' . $recentrow[$j]['rating'] . '</a><br />') : '',
               'COMMENTS' => ($album_config['comment'] == 1) ? ( $lang['Comments'] . ': <a href="' . append_sid("album_comment.$phpEx?pic_id=". $recentrow[$j]['pic_id']) . '">' . $recentrow[$j]['comments'] . '</a>') : '')
            );
         }
      }
   }
   else
   {
      // No Pics Found
      $template->assign_block_vars('no_pics', array());
   }
}
else
{
   // No Cats Found
   $template->assign_block_vars('no_pics', array());
}
// End add  - Photo Album Block
gruß Pepi

Bild
Benutzeravatar
pepi
User
 
Beiträge: 116
Registriert: 2. Mai 2005 15:58
Wohnort: Lienz - Austria

Beitragvon Max » 15. Sep 2005 20:04

versuch mal das hier: >Klick!<

Da habe ich den MOD fürs Album mit Cat-Hierarchy passend gemacht.
Wenn das bei Dir nicht geht, hängt das mit irgendwelchen FAP-Besonderheiten zusammen (glaube ich aber nicht)


Gruß Max
Max
User
 
Beiträge: 170
Registriert: 29. Mai 2005 16:50

Beitragvon pepi » 15. Sep 2005 20:43

hallo max

danke geht auch nicht auch der alte auch geht nicht
habe es vergessen zu erwähnen
bekomme den header her und dann weisse seite
bei beiden .........

keine ahnung woran das liegt

Zugefügt nach 13 Minute(n):


mit dem code bekomme ich zwar keine weise seite
(der ist aus dem plus)
aber bilder werden nicht angezeigt
Code: Alles auswählen
// Start add  - Photo Album Block
if ( $CFG['pics_number'] > 0 )
{
// Build Categories Index
$sql_private_last = ($CFG['pics_all'] == '1') ? '' : ' AND c.cat_user_id = 0';
$sql = "SELECT c.*, COUNT(p.pic_id) AS count
                FROM ". ALBUM_CAT_TABLE ." AS c
                        LEFT JOIN ". ALBUM_TABLE ." AS p ON c.cat_id = p.pic_cat_id
                WHERE cat_id <> 0
                $sql_private_last
                GROUP BY cat_id
                ORDER BY cat_order ASC";
if ( !($result = $db->sql_query($sql)) )
{
        message_die(GENERAL_ERROR, 'Could not query categories list', '', __LINE__, __FILE__, $sql);
}
$catrows = array();

while( $row = $db->sql_fetchrow($result) )
{
        $album_user_access = album_user_access($row['cat_id'], $row, 1, 0, 0, 0, 0, 0); // VIEW
        if ($album_user_access['view'] == 1)
        {
                $catrows[] = $row;
        }
}

if ( $CFG['pics_all'] == '1' )
{
        $allowed_cat = '0'; // For Recent Public Pics below
}
else
{
        $allowed_cat = '';
}

//
// $catrows now stores all categories which this user can view. Dump them out!
//
for ($i = 0; $i < count($catrows); $i++)
{
        // Build allowed category-list (for recent pics after here)
        $allowed_cat .= ($allowed_cat == '') ? $catrows[$i]['cat_id'] : ',' . $catrows[$i]['cat_id'];

        // Get Last Pic of this Category
        if ($catrows[$i]['count'] == 0)
        {
                // Category is empty
                $last_pic_info = $lang['No_Pics'];
                $u_last_pic = '';
                $last_pic_title = '';
        }
        else
        {
                // Check Pic Approval
                if ( ($catrows[$i]['cat_approval'] == ALBUM_ADMIN) or ($catrows[$i]['cat_approval'] == ALBUM_MOD) )
                {
                        $pic_approval_sql = 'AND p.pic_approval = 1'; // Pic Approval ON
                }
                else
                {
                        $pic_approval_sql = ''; // Pic Approval OFF
                }
        }
        // END of Last Pic
}

// Recent Public Pics
if ( $CFG['pics_all'] == '1' )
{
        $pics_allowed = '0';
}
else
{
        $pics_allowed = '';
}

if ( $allowed_cat != $pics_allowed )
{
        $CategoryID = $CFG['cat_id'];

        if ( $CFG['pics_sort'] == '1' )
        {
                if ( $CategoryID != 0 )
                {
                        $sql = "SELECT p.pic_id, p.pic_title, p.pic_thumbnail, p.pic_desc, p.pic_user_id, p.pic_user_ip, p.pic_username, p.pic_time, p.pic_cat_id, p.pic_view_count, u.user_id, u.username, r.rate_pic_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments
                                FROM ". ALBUM_TABLE ." AS p
                                        LEFT JOIN ". USERS_TABLE ." AS u ON p.pic_user_id = u.user_id
                                        LEFT JOIN ". ALBUM_CAT_TABLE ." AS ct ON p.pic_cat_id = ct.cat_id
                                        LEFT JOIN ". ALBUM_RATE_TABLE ." AS r ON p.pic_id = r.rate_pic_id
                                        LEFT JOIN ". ALBUM_COMMENT_TABLE ." AS c ON p.pic_id = c.comment_pic_id
                                WHERE p.pic_cat_id IN ($allowed_cat) AND ( p.pic_approval = 1 OR ct.cat_approval = 0 ) AND pic_cat_id IN ($CategoryID)
                                GROUP BY p.pic_id
                                ORDER BY RAND()
                                LIMIT ". $CFG['pics_number'];
                }
                else
                {
                        $sql = "SELECT p.pic_id, p.pic_title, p.pic_thumbnail, p.pic_desc, p.pic_user_id, p.pic_user_ip, p.pic_username, p.pic_time, p.pic_cat_id, p.pic_view_count, u.user_id, u.username, r.rate_pic_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments
                                FROM ". ALBUM_TABLE ." AS p
                                        LEFT JOIN ". USERS_TABLE ." AS u ON p.pic_user_id = u.user_id
                                        LEFT JOIN ". ALBUM_CAT_TABLE ." AS ct ON p.pic_cat_id = ct.cat_id
                                        LEFT JOIN ". ALBUM_RATE_TABLE ." AS r ON p.pic_id = r.rate_pic_id
                                        LEFT JOIN ". ALBUM_COMMENT_TABLE ." AS c ON p.pic_id = c.comment_pic_id
                                WHERE p.pic_cat_id IN ($allowed_cat) AND ( p.pic_approval = 1 OR ct.cat_approval = 0 )
                                GROUP BY p.pic_id
                                ORDER BY RAND()
                                LIMIT ". $CFG['pics_number'];
                        }
        }
        else if ( $CFG['pics_sort'] == '0' )
        {
                if ( $CategoryID != 0 )
                {
                        $sql = "SELECT p.pic_id, p.pic_title, p.pic_thumbnail, p.pic_desc, p.pic_user_id, p.pic_user_ip, p.pic_username, p.pic_time, p.pic_cat_id, p.pic_view_count, u.user_id, u.username, r.rate_pic_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments
                                FROM ". ALBUM_TABLE ." AS p
                                        LEFT JOIN ". USERS_TABLE ." AS u ON p.pic_user_id = u.user_id
                                        LEFT JOIN ". ALBUM_CAT_TABLE ." AS ct ON p.pic_cat_id = ct.cat_id
                                        LEFT JOIN ". ALBUM_RATE_TABLE ." AS r ON p.pic_id = r.rate_pic_id
                                        LEFT JOIN ". ALBUM_COMMENT_TABLE ." AS c ON p.pic_id = c.comment_pic_id
                                WHERE p.pic_cat_id IN ($allowed_cat) AND ( p.pic_approval = 1 OR ct.cat_approval = 0 ) AND pic_cat_id IN ($CategoryID)
                                GROUP BY p.pic_id
                                ORDER BY pic_time DESC
                                LIMIT ". $CFG['pics_number'];
                }
                else
                {
                        $sql = "SELECT p.pic_id, p.pic_title, p.pic_thumbnail, p.pic_desc, p.pic_user_id, p.pic_user_ip, p.pic_username, p.pic_time, p.pic_cat_id, p.pic_view_count, u.user_id, u.username, r.rate_pic_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments
                                FROM ". ALBUM_TABLE ." AS p
                                        LEFT JOIN ". USERS_TABLE ." AS u ON p.pic_user_id = u.user_id
                                        LEFT JOIN ". ALBUM_CAT_TABLE ." AS ct ON p.pic_cat_id = ct.cat_id
                                        LEFT JOIN ". ALBUM_RATE_TABLE ." AS r ON p.pic_id = r.rate_pic_id
                                        LEFT JOIN ". ALBUM_COMMENT_TABLE ." AS c ON p.pic_id = c.comment_pic_id
                                WHERE p.pic_cat_id IN ($allowed_cat) AND ( p.pic_approval = 1 OR ct.cat_approval = 0 )
                                GROUP BY p.pic_id
                                ORDER BY pic_time DESC
                                LIMIT ". $CFG['pics_number'];
                }
        }
        if ( !($result = $db->sql_query($sql)) )
        {
                message_die(GENERAL_ERROR, 'Could not query recent pics information', '', __LINE__, __FILE__, $sql);
        }
        $recentrow = array();

        while( $row = $db->sql_fetchrow($result) )
        {
                $recentrow[] = $row;
        }

        if (count($recentrow) > 0)
        {

                for ($i = 0; $i < count($recentrow); $i += $album_config['cols_per_page'])
                {
                                $template->assign_block_vars('recent_pics', array());

                        for ($j = $i; $j < ($i + $album_config['cols_per_page']); $j++)
                        {
                                if ( $j >= count($recentrow) )
                                {
                                        break;
                                }

                                if (!$recentrow[$j]['rating'])
                                {
                                        $recentrow[$j]['rating'] = $lang['Not_rated'];
                                }
                                else
                                {
                                        $recentrow[$j]['rating'] = round($recentrow[$j]['rating'], 2);
                                }

                                $pic_size = @getimagesize(ALBUM_CACHE_PATH . $recentrow[$j]['pic_thumbnail']);
                                $pic_width = $pic_size[0];
                                $pic_height = $pic_size[1];

                                if ($pic_width > $pic_height)
                                {
                                        $width = $CFG['pics_thumbsize'];
                                        $height = $CFG['pics_thumbsize'] * ($pic_height/$pic_width);
                                }
                                else if ($pic_width < $pic_height)
                                {
                                        $height = $CFG['pics_thumbsize'];
                                        $width = $CFG['pics_thumbsize'] * ($pic_width/$pic_height);
                                }
                                else
                                {
                                        $width = '90%';
                                        $height = '90%';
                                }

                                // Display pics horizontally
                                $template->assign_block_vars('recent_pics.recent_col', array(
                                        'U_PIC' => ($album_config['fullpic_popup']) ? append_sid("album_pic.$phpEx?pic_id=". $recentrow[$j]['pic_id']) : append_sid("album_showpage.$phpEx?pic_id=". $recentrow[$j]['pic_id']),
                                        'THUMBNAIL' => append_sid("album_thumbnail.$phpEx?pic_id=". $recentrow[$j]['pic_id']),
                                        'WIDTH' => $width,
                                        'HEIGHT' => $height,
                                        'DESC' => $recentrow[$j]['pic_desc'])
                                );

                                if( ($recentrow[$j]['user_id'] == ALBUM_GUEST) or ($recentrow[$j]['username'] == '') )
                                {
                                        $recent_poster = ($recentrow[$j]['pic_username'] == '') ? $lang['Guest'] : $recentrow[$j]['pic_username'];
                                }
                                else
                                {
                                        $recent_poster = '<a href="'. append_sid("profile.$phpEx?mode=viewprofile&amp;". POST_USERS_URL .'='. $recentrow[$j]['user_id']) .'">'. $recentrow[$j]['username'] .'</a>';
                                }

                                // Display pics vertically
                                $template->assign_block_vars('recent_pics.recent_detail', array(
                                        'U_PIC' => ($album_config['fullpic_popup']) ? append_sid("album_pic.$phpEx?pic_id=". $recentrow[$j]['pic_id']) : append_sid("album_showpage.$phpEx?pic_id=". $recentrow[$j]['pic_id']),
                                        'THUMBNAIL' => append_sid("album_thumbnail.$phpEx?pic_id=". $recentrow[$j]['pic_id']),
                                        'WIDTH' => $width,
                                        'HEIGHT' => $height,
                                        'DESC' => $recentrow[$j]['pic_desc'],
                                        'TITLE' => $recentrow[$j]['pic_title'],
                                        'POSTER' => $recent_poster,
                                        'TIME' => create_date($board_config['default_dateformat'], $recentrow[$j]['pic_time'], $board_config['board_timezone']),
                                        'VIEW' => $recentrow[$j]['pic_view_count'],
                                        'RATING' => ($album_config['rate'] == 1) ? ( $lang['Rating'] . ': ' . $recentrow[$j]['rating'] . '<br />') : '',
                                        'COMMENTS' => ($album_config['comment'] == 1) ? ( $lang['Comments'] . ': ' . $recentrow[$j]['comments'] . '<br />') : '')
                                );
                        }
                }
        }
        else
        {
                // No Pics Found
                $template->assign_block_vars('no_pics', array());
        }
        $template->assign_block_vars('switch_album_pic', array());
}
}
// End add  - Photo Album Block


ps:benutze full pack album
gruß Pepi

Bild
Benutzeravatar
pepi
User
 
Beiträge: 116
Registriert: 2. Mai 2005 15:58
Wohnort: Lienz - Austria

Beitragvon AmigaLink » 15. Sep 2005 22:31

Wofür eigentlich ein solch aufgeblähter code? :shock:
Wie wäre es mit meinem http://www.amigalink.de/viewtopic.php?t=277 bzw für's IM-Portal (das nutzt du ja nicht) der http://www.amigalink.de/viewtopic.php?t=275 ???
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon pepi » 15. Sep 2005 22:37

hallo amiga

ja an den habe ich auch schon mal gedacht
wollte den mal im plus einbauen leider ging der da nicht

werde ich auch machen
bis dann

aber geht der für den full album mod auch ???
nur ne frage
gruß Pepi

Bild
Benutzeravatar
pepi
User
 
Beiträge: 116
Registriert: 2. Mai 2005 15:58
Wohnort: Lienz - Austria

Beitragvon AmigaLink » 15. Sep 2005 22:39

Ähm - ich nutze das Full Album. :wink:
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Nächste

Zurück zu phpBB2 Support



Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast

cron