Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Appearance of “1 album(s) on 1 page”  (Read 4347 times)

0 Members and 1 Guest are viewing this topic.

406man

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 46
Appearance of “1 album(s) on 1 page”
« on: February 13, 2011, 09:43:13 pm »

I’d like to be able to customise the appearance of the summary text “1 album(s) on 1 page” on a list of categories and albums without affecting other users of the "tableh1" class. I’ve looked all over the theme code but can’t find where the change can be made. If I change the definition of "tableh1" in the CSS style sheet it will alter other items that I'm happy with. The theme code $template_album_list only has {TABS} where the  “1 album(s) on 1 page”  text would appear. Can you suggest the best place to make this change. Thanks in advance for your help.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Appearance of “1 album(s) on 1 page”
« Reply #1 on: February 14, 2011, 01:38:05 pm »

The theme code $template_album_list only has {TABS} where the  “1 album(s) on 1 page”  text would appear. Can you suggest the best place to make this change.
I think at $template_album_list. Have you tested that?
Logged

406man

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 46
Re: Appearance of “1 album(s) on 1 page”
« Reply #2 on: February 15, 2011, 02:15:22 pm »

I did look at $template_album_list but couldn't see a way to achieve what I want. I might have missed something as I'm still a novice with CPG. Could you suggest what I need to do ?

Thanks.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Appearance of “1 album(s) on 1 page”
« Reply #3 on: February 15, 2011, 02:42:18 pm »

Copy the following block to your template's theme.php file and modify the row 'left_text' to your needs:
Code: [Select]
$template_tab_display = array(
    'left_text'         => '<td width="100%%" align="left" valign="middle" class="tableh1" style="white-space: nowrap">{LEFT_TEXT}</td>' . $LINEBREAK,
    'tab_header'        => '',
    'tab_trailer'       => '',
    'active_tab'        => '<td align="center" valign="middle" class="tableb tableb_alternate">%d</td>',
    'inactive_tab'      => '<td align="center" valign="middle" class="navmenu"><a href="{LINK}">%d</a></td>' . $LINEBREAK,
    'nav_tab'           => '<td align="center" valign="middle" class="navmenu"><a href="{LINK}">%s</a></td>' . $LINEBREAK,
    'nav_tab_nolink'    => '<td align="center" valign="middle" class="navmenu">%s</td>' . $LINEBREAK,
    'allpages_dropdown' => '<td align="center" valign="middle" style="white-space: nowrap; padding-right: 10px;" class="navmenu">%s</td>' . $LINEBREAK,
    'page_gap'          => '<td align="center" valign="middle" class="navmenu">-</td>' . $LINEBREAK,
    'tab_spacer'        => '<td><img src="images/spacer.gif" width="1" height="1" border="0" alt="" /></td>' . $LINEBREAK,
    'page_link'         => '{LINK}',
);
Logged

406man

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 46
Re: Appearance of “1 album(s) on 1 page”
« Reply #4 on: February 16, 2011, 09:20:58 pm »

That works great, thanks. I just changed the class from tableh1 to tableh2 and that gave the appearance I wanted.  Vielen Dank !
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Appearance of “1 album(s) on 1 page”
« Reply #5 on: February 16, 2011, 09:38:39 pm »

Marking as solved.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.