Album list view : one row only Album list view : one row only
 

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

Main Menu

Album list view : one row only

Started by TruCaliberPimp, October 10, 2005, 10:59:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TruCaliberPimp

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.

Nibbler


TruCaliberPimp

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

Nibbler

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 )

TruCaliberPimp

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. :)

TruCaliberPimp

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

Nibbler

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 :)

TruCaliberPimp

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

TruCaliberPimp

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

Stramm

only one question per thread please

but have a look in config -> Number of albums to display