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  

Cannot hide sidebar

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

Beginner
Beginner


Joined: Jul 21, 2005
Posts: 4

PostPosted: Thu Jul 21, 2005 4:14 am    Post subject: Cannot hide sidebar Reply with quote

I don't seem to be able to hide the left sidebar navigational items in the embedded Gallery2.

My config files:


Embed.php
Code: ›

/* Define G2_EMBED = 1 to remember to generate correct URLs and return the HTML, etc. */
require_once(dirname(__FILE__) . '/modules/core/classes/GalleryDataCache.class');
GalleryDataCache::put('G2_EMBED', 1, true);
require(dirname(__FILE__) . '/main.php');
require(dirname(__FILE__) . '/modules/core/classes/GalleryEmbed.class');
?>


gallery2.cfg
Code: ›
<?
$g2embedparams = array (
  'embedphpfile' => '/foo/foo/public_html/foo/modules/gallery2',
  'embedUri' => 'http://www.foo.com/modules.php?name=gallery2',
  'relativeG2Path' => '/modules/gallery2/',
  'loginRedirect' => 'modules.php?name=Your_Account',
  'activeUserId' => '0',
);
$g2mainparams = array (
  'showSidebar' => NULL,
);
$g2configurationdone = 'true'; ?>
                                     
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Cannot hide sidebar  

Back to top
Crypton

Novice
Novice


Joined: Sep 28, 2004
Posts: 29

PostPosted: Thu Jul 21, 2005 7:13 am    Post subject: Re: Cannot hide sidebar Reply with quote

change
Code: ›
  'showSidebar' => NULL,

to
Code: ›
  'showSidebar' => 1,


and see if that has the effect you are looking for.

Also, in your PHP-Nuke settings for Gallery2

http://www.yourdomain.com/admin.php?op=gallery2 (default location)

make sure to uncheck the check box labeled "Show Side Bar (Uncheck it if you use the G2 Sidebar block)"

then click update settings and see.
Back to top
Hidden View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Thu Jul 21, 2005 7:47 am    Post subject: Re: Cannot hide sidebar Reply with quote

the enable/disable sidebar is inactive at the moment. the gallery2 developers are trying to come up with a good way of handling this scenario. the integration package in CVS should have a notice under the checkbox stating this.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
Crypton

Novice
Novice


Joined: Sep 28, 2004
Posts: 29

PostPosted: Thu Jul 21, 2005 11:45 am    Post subject: Re: Cannot hide sidebar Reply with quote

hmm, well, strange, but easy temp fix

download your /gallery2/templates/sidebar.tpl

backup your /gallery2/templates/sidebar.tpl

edit (non backed up copy) using text editor and delete all code in it, then upload the blank sidebar.tpl and side bar should be gone regardless of what setting the variable has.
Back to top
Hidden View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Thu Jul 21, 2005 1:40 pm    Post subject: Re: Cannot hide sidebar Reply with quote

this is a temp fix, when the final version of G2 is released (i just got out of the dev meeting and a date is now set), this should be fixed.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
cwoodard

Beginner
Beginner


Joined: Jul 21, 2005
Posts: 4

PostPosted: Thu Jul 21, 2005 1:58 pm    Post subject: Re: Cannot hide sidebar Reply with quote

Perfect! Thanks!
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Thu Jul 21, 2005 2:00 pm    Post subject: Re: Cannot hide sidebar Reply with quote

For more details, see item number 12 on the Blocker List [menalto.com]
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
Crypton

Novice
Novice


Joined: Sep 28, 2004
Posts: 29

PostPosted: Thu Jul 21, 2005 9:32 pm    Post subject: Re: Cannot hide sidebar Reply with quote

Mr. Green nice Smile
Back to top
Hidden View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Fri Jul 22, 2005 5:23 am    Post subject: Re: Cannot hide sidebar Reply with quote

actually, that's not what was decided. this post [menalto.com] was the final decision.
_________________
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 Issues » Gallery 2 Integration 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: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

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