https://www.icyphoenix.com/viewtopic.php?f=26&t=4194&p=28419#p28419 ----------------------------------- Kay Thu 15 May, 2008 10:30 FAP SUPPORT - FAP Pictures Blocks On Forum Index - Not Showing ----------------------------------- Hi, I am trying to get the most recent pictures to show up on my phpBB2 index. I want it at the top under my header logo area. 1.) I opened index.php for my anypage.php and inserted the code 2.) I opened overall_header for my anypage.tpl and inserted the code 3.) saved and ftp'd both index.php and overall_header.tpl Nothing shows up. any help would be greatly appreciated. ~Kay Here are snippets of the code on both files [code linenumbers=false]// Mighty Gorgon - Picture Blocks - BEGIN $phpbb_root_path = './'; $album_root_path = $phpbb_root_path . 'album_mod/'; include($album_root_path . 'album_common.'.$phpEx); //$album_config['img_cols'] = 4; $cols = ($album_config['img_cols'] == 0 ? 4 : $album_config['img_cols']); $cols_width = (100/$cols) . '%'; $catrows = array (); $options = ALBUM_AUTH_VIEW; $catrows = album_read_tree($album_user_id, $options); $allowed_cat = ''; // For Recent Public Pics below for ($i = 0; $i < count($catrows); $i ++) { $allowed_cat .= ($allowed_cat == '') ? $catrows[$i]['cat_id'] : ','.$catrows[$i]['cat_id']; } album_build_recent_pics($allowed_cat); album_build_highest_rated_pics($allowed_cat); album_build_most_viewed_pics($allowed_cat); album_build_random_pics($allowed_cat); $template->assign_vars(array( 'S_COLS' => $cols, 'S_COL_WIDTH' => $cols_width, 'TARGET_BLANK' => ($album_config['fullpic_popup']) ? 'target="_blank"' : '', 'L_RAND_PICS' => $lang['Random_Pictures'], 'L_HI_RATINGS' => $lang['Highest_Rated_Pictures'], 'L_RECENT_PUBLIC_PICS' => $lang['Recent_Public_Pics'], 'L_MOST_VIEWED' => $lang['Most_Viewed_Pictures'], 'L_NO_PICS' => $lang['No_Pics'], 'L_PIC_TITLE' => $lang['Pic_Image'], 'L_PIC_ID' => $lang['Pic_ID'], 'L_VIEW' => $lang['View'], 'L_POSTER' => $lang['Pic_Poster'], 'L_POSTED' => $lang['Posted'] ) ); // Mighty Gorgon - Picture Blocks - END $template->pparse('body'); include($phpbb_root_path . 'includes/page_tail.'.$phpEx); ?>[/code] [code linenumbers=false]  OUR ARTIST   FORUM   HOME 
{L_RECENT_PUBLIC_PICS}
{L_NO_PICS}
{recent_pics_block.recent_pics.recent_col.DESC}
{L_POSTER}: {recent_pics_block.recent_pics.recent_detail.POSTER}
{L_PIC_TITLE}: {recent_pics_block.recent_pics.recent_detail.TITLE}
{L_PIC_ID}: {recent_pics_block.recent_pics.recent_detail.PIC_ID}
{L_POSTED}: {recent_pics_block.recent_pics.recent_detail.TIME}
{L_VIEW}: {recent_pics_block.recent_pics.recent_detail.VIEW}
{recent_pics_block.recent_pics.recent_detail.RATING} {recent_pics_block.recent_pics.recent_detail.COMMENTS} {recent_pics_block.recent_pics.recent_detail.IP}

[/code]