basically wanted to know this. if you click on an album, and it goes to the thumbnail view and it has more pictures that will fit on one page, you get the page listing bar at the bottom. i wanted to have this bar be at the top of the thumbnails also. is there an easy way to do this in cpg 1.3? thanks in advance!
Double posting will win you no friends.
wasnt sure which forum it should go in - new to this board, sorry. anyways, any ideas?
drdavidge,
If you're not sure where to post, post in one forum, and if it's the wrong one, a moderator will move it to the correct one.
man 2 replies ragging on me within 2 minutes, but no help? i get it already, sorry...relax guys.
actually i figured it out. for anyone interested, i modified the theme.php of the hardwired theme (the one i am using).
right after line 1329, i added in:
if ($display_tabs) {
$params = array('{THUMB_COLS}' => $thumbcols,
'{TABS}' => $tabs_html
);
echo template_eval($tabs, $params);
}
which basically creates that bar at the bottom. putting it after line 1329 make the bar appear at the top also. - example over at http://www.drdavidge.com/pics/thumbnails.php?album=20
for other templates, its in the function "theme_display_thumbnails" right before this code:
foreach($thumb_list as $thumb) {
$i++;
if ($mode == 'thumb') {
if ($aid == 'lastalb') {
$params = array('{CELL_WIDTH}' => $cell_width,
'{LINK_TGT}' => "thumbnails.php?album={$thumb['aid']}",
'{THUMB}' => $thumb['image'],
'{CAPTION}' => $thumb['caption'],
'{ADMIN_MENU}' => $thumb['admin_menu']
);
good luck!
w00how thanks, drdavidge!
that's what i searched for :)
anyways, for interested people: same deal for the album overview.
just copy the // Tab display
$params = array('{COLUMNS}' => $columns,
'{TABS}' => $tabs,
);
echo template_eval($tabs_row, $params);
right before the following code
if (is_array($alb_list)) {
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;
}
}
}
(both in the theme.php of your current theme)
so you get the x albums on x pages also on the top of the site.
maybe this could get a clickable option in admin control?
thx again to drdavidge :)
cya