https://www.icyphoenix.com/viewtopic.php?f=26&t=1294&p=11566#p11566 ----------------------------------- lefty74 Sun 08 Apr, 2007 12:40 Re: Insert Link "all Images Of .." In Message Prof ----------------------------------- sorry took a while, this should work, based on galaxy21's mod [code linenumbers=false]# #-----[ OPEN ]------------------------------------------------ # viewtopic.php # #-----[ FIND ]------------------------------------------------ # $profile = '' . $lang['Read_profile'] . ''; # #-----[ AFTER, ADD ]------------------------------------------ # $sql = "SELECT COUNT(pic_user_id) AS total_pics FROM " . ALBUM_TABLE . " WHERE pic_user_id = " . $poster_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=" . $poster_id . "&mode=" . ALBUM_VIEW_LIST); $album_img = '' . $lang['Show_Pictures_by_user'] . ''; $album = '' . $lang['Show_Pictures_by_user'] . ''; } else { $album_img = ''; $album = ''; } # #-----[ FIND ]------------------------------------------------ # # 'PROFILE' => $profile, # #-----[ AFTER, ADD ]----------------------------------------- # 'ALBUM_IMG' => $album_img, 'ALBUM' => $album, # #-----[ OPEN ]------------------------------------------------ # language/lang_english/lang_main.php # #-----[ FIND ]------------------------------------------------ # # // That's all Folks! # #-----[ AFTER, ADD ]---------------------------------- # $lang['Show_Pictures_by_user'] = 'Show pictures by user'; # #-----[ OPEN ]------------------------------------------------ # templates/subSilver/viewtopic_body.tpl # #-----[ FIND ]------------------------------------------------ # # {postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG}