| Author |
Message |
cwoodard
Beginner


Joined: Jul 21, 2005 Posts: 4
|
Posted: Thu Jul 21, 2005 4:14 am Post subject: Cannot hide sidebar |
|
|
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 |
|
|
AdBot
|
| Post subject: Cannot hide sidebar |
|
|
|
|
|
| Back to top |
|
 |
Crypton
Novice


Joined: Sep 28, 2004 Posts: 29
|
Posted: Thu Jul 21, 2005 7:13 am Post subject: Re: Cannot hide sidebar |
|
|
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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Jul 21, 2005 7:47 am Post subject: Re: Cannot hide sidebar |
|
|
| 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 |
|
|
Crypton
Novice


Joined: Sep 28, 2004 Posts: 29
|
Posted: Thu Jul 21, 2005 11:45 am Post subject: Re: Cannot hide sidebar |
|
|
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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Jul 21, 2005 1:40 pm Post subject: Re: Cannot hide sidebar |
|
|
| 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 |
|
|
cwoodard
Beginner


Joined: Jul 21, 2005 Posts: 4
|
Posted: Thu Jul 21, 2005 1:58 pm Post subject: Re: Cannot hide sidebar |
|
|
| Perfect! Thanks! |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Jul 21, 2005 2:00 pm Post subject: Re: Cannot hide sidebar |
|
|
| For more details, see item number 12 on the Blocker List [menalto.com] |
|
| Back to top |
|
|
Crypton
Novice


Joined: Sep 28, 2004 Posts: 29
|
Posted: Thu Jul 21, 2005 9:32 pm Post subject: Re: Cannot hide sidebar |
|
|
nice  |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Fri Jul 22, 2005 5:23 am Post subject: Re: Cannot hide sidebar |
|
|
| actually, that's not what was decided. this post [menalto.com] was the final decision. |
|
| Back to top |
|
|
|
|
|
|
|