Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes
Author Message
CodyG
Life Cycles Becoming CPU Cycles



Joined: Jan 02, 2003
Posts: 714
Location: Vancouver Island

PostPosted: Sun Feb 03, 2013 11:47 am Reply with quote

Hi All...
If I don't want any right side blocks anywhere (ie: they are all deactivated), and I want to use the Simply Blue theme, then what do I need to do to get the center table/column to extend all the way to the right and not leave a blank space where the right side blocks might be. fisubice is the only theme where there isn't this right side block problem.

I've mucked around in the theme.php and style.css but I'm just not getting it.

_________________
"We want to see if life is ubiquitous." D.Goldin 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Sun Feb 03, 2013 1:48 pm Reply with quote

In your modules index.php file, find something similar to:
Code:


if (!defined('INDEX_FILE')) define('INDEX_FILE', true);


amd change it to
Code:


if (!defined('INDEX_FILE')) define('INDEX_FILE', false);

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Sun Feb 03, 2013 1:59 pm Reply with quote

find this section of code at the end of function themeheader in SimplyBlue

Code:
   if(defined('INDEX_FILE') && INDEX_FILE===true) {

      echo '
      <!-- start right column -->
      <div id="sidebar2">
      ';
      blocks('r');
      echo '
      </div>
      <!-- end right column -->
      ';
   }
   global $hide_blocks_left;
   if (in_array($name, $hide_blocks_left))
   {
      echo '<div id="mainContent_full"><!-- center column -->';
   }
   else
   {
      if(defined('INDEX_FILE') && INDEX_FILE===true) {
         // right blocks are showing
         echo '<div id="mainContent"><!-- center column -->';
      }
      else
      {
         // right blocks are NOT showing
         echo '<div id="mainContent_alt"><!-- center column -->';
      }
   }


and try replacing with
Code:
   global $hide_blocks_left;

   if (in_array($name, $hide_blocks_left))
   {
      echo '<div id="mainContent_full"><!-- center column -->';
   }
   else
   {
      // right blocks are NOT showing
      echo '<div id="mainContent_alt"><!-- center column -->';
   }
 
View user's profile Send private message Visit poster's website
CodyG







PostPosted: Sun Feb 03, 2013 4:53 pm Reply with quote

Yes! I would not have thought to remove an entire else statement, but now it makes sense and it works. Smile I'll have to make a special comment in that theme.php file or I'll lose it on the next upgrade.

I would have thought that, by default, if there are no right side blocks active, that the center block would expand to take up the space, like it does in fisubice.

Thank you again for all your help.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©