Album Button in der ViewTopic.php
Verfasst: 10.12.2003 19:35
Gibt es eine Möglichkeit das der Album Button in der ViewTopic.php nur angezeigt wird wenn auch Bilder drin sind?
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Code: Alles auswählen
// Photo Album Link Start
$temp_url = append_sid("album_personal.$phpEx?user_id=$poster_id");
$gallery_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_gallery'] . '" alt="' . sprintf($lang['Personal_Gallery_Of_User'], $postrow[$i]['username']) . '" title="' . sprintf($lang['Personal_Gallery_Of_User'], $postrow[$i]['username']) . '" border="0" /></a>';
$gallery = '<a href="' . $temp_url . '">' . $lang['Album'] . '</a>';
// Photo Album Link End
Code: Alles auswählen
// Photo Album Link Start
$sql = "SELECT count(pic_id) as picentries
FROM ". phpbb_album ."
WHERE pic_cat_id = 0 AND pic_user_id = $poster_id";
if ( !($albumresult = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query album entries.', '', __LINE__, __FILE__, $sql);
}
$totalpics = $db->sql_fetchrow($albumresult);
$temp_url = append_sid("album_personal.$phpEx?user_id=$poster_id");
$gallery_img = $totalpics['picentries'] == '0' ? '' : '<a href="' . $temp_url . '"><img src="' . $images['icon_gallery'] . '" alt="' . sprintf($lang['Personal_Gallery_Of_User'], $postrow[$i]['username']) . '" title="' . sprintf($lang['Personal_Gallery_Of_User'], $postrow[$i]['username']) . '" border="0" /></a>';
$gallery = '<a href="' . $temp_url . '">' . $lang['Album'] . '</a>';
// Photo Album Link End
A.woher hast du den Mod eigentlich? Gehört nicht zum Standard beim aktuellen Album-Mod (2.0.51)...