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
// 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);
?>
$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);
?>
<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="http://www.ppartsguild.com/artpage.htm" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="" hspace="3" />OUR ARTIST</a> <a href="http://www.ppartsguild.com/phpBB2/index.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="" hspace="3" />FORUM</a> <a href="http://www.ppartsguild.com/index.htm" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="" hspace="3" />HOME</a> </span></td>
</tr>
</table></td>
</tr>
</table>
<br />
<!-- BEGIN recent_pics_block -->
<table class="forumline" width="98%" align="center" cellspacing="1" cellpadding="2">
<tr><th class="thTop" height="25" colspan="{S_COLS}" nowrap="nowrap">{L_RECENT_PUBLIC_PICS}</th></tr>
<!-- BEGIN no_pics -->
<tr><td class="row1" align="center" colspan="{S_COLS}" height="50"><span class="gen">{L_NO_PICS}</span></td></tr>
<!-- END no_pics -->
<!-- BEGIN recent_pics -->
<tr>
<!-- BEGIN recent_col -->
<td class="row1" width="{S_COL_WIDTH}" align="center" onMouseOver="this.className='row2';" onMouseOut="this.className='row1';">
<table><tr><td><div class="picshadow"><div class="picframe">
<a href="{recent_pics_block.recent_pics.recent_col.U_PIC}" {TARGET_BLANK}><img src="{recent_pics_block.recent_pics.recent_col.THUMBNAIL}" {THUMB_SIZE} border="0" alt="{recent_pics_block.recent_pics.recent_col.DESC}" title="{recent_pics_block.recent_pics.recent_col.DESC}" vspace="10" /></a>
</div></div></td></tr></table>
</td>
<!-- END recent_col -->
</tr>
<tr>
<!-- BEGIN recent_detail -->
<td class="row2" align="center">
<span class="gensmall">
{L_POSTER}: {recent_pics_block.recent_pics.recent_detail.POSTER}<br />
{L_PIC_TITLE}: {recent_pics_block.recent_pics.recent_detail.TITLE}<br />
{L_PIC_ID}: {recent_pics_block.recent_pics.recent_detail.PIC_ID}<br />
{L_POSTED}: {recent_pics_block.recent_pics.recent_detail.TIME}<br />
{L_VIEW}: {recent_pics_block.recent_pics.recent_detail.VIEW}<br />
{recent_pics_block.recent_pics.recent_detail.RATING}
{recent_pics_block.recent_pics.recent_detail.COMMENTS}
{recent_pics_block.recent_pics.recent_detail.IP}
</span>
</td>
<!-- END recent_detail -->
</tr>
<!-- END recent_pics -->
</table>
<br />
<!-- END recent_pics_block -->
</tr>
</table></td>
</tr>
</table>
<br />
<!-- BEGIN recent_pics_block -->
<table class="forumline" width="98%" align="center" cellspacing="1" cellpadding="2">
<tr><th class="thTop" height="25" colspan="{S_COLS}" nowrap="nowrap">{L_RECENT_PUBLIC_PICS}</th></tr>
<!-- BEGIN no_pics -->
<tr><td class="row1" align="center" colspan="{S_COLS}" height="50"><span class="gen">{L_NO_PICS}</span></td></tr>
<!-- END no_pics -->
<!-- BEGIN recent_pics -->
<tr>
<!-- BEGIN recent_col -->
<td class="row1" width="{S_COL_WIDTH}" align="center" onMouseOver="this.className='row2';" onMouseOut="this.className='row1';">
<table><tr><td><div class="picshadow"><div class="picframe">
<a href="{recent_pics_block.recent_pics.recent_col.U_PIC}" {TARGET_BLANK}><img src="{recent_pics_block.recent_pics.recent_col.THUMBNAIL}" {THUMB_SIZE} border="0" alt="{recent_pics_block.recent_pics.recent_col.DESC}" title="{recent_pics_block.recent_pics.recent_col.DESC}" vspace="10" /></a>
</div></div></td></tr></table>
</td>
<!-- END recent_col -->
</tr>
<tr>
<!-- BEGIN recent_detail -->
<td class="row2" align="center">
<span class="gensmall">
{L_POSTER}: {recent_pics_block.recent_pics.recent_detail.POSTER}<br />
{L_PIC_TITLE}: {recent_pics_block.recent_pics.recent_detail.TITLE}<br />
{L_PIC_ID}: {recent_pics_block.recent_pics.recent_detail.PIC_ID}<br />
{L_POSTED}: {recent_pics_block.recent_pics.recent_detail.TIME}<br />
{L_VIEW}: {recent_pics_block.recent_pics.recent_detail.VIEW}<br />
{recent_pics_block.recent_pics.recent_detail.RATING}
{recent_pics_block.recent_pics.recent_detail.COMMENTS}
{recent_pics_block.recent_pics.recent_detail.IP}
</span>
</td>
<!-- END recent_detail -->
</tr>
<!-- END recent_pics -->
</table>
<br />
<!-- END recent_pics_block -->