| Author |
Message |
StarScream159
Wizard


Joined: Apr 08, 2006 Posts: 120
|
Posted: Thu Nov 30, 2006 1:25 am Post subject: [SOLVED] Most Popular Album - Showing Gallery Root as Album |
|
|
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
Last edited by StarScream159 on Wed Dec 06, 2006 10:09 am; edited 1 time in total |
|
| Back to top |
|
|
AdBot
|
| Post subject: [SOLVED] Most Popular Album - Showing Gallery Root as Album |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Mon Dec 04, 2006 7:46 am Post subject: Re: Most Popular Album - Showing Gallery Root as Album |
|
|
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. _________________
 |
|
| Back to top |
|
|
StarScream159
Wizard


Joined: Apr 08, 2006 Posts: 120
|
Posted: Tue Dec 05, 2006 7:01 pm Post subject: Re: Most Popular Album - Showing Gallery Root as Album |
|
|
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? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Tue Dec 05, 2006 9:03 pm Post subject: Re: Most Popular Album - Showing Gallery Root as Album |
|
|
submit a bug report onthe gallery sourceforge page  _________________
 |
|
| Back to top |
|
|
StarScream159
Wizard


Joined: Apr 08, 2006 Posts: 120
|
Posted: Wed Dec 06, 2006 1:06 am Post subject: Re: Most Popular Album - Showing Gallery Root as Album |
|
|
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. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 06, 2006 7:36 am Post subject: Re: Most Popular Album - Showing Gallery Root as Album |
|
|
i think it's in the g2_ImageBlockDisabledMap table, though i'm not sure. but yes, i believe you have the right idea. _________________
 |
|
| Back to top |
|
|
StarScream159
Wizard


Joined: Apr 08, 2006 Posts: 120
|
Posted: Wed Dec 06, 2006 10:09 am Post subject: Re: Most Popular Album - Showing Gallery Root as Album |
|
|
| 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. |
|
| Back to top |
|
|
|
|
|
|
|