Empty content areas in album list view—"No image to display" Empty content areas in album list view—"No image to display"
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Empty content areas in album list view—"No image to display"

Started by Korben Dallas, July 09, 2012, 06:49:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Korben Dallas

Hi everybody,

I have several albums in my gallery which don't contain any real image files, only linked files. In these albums the content areas created by "random" and "topn" remain empty showing "No image to display".

Does anybody have any idea how to fill these ugly empty areas with images? I guess, my best starting point of changing this behaviour would be the routine that creates the list of random or top-rated pictures respectively.

But before I delve into the depths of coppermine code: Perhaps there is someone out there who can give me a clue...

Thanks a lot.
Korben.

btw: The gallery is at http://www.horst-rave.de/cpg/

Αndré

So you want to display the linked files in that blocks, right? As far as I know such a modification doesn't exist yet (at least none that has been created for cpg1.5.x). The meta albums are built within the function get_pic_data. Depending on your solution, you'll probably also have to modify get_pic_pos. The easiest solution may be to adjust $RESTRICTEDWHERE in get_meta_album_set somehow, but I haven't checked that.

All mentioned functions can be found in include/functions.inc.php.

Korben Dallas

Right. Thanks for your quick reply. Nice to know that apparently nobody cared about this behaviour so far.

I'm gonna hack my way thru functions.inc.php. What about telling the developers? Is that a feature or a bug?

Thx.
Korben.

Αndré

Quote from: Korben Dallas on July 10, 2012, 12:44:22 PM
Is that a feature or a bug?
It's the way how it works. I haven't checked the docs if there's anything related regarding categories that just contain albums with linked files. Usually the meta albums doesn't care about linked files, so it's rather a feature than a bug.