forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upgrading => Topic started by: Bubble on December 28, 2005, 08:04:04 am

Title: revealing empty user albums
Post by: Bubble on December 28, 2005, 08:04:04 am
i just upgrade from 1.4.2 to 1.4.3 and there is one new cat just created by itself.

http://www.zmodified.com/gallery/index.php

you will see a new cat as:

User galleries
This category contains albums that belong to Coppermine users.

it show 1 album but when you click to it, nothing show up and i can't seem to delete that cat.

http://www.zmodified.com/gallery/index.php?cat=1

Any idea? Thanks
Title: Re: a bug in 1.4.3 maybe?
Post by: Joachim Müller on December 28, 2005, 08:08:21 am
not a bug, but expected behaviour. Empty the user galleries and make sure users can't create new one to stop this "special" category from appearing.
Title: Re: a bug in 1.4.3 maybe?
Post by: Bubble on December 29, 2005, 03:08:03 am
hi,

is there a way for me to remove that cat completely? it didn't look nice to have one empty cat display in the main index page.
Title: Re: a bug in 1.4.3 maybe?
Post by: Nibbler on December 29, 2005, 03:22:03 am
Delete the album inside it and it will not be displayed.
Title: Re: a bug in 1.4.3 maybe?
Post by: Tranz on December 29, 2005, 04:26:26 am
hmmm... I tried to delete a user album on my local installation and couldn't find a way to do it. The albums list doesn't include the user album. I couldn't find info in the docs on how to delete a user's album.

So I searched the forums and came across this: http://forum.coppermine-gallery.net/index.php?topic=15613.msg91208#msg91208

Where he said, "album list", use Parent Category.
Title: Re: a bug in 1.4.3 maybe?
Post by: ecto on December 29, 2005, 05:00:17 am
Sounds like the administration of user albums needs some improvemement. Thanks for the search+link TND. New avatar btw? A bit Leia-ish, nice :)

Edit: heh, when I posted I noticed it's a random script.
Title: Re: a bug in 1.4.3 maybe?
Post by: Tranz on December 29, 2005, 05:33:56 am
Would adding a link in the Album Manager to modifyalb.php, using an existing language string, be considered a new feature? Is there another way to make it easier to access user albums?
Title: Re: a bug in 1.4.3 maybe?
Post by: Nibbler on December 29, 2005, 05:41:32 am
We could make empty user albums be displayed instead of hidden.
Title: Re: a bug in 1.4.3 maybe?
Post by: Tranz on December 29, 2005, 05:48:56 am
That would help. It would be much less confusing.
Title: Re: a bug in 1.4.3 maybe?
Post by: Bubble on December 29, 2005, 05:54:55 am
tried but still couldn't delete it. Weird.

in addition, even if i create new album under that cat, it still not show at all. why we have this in 1.4.3 ? As of now, you see i have 2 album in there but nothing show up. On thing i see is that they have *name of cat*  so i don't know if  the * meaning hidden?

(http://www.zmodified.com/bug.jpg)

i didn't create the *my gallery *  they are just there by itself.  ???
Title: Re: a bug in 1.4.3 maybe?
Post by: Tranz on December 29, 2005, 06:00:12 am
I know it's 1.3x, that's why I modified the instructions for 1.4x.
Title: Re: a bug in 1.4.3 maybe?
Post by: Bubble on December 29, 2005, 06:08:16 am
humm...so i wait for the new instruction to be posted? ???
Title: Re: a bug in 1.4.3 maybe?
Post by: Nibbler on December 29, 2005, 06:17:05 am
udb_base.inc.php, find

Code: [Select]
        $sql .= " INNER JOIN {$CONFIG['TABLE_PICTURES']} AS pics ON pics.aid = p.aid ";
change to

Code: [Select]
        $sql .= " LEFT JOIN {$CONFIG['TABLE_PICTURES']} AS pics ON pics.aid = p.aid ";
find

Code: [Select]
$sql .= "INNER JOIN {$CONFIG['TABLE_PICTURES']} AS p ON p.aid = a.aid ";
change to

Code: [Select]
$sql .= "LEFT JOIN {$CONFIG['TABLE_PICTURES']} AS p ON p.aid = a.aid ";
That will allow the empty albums to be displayed in the user galleries section.
Title: Re: a bug in 1.4.3 maybe?
Post by: Bubble on December 29, 2005, 06:50:17 am
in which folder udb_base.inc.php locate at? can't seem to find it.
Title: Re: a bug in 1.4.3 maybe?
Post by: Tranz on December 29, 2005, 06:51:16 am
bridge
Title: Re: a bug in 1.4.3 maybe?
Post by: Bubble on December 29, 2005, 06:56:50 am
THANK YOU SO MUCH.  ;D ;D ;D

it works perfect now.
Title: Re: revealing empty user albums
Post by: Bubble on March 07, 2006, 07:18:50 am
i have this same problem with 1.4.4 and i have to manual change it as instructed. Can you guy have it included in the next release so we don't have to change it manualy? Thanks
Title: Re: revealing empty user albums
Post by: Joachim Müller on March 07, 2006, 08:55:06 am
scheduled for cpg1.5.x: http://forum.coppermine-gallery.net/index.php?topic=28848.0