#-----[ OPEN ]------------------------------------------------
#
#
album_showpage.php
#
#-----[ FIND ]------------------------------------------------
#
$template->assign_block_vars('commentrow', array(
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$sql = "SELECT COUNT(pic_user_id) AS total_pics
FROM " . ALBUM_TABLE . "
WHERE pic_user_id = " . $commentrow[$i]['user_id'] . "
AND pic_approval = 1";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query total pics information', '', __LINE__, __FILE__, $sql);
}
$overalltotalpicrow = ($row = $db->sql_fetchrow($result) ) ? intval($row['total_pics']) : 0;
if ( $overalltotalpicrow != 0 )
{
$temp_url = append_sid("album.$phpEx?user_id=" . $commentrow[$i]['user_id'] . "&mode=" . ALBUM_VIEW_LIST);
$album_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_album'] . '" alt="' . $lang['Show_Pictures_by_user'] . '" title="' . $lang['Show_Pictures_by_user'] . '" border="0" /></a>';
$album = '<a href="' . $temp_url . '">' . $lang['Show_Pictures_by_user'] . '</a>';
}
else
{
$album_img = '';
$album = '';
}
#
#-----[ FIND ]------------------------------------------------
#
#
'PROFILE_IMG' => ( $commentrow[$i]['user_id'] != ANONYMOUS ) ? '<a href="' . $profile_url . '"><img src="' . $images['icon_profile'] . '" alt="' . $lang['Read_profile'] . '" title="' . $lang['Read_profile'] . '" border="0" /></a>' : '',
#
#-----[ AFTER, ADD ]-----------------------------------------
#
'ALBUM_IMG' => $album_img,
'ALBUM' => $album,
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/album_showpage_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
#
{commentrow.PROFILE_IMG}
#
#-----[ AFTER, ADD ]----------------------------------
#
{commentrow.ALBUM_IMG}
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
the language variables should work from the previous edit, if not, add them to lang_album_main.php