is there any way to have the page list of each album appear at the TOP ? is there any way to have the page list of each album appear at the TOP ?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

is there any way to have the page list of each album appear at the TOP ?

Started by drdavidge, September 23, 2004, 01:06:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

drdavidge

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!

Casper

It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

drdavidge

wasnt sure which forum it should go in - new to this board, sorry. anyways, any ideas?

Tranz

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.

drdavidge

man 2 replies ragging on me within 2 minutes, but no help? i get it already, sorry...relax guys.

drdavidge

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!

MrHank

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