Advanced search  

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]

Pages: [1]   Go Down

Author Topic: is there any way to have the page list of each album appear at the TOP ?  (Read 3789 times)

0 Members and 1 Guest are viewing this topic.

drdavidge

  • Coppermine newbie
  • Offline Offline
  • Posts: 6

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!
« Last Edit: September 23, 2004, 01:53:32 am by Nibbler »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: is there any way to have the page list of each album appear at the TOP ?
« Reply #1 on: September 23, 2004, 01:11:28 am »

Double posting will win you no friends.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: is there any way to have the page list of each album appear at the TOP ?
« Reply #2 on: September 23, 2004, 01:12:58 am »

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

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: is there any way to have the page list of each album appear at the TOP ?
« Reply #3 on: September 23, 2004, 01:14:38 am »

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.
Logged

drdavidge

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: is there any way to have the page list of each album appear at the TOP ?
« Reply #4 on: September 23, 2004, 01:19:04 am »

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

drdavidge

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: is there any way to have the page list of each album appear at the TOP ?
« Reply #5 on: September 23, 2004, 01:52:45 am »

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:

Code: [Select]
    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:
Code: [Select]
    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!
Logged

MrHank

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 7
    • http://www.tistside.de
Re: is there any way to have the page list of each album appear at the TOP ?
« Reply #6 on: December 08, 2004, 04:50:21 am »

w00how thanks, drdavidge!
that's what i searched for :)

anyways, for interested people: same deal for the album overview.

just copy the
Code: [Select]
// Tab display
    $params = array('{COLUMNS}' => $columns,
        '{TABS}' => $tabs,
        );
    echo template_eval($tabs_row, $params);

right before the following code
Code: [Select]
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
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 16 queries.