Topic Title: [SOLVED] Most Popular Album - Showing Gallery Root as Album

Forum Index » Blocks » [SOLVED] Most Popular Album - Showing Gallery Root as Album
Topic URL: http://www.nukedgallery.net/postt3295.html

AuthorMessage
Post Title: [SOLVED] Most Popular Album - Showing Gallery Root as Album
StarScream159
Joined: Apr 08, 2006
Posts: 117

Posted: Thu Nov 30, 2006 1:25 am
Hey guys,

So I enabled the most popular album feature in the ImageBlock for nuke. And it is only pulling up the Root of Gallery. Like my root is the "main" album and everything else are sub albums so it thinks that the root has the most views.

Any idea why it is doing this? Have I not installed something correctly? The most popular image works fine and pulls from one of the albums below my root... so I dunno. Any ideas?

----
Gallery URL (optional but very useful): PM ME
Gallery version: 2.1.2 core 1.1.0.2
Apache version: Apache/1.3.37
PHP version (don't just say PHP 4, please): 4.4.4 cgi
Graphics Toolkit: ArchiveUpload, Jpegtran, Exif, ImageMagick, Thumbnail, Gd, Getid3
Operating system: Linux
Web browser/version (if applicable): Firefox 2.0

AuthorMessage
Post Title: Re: Most Popular Album - Showing Gallery Root as Album
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Mon Dec 04, 2006 7:46 am
make sure that you allow the albums in quesiton to be used in the imageblock. go to the album -> edit album. for the root album, edit it, and make sure that you've checked the option to have it applied to all subalbums.

AuthorMessage
Post Title: Re: Most Popular Album - Showing Gallery Root as Album
StarScream159
Joined: Apr 08, 2006
Posts: 117

Posted: Tue Dec 05, 2006 7:01 pm
If you consider the album tree as:
root --> albums --> sub-albums --> sub-sub-albums --> etc
or
root --> albums --> child (either photo or sub-album)

Then, my image block does not have a problem getting random image, mostviewed image, etc from any of the albums or sub-albums. I've checked the "apply to subalbums" option under the "album -> edit" and they ALL have that (even the root). So I figured, why not edit the root and mark it as "Prevent this album from being displayed in the Image Block". (Then the albums and any sub-albums (child) would be displayed but not the root. Or that was my logic at least.)

I did that, and it applied that to all the albums and sub-albums.. doh! I forgot to uncheck "apply to subalbums" on the root. So I redid it and put it back to how it was originally. Now, this time I tried again but I un-checked the box for "apply to subalbums" and checked the box for "prevent this album from...". Hit save, and it came back with both checked. No matter what I do, I can not have the root as "do not show in imageblock". If I want that checked, it HAS to apply it to all subalbums as well rendering the imageblock blank.

Any ideas?

AuthorMessage
Post Title: Re: Most Popular Album - Showing Gallery Root as Album
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Tue Dec 05, 2006 9:03 pm
submit a bug report onthe gallery sourceforge page Smile

AuthorMessage
Post Title: Re: Most Popular Album - Showing Gallery Root as Album
StarScream159
Joined: Apr 08, 2006
Posts: 117

Posted: Wed Dec 06, 2006 1:06 am
Is that the idea though? Make the root "prevent this album from being displayed int he image block?" if so I wonder if I can change that value anywhere without using the album admin.

Is it stored in the database or in text files int he g2data folder?

And I will submit a bug report.

AuthorMessage
Post Title: Re: Most Popular Album - Showing Gallery Root as Album
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Wed Dec 06, 2006 7:36 am
i think it's in the g2_ImageBlockDisabledMap table, though i'm not sure. but yes, i believe you have the right idea.

AuthorMessage
Post Title: Re: Most Popular Album - Showing Gallery Root as Album
StarScream159
Joined: Apr 08, 2006
Posts: 117

Posted: Wed Dec 06, 2006 10:09 am
Alright. Located the g2_ImageBlockDisableMap table though phpMyAdmin and edited the table. Added one row with g_itemId = 7 (my root id) and presto! Fixed. Thanks for the help.

All times are GMT - 5 Hours
Powered by PHPNuke and phpBB2 © 2006 phpBB Group