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: 2 Album Lists in the theme.php?  (Read 3332 times)

0 Members and 1 Guest are viewing this topic.

cowgirlexpressions

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 27
  • Cowgirl Expressions
    • Cowgirl Expressions
2 Album Lists in the theme.php?
« on: February 15, 2005, 03:02:44 pm »

I've been working on my theme and the layouts I want and so forth.  However, I'm running into a weird question, and I checked a couple other theme.php files to make sure I just hadn't doubled the code myself.  In the theme.php file, there are TWO album list code sections (// HTML template for the album list) ...  I have changed the top/first one,  which seems to have changed the album list on my site.  So what does the second one do?

Thanks!
Ramsey
« Last Edit: February 16, 2005, 08:59:08 am by GauGau »
Logged

d1zz13

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 7
    • My Gallery
Re: 2 Album Lists in the theme.php?
« Reply #1 on: February 15, 2005, 04:53:10 pm »

Although they may seem the same they're slightly different.

The 1st line in the two blocks of code is different:
Code: [Select]
$template_album_list = <<<EOT
Code: [Select]
$template_album_list_cat = <<<EOT
The 2nd block of code is used for the display first level Albums of a category function.  8)
« Last Edit: February 15, 2005, 05:34:56 pm by d1zz13 »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: 2 Album Lists in the theme.php?
« Reply #2 on: February 15, 2005, 04:55:05 pm »

Yes, there should be 2, as here;

Code: [Select]
// HTML template for the album list
$template_album_list = <<<EOT

Code: [Select]
// HTML template for the album list
$template_album_list_cat = <<<EOT

See the '_cat' in the second.

One is for the root albums and albums shown at first level, the other for albums within categories.
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

cowgirlexpressions

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 27
  • Cowgirl Expressions
    • Cowgirl Expressions
Re: 2 Album Lists in the theme.php?
« Reply #3 on: February 15, 2005, 05:40:42 pm »

Awesome.  Thanks folks!

I don't use categories, so that is why I couldn't figure this one out.  Thanks again!

Ramsey
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.