Thanks again... It might be working
\ but I'm getting this error
Warning: Invalid argument supplied for foreach() in /home/shaddy/public_html/theoak/photo/themes/water_drop/theme.php on line 1105
{edit}
Just figured out how to find the line number, and error corresponds to
function theme_display_album_list(&$alb_list, $nbAlb, $cat, $page, $total_pages)
specifically ==>
echo $header;
foreach($alb_list as $album) {
$count ++;
$params = array('{COL_WIDTH}' => $column_width,
'{ALBUM_TITLE}' => $album['album_title'],
'{THUMB_CELL_WIDTH}' => $thumb_cell_width,
'{ALB_LINK_TGT}' => "thumbnails.php?album={$album['aid']}",
'{ALB_LINK_PIC}' => $album['thumb_pic'],
'{ADMIN_MENU}' => $album['album_adm_menu'],
'{ALB_DESC}' => $album['album_desc'],
'{ALB_INFOS}' => $album['album_info'],
);
echo template_eval($album_cell, $params);
if ($count % $columns == 0 && $count < count($alb_list)) {
echo $rows_separator;
}
}
{end edit}
when I try to view an album when logged in as an Admin. (not 'admin mode', but as an admin). I tried other themes, same thing. It must have been happening before I changed the code above... because I restored it to normal and same thing... I just hadn't tried to view another album as an admin b4 (I was just using registered users id)
THe owner can view the album (and use the Properties button), and view an 'everybody can see' album. But when an admin tries to go to a users album, it fires the error (but the admin can see and change his own album).
Sorry for all the trouble, but unless there're some other surprises, it'll be just how I want it after this bug get's traced...
Thanks