empty user albums invisible to admin (same as fixed 1.2x bug) empty user albums invisible to admin (same as fixed 1.2x bug)
 

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

empty user albums invisible to admin (same as fixed 1.2x bug)

Started by Casper, February 14, 2005, 10:27:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Casper

This has crept back in somehow.  If a user album is empty, and the user has no other albums, or only empty albums, then admin cannot see this users sub-cat or albums.  The same workaround used for the 1.2x bug does work.

In these screenshots, another user has an empty album, which the logged in user (admin) cannot see.
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

Joachim Müller

Casper,

could you apply the cpg1.2-fix then? Thanks in advance.

Joachim

Casper

Joachim,

sorry, I know the workaroud to delete these albums, but not the fix to make them show.

it is not the actual albums that don't show, they do if you manually type the url, it is the category.  If the cat 10002 has no pics in it, then the cat is not shown in the user galleries.

Hope that is clear.
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

Nibbler

The issue is with the query in list_users_query() in udb_base.php. It needs a pic to be in the album for the gallery icon feature to function, if there is no pic in the album then the join gives you no results.

omniscientdeveloper

Ok. I'll fix this one also. I have to reinstall my dev version, so it'll be tomorrow evening before I can commit it.

....Changing it to a left join should fix it.

omniscientdeveloper

#5
I just noticed that I accidently committed this "left join" change, before I tested it. Can someone verify that it works. I won't be able to test it (fix if broken) for a couple hours.

Fixed. Please verify that it's giving the expected behaviour. Once it's verified, I'll remove the old code and recommit.

Joachim Müller


Casper

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