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  

G1 Theme issues for Gallery2

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Other PHPNuke Issues View previous topicPrinter friendly versionView next topic
Author Message
siege911

Beginner
Beginner


Joined: Jun 09, 2004
Posts: 13

PostPosted: Mon Sep 19, 2005 3:04 am    Post subject: G1 Theme issues for Gallery2 Reply with quote

I downloaded the G1 theme for Gallery2 which is integrated into my phpNuke setup. When I switch to the theme, I get this error at the to pabove the Nuke Header when I browse the Gallery. I also get the error when browsing the Gallery as a Standalone.

Code: ›
Warning: Invalid argument supplied for foreach() in /home/*****/public_html/templetest/modules/gallery2/modules/core/classes/GalleryTheme.class on line 730


And this in the Gallery towards the bottom.

Code: › Warning: Invalid argument supplied for foreach() in /home/*****/public_html/templetest/modules/gallery2/modules/core/Callbacks.inc on line 62


Other than that, the theme works just fine and it's exactly what I want for my integration. Only problem is that I'm no PHP wizard. I was wondering if anyone wanted to take a quick crack at this. Maybe it's a quick fix. I'd appreciate it.


The G1 theme can be found at: http://gallery.menalto.com/node/35498 [menalto.com]

Thanks.
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: G1 Theme issues for Gallery2  

Back to top
dari

Site Admin
Site Admin


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

PostPosted: Tue Sep 20, 2005 6:56 am    Post subject: Re: G1 Theme issues for Gallery2 Reply with quote

try commenting out:
PHP: › <?php foreach (array('sidebarBlocks''albumBlocks''photoBlocks') as $blockKey) {
        if (!isset(
$theme['params'][$blockKey])) {
        continue;
        }

        
$theme['params'][$blockKey] = unserialize($theme['params'][$blockKey]);

        
$seen = array();
        foreach (
$theme['params'][$blockKey] as $block) {
        
$seen[$block[0]][] = $block[1];
        }

        foreach (
$seen as $key => $blockParams) {
        list (
$module$file) = explode('.'$key);

        if (empty(
$pluginStatus[$module]['active'])) {
            continue;
        }

        
$path "modules/$module/Preloads.inc";
        if (
$platform->file_exists("$g2Base/$path")) {
            
GalleryCoreApi::relativeRequireOnce($path);
            
$className "${module}Preloads";
            
$instance = new $className;
            
$ret $instance->preload($template$file$blockParams);
            if (
$ret->isError()) {
            return array(
$ret->wrap(__FILE____LINE__), null);
            }
        }
        }
    } 
?>


and see what happens. this happens because the G1 theme does not have sidebars, so this chunk of code fails.
Back to top
Offline View user's profile Send private message Visit poster's website
siege911

Beginner
Beginner


Joined: Jun 09, 2004
Posts: 13

PostPosted: Tue Sep 20, 2005 5:57 pm    Post subject: Re: G1 Theme issues for Gallery2 Reply with quote

Actually that worked for the top error.

Now I still have the bottom error and a new bottom error as well.

Here they are:

Code: › Warning: Invalid argument supplied for foreach() in /home/*****/public_html/templetest/modules/gallery2/modules/core/Callbacks.inc on line 62

Warning: Invalid argument supplied for foreach() in /home/*****/public_html/templetest/modules/gallery2/modules/core/Callbacks.inc on line 62
Back to top
Offline View user's profile Send private message
siege911

Beginner
Beginner


Joined: Jun 09, 2004
Posts: 13

PostPosted: Tue Sep 20, 2005 6:05 pm    Post subject: Re: G1 Theme issues for Gallery2 Reply with quote

Note that the above error is only when I'm logged in as admin as far as I can tell.
Back to top
Offline View user's profile Send private message
siege911

Beginner
Beginner


Joined: Jun 09, 2004
Posts: 13

PostPosted: Tue Sep 20, 2005 6:18 pm    Post subject: Re: G1 Theme issues for Gallery2 Reply with quote

Ok, here's another question. I noticed that the Siriux theme uses tables and has columns of images. It displays this way during Standalone and it's pretty much what I want. A very simple basic theme.

However when it's integrated into Nuke, it loses that and everything is ordered on top of each other rather than nicely into columns and rows.

Any fixes or REALLY simple themes that would be organized well. I noticed that some themes have a setting in the Admin section where you can state how many rows and columns per page. I want a simple theme that allows for that.

Is there such a thing right now?
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Tue Sep 20, 2005 7:59 pm    Post subject: Re: G1 Theme issues for Gallery2 Reply with quote

the standard Matrix theme.
Back to top
Offline View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Other PHPNuke Issues 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 YorkCompare VoIPseo packagesSEO CompanyNew York Yellow PagesFind LocationsVOIP Phone ServiceNeckermannOnline internetSEORestaurant Locator • Get great HP coupons from CouponSnapshot • Search for great dell coupons at CouponSnapshot.com.au • Graduation DressesAndroid TabletSEO IndiaBuy Phen375fuel filterWorld Meds Direct

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