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: Album list view : one row only  (Read 4361 times)

0 Members and 1 Guest are viewing this topic.

TruCaliberPimp

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Album list view : one row only
« on: October 10, 2005, 10:59:01 pm »

Hi, I have a nice CPG installation running otherwise perfectly. Apache 2.0.56; PHP version: 5.0.4 - OK; mySQL version: 4.0.16-standard; Coppermine version: 1.3.4; gdlib2 enabled; no other applications latched on like phpBB, etc. All is working elite.

Now that I am populating the DB with albums for the first time, I have come to an impasse. When url is default: gallery/index.php?cat=0

I can only see one row of representative album thumbnails across the page. I have 7 albums made and when I set the number of columns to 5, I see 5 thumbnails (representing each of the most recent albums' first image) on the first and only row, but no second row of thumbnails representing the remaining 2 albums.

I suspected config issues. I have toyed with configs as below. My Config `Album list view`confs look like:

Width of the main table (pixels or %): 738
Number of levels of categories to display: 1-20+, doesn't seem to matter.
Number of albums to display: none to 24, doesn't seem to matter.
Number of columns for the album list: 6, and if I change it to 5 or 7, those will display fine....on one row.
Size of thumbnails in pixels: 50
The content of the main page: breadcrumb/lastalb/
Show first level album thumbnails in categories: Yes or no, doesn't seem to matter.

Anybody ever seen this? Is this expected behavior? I have applied a few hax interspersed though the codebase, but I haven't really touched much in this area.

Can somebody point me to the relevant areas of code that would control here or suggest another conf I have been missing?

Thanks,

TCP


P.S. For mystery buffs, why is it that my thumbnail view sort order is reversed in Firefox? Seriously, my album representative thumb appears last in Firefox and first in IE. Weird.
« Last Edit: October 11, 2005, 07:17:03 am by GauGau »
Logged

Nibbler

  • Guest
Re: Album list view : one row only
« Reply #1 on: October 10, 2005, 11:13:37 pm »

Can you post a link ?
Logged

TruCaliberPimp

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Album list view : one row only
« Reply #2 on: October 11, 2005, 01:17:40 am »

Sorry Nibbler,

I am running this on an intranet...

Any advice? Like where should I start looking for the broken code? theme.html? functions.inc.php? I assume there is a some foreach() someplace that handles row-by-row printing. I am fjearful I have wrecked something inadvertently, but the number of little hax throughout my version is large, though having mostly to do with output printing rather than wholesale commenting of large sections of code, and never anything I recall as being a change to a serious function.

Like I say, the overall installation works great otherwise. In other words: if I finsish this last "bug" I am done. Time for beer.

Thanks. -- TCP
Logged

Nibbler

  • Guest
Re: Album list view : one row only
« Reply #3 on: October 11, 2005, 01:37:13 am »

Does it work ok with the classic theme ?

If yes, please zip up and attach your theme to your next post.
If no, please zip up and attach your index.php to your next post.

If you want to debug the code youself, the important parts are

index.php : list_albums()
theme.php : theme_display_album_list() and the $template_album_list

( Thumbnail sort order is determined by settings stored in a cookie, each browser maintains their own cookies, they apparently hold different sort order prefs )
Logged

TruCaliberPimp

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Album list view : one row only
« Reply #4 on: October 11, 2005, 04:22:17 am »

OK, thanks for the patience. I tried looking for an obvious foreach() near those functions and found none.

I am gathering from your tone that you don't think this is config related.

Please find the index.php and theme.php attached. I looked for my hax in there and actually those files were *basically untouched.

BTW, thanks for the tip on cookie based sort order. My FF set its cookie when I was toying with different orders, and that is why it was reversed. :)
Logged

TruCaliberPimp

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Album list view : one row only
« Reply #5 on: October 11, 2005, 04:24:02 am »

Oh and, no, the classic theme yielded the same result....one row only.
Logged

Nibbler

  • Guest
Re: Album list view : one row only
« Reply #6 on: October 11, 2005, 04:43:33 am »

I'm confused. You said:

The content of the main page: breadcrumb/lastalb/

That means you don't have an album list in your index page.

Then you say:

Number of columns for the album list: 6, and if I change it to 5 or 7, those will display fine....on one row.

Implying that you do have an album list, and this setting produces change.

Now, if all you have on your index is breadcrumb/lastalb, you can get a second row there by changing to

breadcrumb/lastalb,2

If you actually want a real album list then change to

breadcrumb/lastalb,2/alblist

If I still don't understand, post a screenshot :)
Logged

TruCaliberPimp

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Album list view : one row only
« Reply #7 on: October 11, 2005, 07:01:37 am »

Mr. Nibbler, you 0wnd it. Thanks very much.

When reading the faq on the various codes having to do with breadcrumbs, I was not sure I understood that. Now I am absolutely sure that I did not. :)

Thanks for finding the config fault!

TCP
Logged

TruCaliberPimp

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Album list view : one row only
« Reply #8 on: October 11, 2005, 04:53:51 pm »

Now it is perfect as I mentioned above, I can just walk away, but for eliteness can I ask one other favor *please*?

Is there a way to make the main gallery index page reflect pagination (page numbers) if there are more albums than (breadcrumb/lastalb,#)*(columns)?

If not, that is fine. I am plenty happy right now().

TCP
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Album list view : one row only
« Reply #9 on: October 11, 2005, 05:07:30 pm »

only one question per thread please

but have a look in config -> Number of albums to display
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.