https://www.icyphoenix.com/viewtopic.php?f=26&t=1294 ----------------------------------- felix968 Sun 11 Mar, 2007 00:34 FAP CUSTOMIZATION - Insert Link "all Images Of .." In Message Profiles ----------------------------------- Hi, I have another request for you... My users asked me a new option in the message profiles: a link to "all images of", the same link is available in membersist profile....I try to explain you with images below: [img]http://www.icyphoenix.com/files/images/1139/icy_req.gif[/img] Thanks in advantage ----------------------------------- lefty74 Sun 11 Mar, 2007 17:52 Re: Insert Link "all Images Of .." In Message Prof ----------------------------------- Hi, I have a similar function already on my board. There is already one that links to the personal gallery. http://www.icyphoenix.com/viewtopic.php?p=6561#p6561 I will post the code when i have some time to put it in format.. ----------------------------------- felix968 Sun 11 Mar, 2007 20:37 Re: Insert Link "all Images Of .." In Message Prof ----------------------------------- ok lefty, thank you.. ----------------------------------- 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}
{L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS} {S_SELECT_POST_ORDER} 
{L_POST_NEW_TOPIC}   {L_POST_REPLY_TOPIC}    {L_INDEX} -> {FORUM_NAME} {S_TIMEZONE}
{PAGINATION}
{PAGE_NUMBER}
{S_WATCH_TOPIC}
 
{S_TOPIC_ADMIN}		 {JUMPBOX}{S_AUTH_LIST}
[/code] ----------------------------------- lefty74 Mon 09 Apr, 2007 04:03 Re: Insert Link "all Images Of .." In Message Prof ----------------------------------- this is some weird file you have. when i paste it into my existing viewtopic_body and save it, it doesnt work, when I extract it and then move to the template folder it seems to work. Anyway, the attached file just worked on my pc. ----------------------------------- felix968 Mon 09 Apr, 2007 08:39 Re: Insert Link "all Images Of .." In Message Prof ----------------------------------- [quote user="lefty74" post="11650"]this is some weird file you have. when i paste it into my existing viewtopic_body and save it, it doesnt work, when I extract it and then move to the template folder it seems to work. Anyway, the attached file just worked on my pc.[/quote] Yes! Now it work fine! Thank Lefty, very much... ----------------------------------- felix968 Mon 09 Apr, 2007 08:47 Re: Insert Link "all Images Of .." In Message Prof ----------------------------------- ...i'd like it in album_showpage reply, too :mricy: :mrgreen: :mrblue: ----------------------------------- lefty74 Mon 09 Apr, 2007 21:36 Re: Insert Link "all Images Of .." In Message Prof ----------------------------------- [code linenumbers=false]#-----[ 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 = '' . $lang['Show_Pictures_by_user'] . ''; $album = '' . $lang['Show_Pictures_by_user'] . ''; } else { $album_img = ''; $album = ''; } # #-----[ FIND ]------------------------------------------------ # # 'PROFILE_IMG' => ( $commentrow[$i]['user_id'] != ANONYMOUS ) ? '' . $lang['Read_profile'] . '' : '', # #-----[ 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 ]-------------------------------- [/code] the language variables should work from the previous edit, if not, add them to lang_album_main.php ----------------------------------- felix968 Mon 09 Apr, 2007 23:44 Re: Insert Link "all Images Of .." In Message Prof ----------------------------------- [quote user="lefty74" post="11728"] the language variables should work from the previous edit, if not, add them to lang_album_main.php[/quote] please, help me again...how can i add language variables to lang_album_main.php? ----------------------------------- lefty74 Tue 10 Apr, 2007 00:32 Re: Insert Link "all Images Of .." In Message Prof ----------------------------------- are you serious? all you need to do is basically copy what was done in lang_main and apply it to lang_album_main anyway here it is :roll: [code linenumbers=false] # #-----[ OPEN ]------------------------------------------------ # language/lang_english/lang_album_main.php # #-----[ FIND ]------------------------------------------------ # # ?> # #-----[ BEFORE, ADD ]---------------------------------- # $lang['Show_Pictures_by_user'] = 'Show pictures by user'; [/code] ----------------------------------- Mighty Gorgon Tue 10 Apr, 2007 00:37 Re: Insert Link "all Images Of .." In Message Prof ----------------------------------- Thanks Lefty for your patience. [b]felix968[/b], please try to put some effort in what you are doing, you cannot ask everything without even trying. If you need 24 hours support 7 days a week you should consider using some package which can offer this. We are doing everything for free, and like every open source project users should cooperate in the development. Please try to think twice before doing requests like this... and make some tests before.