Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

[SOLVED] Most Popular Album - Showing Gallery Root as Album

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Blocks View previous topicPrinter friendly versionView next topic
Author Message
StarScream159

Wizard
Wizard


Joined: Apr 08, 2006
Posts: 120

PostPosted: Thu Nov 30, 2006 1:25 am    Post subject: [SOLVED] Most Popular Album - Showing Gallery Root as Album Reply with quote

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
Offline View user's profile Send private message
AdBot
   Post subject: [SOLVED] Most Popular Album - Showing Gallery Root as Album  

Back to top
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6318
Location: Washington Township, NJ, USA

PostPosted: Mon Dec 04, 2006 7:46 am    Post subject: Re: Most Popular Album - Showing Gallery Root as Album Reply with quote

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
Offline View user's profile Send private message Visit poster's website
StarScream159

Wizard
Wizard


Joined: Apr 08, 2006
Posts: 120

PostPosted: Tue Dec 05, 2006 7:01 pm    Post subject: Re: Most Popular Album - Showing Gallery Root as Album Reply with quote

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6318
Location: Washington Township, NJ, USA

PostPosted: Tue Dec 05, 2006 9:03 pm    Post subject: Re: Most Popular Album - Showing Gallery Root as Album Reply with quote

submit a bug report onthe gallery sourceforge page Smile
Back to top
Offline View user's profile Send private message Visit poster's website
StarScream159

Wizard
Wizard


Joined: Apr 08, 2006
Posts: 120

PostPosted: Wed Dec 06, 2006 1:06 am    Post subject: Re: Most Popular Album - Showing Gallery Root as Album Reply with quote

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6318
Location: Washington Township, NJ, USA

PostPosted: Wed Dec 06, 2006 7:36 am    Post subject: Re: Most Popular Album - Showing Gallery Root as Album Reply with quote

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
Offline View user's profile Send private message Visit poster's website
StarScream159

Wizard
Wizard


Joined: Apr 08, 2006
Posts: 120

PostPosted: Wed Dec 06, 2006 10:09 am    Post subject: Re: Most Popular Album - Showing Gallery Root as Album Reply with quote

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
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Blocks View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Dedicated ServersDomain NamesWeb HostingDomain Name RegistrationDedicated Web HostingWeb Design New YorkSearch Engine OptimisationCompare VoIPSEO IndiaWeb Design Melbournemiami web designSEO IndiaLink BuildingPhoenix SEOPhoenix Web MarketingSEOManual Directory Submission Serviceflorida web design companyScottsdale Interior Designweb marketing servicesScottsdale SEOHome AppliancesSEO Services

7th year online! 2003-2010
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia