Home | Support Forums | Your Account | Gallery [2] | 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  

Fixed size for block-G2_Sidebar.php

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

Beginner
Beginner


Joined: Sep 17, 2007
Posts: 15

PostPosted: Wed May 28, 2008 3:04 am    Post subject: Fixed size for block-G2_Sidebar.php Reply with quote

So I'm trying to play around with the css themes, and finally have my site engineered the way that I want it to, except the block-G2_Sidebar is pushing things out of proportion to the rest of the site, so I was wondering if there was a way that I could enforce a width of any kind?

I want to prevent it from doing some funky stuff with my CSS designs and themes that I'm downloading.

Any insight would be greatly appreciated. I just finished integrating and while I don't have anything populated now, I want to start bringing in things shortly. I'm also interested in potentially limiting the size of the Random Image block that I also imported, I don't want that pushing my alignment of the site all over the place. I want to get rid of the extra block bar and lines if possible... I think this will go a long way aesthetically.

Site and info below

~Brian

----

Gallery URL: http://www.janetandbrian.info/
PHP-Nuke version: 8.0
Gallery version: 2.2.4
Gallery integration: 0.6.3
Apache version: 2.2.3
PHP version: PHP 5.1.6
Graphics Toolkit: php-gd.i386 5.1.6-15.el5
Operating system: CentOS 5
Web browser/version: Firefox 2.0.0.14
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Fixed size for block-G2_Sidebar.php  

Back to top
dari

Site Admin
Site Admin


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

PostPosted: Wed May 28, 2008 6:30 am    Post subject: Re: Fixed size for block-G2_Sidebar.php Reply with quote

what do yo uhave in your sidebar? if you've got a thumbnail, the width of the sidebar will be at least the width of the thumbnail.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
mengesb

Beginner
Beginner


Joined: Sep 17, 2007
Posts: 15

PostPosted: Thu May 29, 2008 7:59 pm    Post subject: Re: Fixed size for block-G2_Sidebar.php Reply with quote

dari wrote: › what do yo uhave in your sidebar? if you've got a thumbnail, the width of the sidebar will be at least the width of the thumbnail.


Previously I didn't have the thumbnail, but when I started adding pictures it generated it (the thumbnails were smaller than the width of the other modules on the bar).

It was displaying wider than anything else even when i didn't have pictures loaded, it appears that the width of the G2_Sidebar is just wider than most others in PHP Nuke
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Fri May 30, 2008 6:34 am    Post subject: Re: Fixed size for block-G2_Sidebar.php Reply with quote

in the theme.css file for whatever theme you're using, find:
Code: › #gsSidebar {
    border-right-width: 1px;
    width: 305px;
    overflow: hidden;
}


change the width value there. then flush the theme cache from the g2 admin maintenance page.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
mengesb

Beginner
Beginner


Joined: Sep 17, 2007
Posts: 15

PostPosted: Sat May 31, 2008 12:46 pm    Post subject: Re: Fixed size for block-G2_Sidebar.php Reply with quote

Excellent, thank you, that did it.

Now I'm wondering, in that same file I can modify it so that I don't include extra things like the lines, and the thumbnail right? I like the separate thumbnail block better, and the G2 Sidebar is a bit long, so I wanted to reduce its size for the people administering the Gallery.

Thanks a bunch for that quick fix!
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Mon Jun 02, 2008 6:49 am    Post subject: Re: Fixed size for block-G2_Sidebar.php Reply with quote

you can use the imageblock instead, so that the sidebar block can be visible only to admins.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
mengesb

Beginner
Beginner


Joined: Sep 17, 2007
Posts: 15

PostPosted: Mon Jun 02, 2008 11:15 am    Post subject: Re: Fixed size for block-G2_Sidebar.php Reply with quote

dari wrote: › you can use the imageblock instead, so that the sidebar block can be visible only to admins.


Woudl you know the areas that I can exclude in the block-G2_Sidebar.php file? even as an admin, that block is quite long, and I'd like to remove some of the items in that list, including the random image, separator lines, etc. I imagine some of these can be trimmed by disabling modules/plugins in the base install of Gallery2.

Any other ideas on what's what that I can remove?
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Mon Jun 02, 2008 11:30 am    Post subject: Re: Fixed size for block-G2_Sidebar.php Reply with quote

all that's done via the themes admin in g2. just de/select whatever you do /don't want to show up in the sidebar.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
mengesb

Beginner
Beginner


Joined: Sep 17, 2007
Posts: 15

PostPosted: Mon Jun 02, 2008 12:05 pm    Post subject: Re: Fixed size for block-G2_Sidebar.php Reply with quote

dari wrote: › all that's done via the themes admin in g2. just de/select whatever you do /don't want to show up in the sidebar.


Aahh, sorry, haven't messed with G2 that much... been messing with phpnuke code for a while, trying to get what I wanted and here i was looking in the wrong place.

Thanks! I disabled a few unnecessary plugins and removed that nasty random block from the sidebar!
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 Issues » 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: Web HostingDomain NamesDedicated ServersDedicated Web HostingDomain Name RegistrationWeb hosting AustraliaSEO Web DesignWeb Design New YorkSearch Engine OptimizationSearch Engine Optimisation

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