Blank Component

Everything to do with Joomla! 1.5 templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
tverhoeven
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Tue Jul 07, 2009 6:49 am

Blank Component

Post by tverhoeven » Tue Aug 18, 2009 12:50 pm

Hi,

I've installed the blank component and linked it to the home menu. Now I still see a white space. Is there a way to hide it? So I only have the 3 modules that you see on
http://www.dh-architecten.be/Joomla

I only want to have the 3 buttons and there is going to be a projectslideshow beneath it. but the black module with the white line is the blank component. That one must go away.

User avatar
ooffick
Joomla! Master
Joomla! Master
Posts: 11614
Joined: Thu Jul 17, 2008 3:10 pm
Location: Ireland
Contact:

Re: Blank Component

Post by ooffick » Tue Aug 18, 2009 2:46 pm

Hi,

you would need to change that in your template. e.g. by adding an if clause, or by using a some CSS.

Mod Note: Split from Main Topic.

Olaf
Olaf Offick - Global Moderator
learnskills.org

tverhoeven
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Tue Jul 07, 2009 6:49 am

Re: Blank Component

Post by tverhoeven » Wed Aug 19, 2009 5:25 am

ooffick wrote:Hi,

you would need to change that in your template. e.g. by adding an if clause, or by using a some CSS.

Mod Note: Split from Main Topic.

Olaf
I'm a newbie at that point. can you point me in the right direction or give me a code?
thanks for the reply

User avatar
ooffick
Joomla! Master
Joomla! Master
Posts: 11614
Joined: Thu Jul 17, 2008 3:10 pm
Location: Ireland
Contact:

Re: Blank Component

Post by ooffick » Wed Aug 19, 2009 9:12 am

  1. open the template's index.php file
  2. search for the following line:

    Code: Select all

    <div id="main-content" >
  3. replace it with the following line:

    Code: Select all

    <div id="main-content" class="<?php if(JRequest::getVar('option')=='com_blankcomponent') {echo "blankcomponent";} ?>">
  4. open your css file
  5. add the following to the end of your css file

    Code: Select all

    .blankcomponent {
    display:none;
    }
Olaf
Olaf Offick - Global Moderator
learnskills.org

tverhoeven
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Tue Jul 07, 2009 6:49 am

Re: Blank Component

Post by tverhoeven » Wed Aug 19, 2009 11:10 am

ooffick wrote:
  1. open the template's index.php file
  2. search for the following line:

    Code: Select all

    <div id="main-content" >
  3. replace it with the following line:

    Code: Select all

    <div id="main-content" class="<?php if(JRequest::getVar('option')=='com_blankcomponent') {echo "blankcomponent";} ?>">
  4. open your css file
  5. add the following to the end of your css file

    Code: Select all

    .blankcomponent {
    display:none;
    }
Olaf
Hi,

I went to /templates/mytemplate/index.php and downloaded it. There is no where <div id="main-content">
:-s
I'm using a rockettheme. maybe it is another name?

tverhoeven
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Tue Jul 07, 2009 6:49 am

Re: Blank Component

Post by tverhoeven » Wed Aug 19, 2009 11:27 am

this is the index.php:

<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted index access' );
define( 'YOURBASEPATH', dirname(__FILE__) );

require( YOURBASEPATH.DS."rt_styleswitcher.php");
JHTML::_( 'behavior.mootools' );
global $template_real_width, $leftcolumn_width, $rightcolumn_width, $tstyle;
global $js_compatibility, $menu_rows_per_column, $menu_columns, $menu_multicollevel;
global $showcase_block, $showcase2_block, $showcase3_block, $user1_block, $user2_block, $user3_block, $mainbody_block, $side_block, $user4_block, $user5_block, $user6_block, $user7_block, $user8_block, $user9_block, $splitmenu_col, $frontpage_component;

$live_site = $mainframe->getCfg('live_site');
$template_path = $this->baseurl . '/templates/' . $this->template;
$preset_style = $this->params->get("presetStyle", "style7");
$frontpage_component = $this->params->get("enableFrontpage", "show");
$enable_ie6warn = ($this->params->get("enableIe6warn", 0) == 0)?"false":"true";
$font_family = $this->params->get("fontFamily", "affinity");
$enable_fontspans = ($this->params->get("enableFontspans", 1) == 0)?"false":"true";
$enable_inputstyle = ($this->params->get("enableInputstyle", 1) == 0)?"false":"true";
$inputs_exclusion = $this->params->get("inputsExclusion", "'.content_vote','#login-module'");
$template_width = $this->params->get("templateWidth", "959");
$leftcolumn_width = $this->params->get("leftcolumnWidth", "210");
$rightcolumn_width = $this->params->get("rightcolumnWidth", "260");
$leftinset_width = $this->params->get("leftinsetWidth", "180");
$rightinset_width = $this->params->get("rightinsetWidth", "180");
$splitmenu_col = $this->params->get("splitmenuCol", "rightcol");
$menu_name = $this->params->get("menuName", "mainmenu");
$menu_type = $this->params->get("menuType", "moomenu");
$menu_rows_per_column = $this->params->get("menuRowsPerColumn");
$menu_columns = $this->params->get("menuColumns");
$menu_multicollevel = $this->params->get("menuMultiColLevel", 1);
$default_font = $this->params->get("defaultFont", "default");
$show_date = ($this->params->get("showDate", 1) == 0)?"false":"true";
$clientside_date = ($this->params->get("clientSideDate", 1) == 0)?"false":"true";
$show_logo = ($this->params->get("showLogo", 1) == 0)?"false":"true";
$show_logo_slogan = ($this->params->get("showLogoslogan", 1) == 0)?"false":"true";
$logo_slogan = $this->params->get("logoSlogan", "Apr 09 Design");
$show_textsizer = ($this->params->get("showTextsizer", 1) == 0)?"false":"true";
$show_topbutton = ($this->params->get("showTopbutton", 1) == 0)?"false":"true";
$show_copyright = ($this->params->get("showCopyright", 1) == 0)?"false":"true";
$show_defaultsettings = ($this->params->get("showDefaultsettings", 1) == 0)?"false":"true";
$thirdparty_styling = ($this->params->get("thirdpartyStyling", 1) == 0)?"false":"true";
$js_compatibility = ($this->params->get("jsCompatibility", 0) == 0)?"false":"true";

// Module Block Styles
$showcase_block = $this->params->get("showcaseBlock", "light");
$showcase2_block = $this->params->get("showcase2Block", "light");
$showcase3_block = $this->params->get("showcase3Block", "light");
$user1_block = $this->params->get("user1Block", "light");
$user2_block = $this->params->get("user2Block", "light");
$user3_block = $this->params->get("user3Block", "light");
$mainbody_block = $this->params->get("mainbodyBlock", "light");
$side_block = $this->params->get("sideBlock", "light");
$user4_block = $this->params->get("user4Block", "light");
$user5_block = $this->params->get("user5Block", "light");
$user6_block = $this->params->get("user6Block", "light");
$user7_block = $this->params->get("user7Block", "light");
$user8_block = $this->params->get("user8Block", "light");
$user9_block = $this->params->get("user9Block", "light");

// sortables options
$sortables = ($this->params->get("sortableElements", 1) == 0)?"false":"true";
$sortables_ghost = $this->params->get("sortableGhost", 1);
$sortables_opacity = $this->params->get("sortableOpacity", 0.5);
$sortables_radius = $this->params->get("sortableRadius", 16);

// sortables options vertical
$sortables_ver = ($this->params->get("sortableElementsVer", 1) == 0)?"false":"true";
$sortables_ghost_ver = $this->params->get("sortableGhostVer", 1);
$sortables_opacity_ver = $this->params->get("sortableOpacityVer", 0.5);
$sortables_radius_ver = $this->params->get("sortableRadiusVer", 16);

// sortables options modules
$sortables_modules = ($this->params->get("sortableElementsModules", 1) == 0)?"false":"true";
$sortables_ghost_modules = $this->params->get("sortableGhostModules", 1);
$sortables_opacity_modules = $this->params->get("sortableOpacityModules", 0.5);
$sortables_radius_modules = $this->params->get("sortableRadiusModules", 16);


// moomenu options
$moo_bgiframe = ($this->params->get("moo_bgiframe'","0") == 0)?"false":"true";
$moo_delay = $this->params->get("moo_delay", "500");
$moo_duration = $this->params->get("moo_duration", "600");
$moo_fps = $this->params->get("moo_fps", "200");
$moo_transition = $this->params->get("moo_transition", "Sine.easeOut");

$moo_bg_enabled = ($this->params->get("moo_bg_enabled","1") == 0)?"false":"true";
$moo_bg_over_duration = $this->params->get("moo_bg_over_duration", "500");
$moo_bg_over_transition = $this->params->get("moo_bg_over_transition", "Expo.easeOut");
$moo_bg_out_duration = $this->params->get("moo_bg_out_duration", "600");
$moo_bg_out_transition = $this->params->get("moo_bg_out_transition", "Sine.easeOut");

$moo_sub_enabled = ($this->params->get("moo_sub_enabled","1") == 0)?"false":"true";
$moo_sub_opacity = $this->params->get("moo_sub_opacity","0.95");
$moo_sub_over_duration = $this->params->get("moo_sub_over_duration", "50");
$moo_sub_over_transition = $this->params->get("moo_sub_over_transition", "Expo.easeOut");
$moo_sub_out_duration = $this->params->get("moo_sub_out_duration", "600");
$moo_sub_out_transition = $this->params->get("moo_sub_out_transition", "Sine.easeIn");
$moo_sub_offsets_top = $this->params->get("moo_sub_offsets_top", "0");
$moo_sub_offsets_right = $this->params->get("moo_sub_offsets_right", "1");
$moo_sub_offsets_bottom = $this->params->get("moo_sub_offsets_bottom", "0");
$moo_sub_offsets_left = $this->params->get("moo_sub_offsets_left", "1");

require(YOURBASEPATH . "/rt_styleloader.php");

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<?php
require(YOURBASEPATH . DS . "rt_utils.php");
require(YOURBASEPATH . DS . "rt_head_includes.php");
require(YOURBASEPATH . DS . "rt_sectionrows.php");

$section_rows = new sectionRows($this);
?>
</head>
<body id="ff-<?php echo $fontfamily; ?>" class="<?php echo $fontstyle; ?> <?php echo $tstyle; ?> iehandle">
<!--Begin Top Bar-->
<?php if ($show_date == "true" or $show_textsizer == "true" or $this->countModules('top-left or login or top-right')): ?>
<div id="top-bar">
<div class="wrapper">
<div class="top-bar-padding">
<div class="topbar-strip">
<?php if ($show_date == "true") : ?>
<div class="date-block">
<span class="date1"><?php $now = &JFactory::getDate(); echo $now->toFormat('%A'); ?></span>,
<span class="date2"><?php $now = &JFactory::getDate(); echo $now->toFormat('%B'); ?></span>
<span class="date3"><?php $now = &JFactory::getDate(); echo $now->toFormat('%d'); ?></span>,
<span class="date4"><?php $now = &JFactory::getDate(); echo $now->toFormat('%Y'); ?></span>
</div>
<?php endif; ?>
<?php if ($show_textsizer=="true") : ?>
<div id="accessibility">
<div id="buttons">
<a href="<?php echo JROUTE::_($thisurl . "fontstyle=f-larger"); ?>" title="<?php echo JText::_('INC_FONT_SIZE'); ?>" class="large"><span class="button png">&nbsp;</span></a>
<a href="<?php echo JROUTE::_($thisurl . "fontstyle=f-smaller"); ?>" title="<?php echo JText::_('DEC_FONT_SIZE'); ?>" class="small"><span class="button png">&nbsp;</span></a>
</div>
<div class="textsizer-desc"><?php echo JText::_('TEXT_SIZE'); ?></div>
</div>
<?php endif; ?>
<?php if ($this->countModules('login')) : ?>
<?php if ($user->guest) : ?>
<a href="#" id="lock-button" rel="rokbox[240 210][module=login-module]"><span id="lock-icon" class="login"></span><span><?php echo JText::_('LOGIN'); ?></span></a>
<?php else : ?>
<a href="#" id="lock-button" rel="rokbox[240 210][module=login-module]"><span id="lock-icon"></span><span><?php echo JText::_('LOGOUT'); ?></span></a>
<?php endif; ?>
<?php endif; ?>
</div>
<?php if ($this->countModules('top-left')) : ?>
<div class="topbar-left-mod">
<jdoc:include type="modules" name="top-left" style="xhtml" />
</div>
<?php endif; ?>
<?php if ($this->countModules('top-right')) : ?>
<div class="topbar-right-mod">
<jdoc:include type="modules" name="top-right" style="xhtml" />
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
<!--End Top Bar-->
<!--Begin Header-->
<div id="header">
<div id="header-overlay">
<div class="wrapper">
<?php if ($this->countModules('logo')) : ?>
<div class="logo-module"><jdoc:include type="modules" name="logo" style="xhtml" /></div>
<?php elseif ($show_logo == "true") : ?>
<a href="<?php echo $this->baseurl; ?>" id="logo" class="png"></a>
<?php endif; ?>
<?php if ($this->countModules('search')) : ?>
<jdoc:include type="modules" name="search" style="search" />
<?php endif; ?>
</div>
</div>
</div>
<!--End Header-->
<div id="page-bg"><div id="page-bg2">
<div class="wrapper">
<!--Begin Horizontal Menu-->
<?php if($mtype != "none") : ?>
<div id="horiz-menu" class="<?php echo $mtype; ?>"><div id="horiz-menu2"><div id="horiz-menu3">
<?php if($mtype != "module") : ?>
<?php echo $topnav; ?>
<?php else: ?>
<jdoc:include type="modules" name="toolbar" style="none" />
<?php endif; ?>
<div class="clr"></div>
</div></div></div>
<?php endif; ?>
<!--End Horizontal Menu-->
<div id="vertical-sort">
<?php

echo $section_rows->render();

?>
</div>
</div>
<!--Begin Bottom Section-->
<div id="bottom-bg">
<div class="wrapper">
<?php if ($this->countModules('bottom-menu')) : ?>
<div id="bottom-menu"><div id="bottom-menu2"><div id="bottom-menu3"><div id="bottom-menu-overlay">
<jdoc:include type="modules" name="bottom-menu" style="xhtml" />
</div></div></div></div>
<?php endif; ?>
<?php if ($show_topbutton == "true") : ?>
<div id="top-button"><a href="#" id="top-scroll" class="top-button-desc"><?php echo JText::_('TOP'); ?></a></div>
<?php endif; ?>
</div>
</div>
<?php if ($show_copyright == "true" or $this->countModules('footer or bottom or bottom2 or bottom3')) : ?>
<div id="bottom">
<div class="wrapper">
<?php $mClasses = modulesClasses('case7'); if ($this->countModules('bottom or bottom2 or bottom3')) : ?>
<div id="bottommodules" class="spacer<?php echo $bottommod_width; ?>">
<?php if ($this->countModules('bottom')) : ?>
<div class="block <?php echo $mClasses['bottom'][0]; ?>">
<jdoc:include type="modules" name="bottom" style="bottom" />
</div>
<?php endif; ?>
<?php if ($this->countModules('bottom2')) : ?>
<div class="block <?php echo $mClasses['bottom2'][0]; ?>">
<jdoc:include type="modules" name="bottom2" style="bottom" />
</div>
<?php endif; ?>
<?php if ($this->countModules('bottom3')) : ?>
<div class="block <?php echo $mClasses['bottom3'][0]; ?>">
<jdoc:include type="modules" name="bottom3" style="bottom" />
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($show_copyright == "true") : ?>
<div class="copyright-block">
<div id="copyright">
&copy; <?php echo JText::_('COPYRIGHT'); ?>
</div>
<a href="http://joomlaworld.ru" title="<?php echo JText::_('ROCKETTHEME_JTC'); ?>" id="rocket"></a>
</div>
<?php else: ?>
<div class="footer-mod">
<jdoc:include type="modules" name="footer" style="xhtml" />
</div>
<?php endif; ?>
<?php if ($show_defaultsettings == "true") : ?>
<a href="#" id="clear-cookies"><?php echo JText::_('DEFAULT_SETTINGS'); ?></a>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<!--End Bottom Section-->
</div></div>
<?php if ($this->countModules('debug')) : ?>
<div id="debug-mod">
<jdoc:include type="modules" name="debug" style="none" />
</div>
<?php endif; ?>
<?php if ($this->countModules('login')) : ?>
<div id="login-module">
<?php if ($user->guest) : ?>
<jdoc:include type="modules" name="login" style="xhtml" />
<?php else : ?>
<div class="logout">
<jdoc:include type="modules" name="login" style="xhtml" />
</div>
<?php endif; ?>
</div>
<?php endif; ?>
</body>
</html>

User avatar
ooffick
Joomla! Master
Joomla! Master
Posts: 11614
Joined: Thu Jul 17, 2008 3:10 pm
Location: Ireland
Contact:

Re: Blank Component

Post by ooffick » Wed Aug 19, 2009 1:23 pm

Then it is probably in this one: templates/rt_affinity_j15/rt_sectionrows.php

Olaf
Olaf Offick - Global Moderator
learnskills.org

tverhoeven
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Tue Jul 07, 2009 6:49 am

Re: Blank Component

Post by tverhoeven » Thu Aug 20, 2009 3:39 am

ooffick wrote:Then it is probably in this one: templates/rt_affinity_j15/rt_sectionrows.php

Olaf
Yes, it was in sectionrows.php. I've made the change of the code as given and I'm using style 3 of the template so I went to style3.css and added the given code. Now my homepage is completely blank. :-( any idea?

thanks for the help so far.

User avatar
ooffick
Joomla! Master
Joomla! Master
Posts: 11614
Joined: Thu Jul 17, 2008 3:10 pm
Location: Ireland
Contact:

Re: Blank Component

Post by ooffick » Thu Aug 20, 2009 8:38 am

well, what did you change in the rt_sectionrows.php? How did the line you changed look like?

Olaf
Olaf Offick - Global Moderator
learnskills.org

tverhoeven
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Tue Jul 07, 2009 6:49 am

Re: Blank Component

Post by tverhoeven » Thu Aug 20, 2009 8:51 am

ooffick wrote:well, what did you change in the rt_sectionrows.php? How did the line you changed look like?

Olaf
from:
$t->maincontent .= '<div id="main-body" class="spacing">
<div class="module-'.$mainbody_block.'">';

$main = '
<div id="main-content">;

if ($leftcolumn_width != 0) $main .= '<div id="maincol">';
else $main .= '<div id="maincol2">';

$main .= '
<div class="maincol-padding">';

changed to:


$t->maincontent .= '<div id="main-body" class="spacing">
<div class="module-'.$mainbody_block.'">';

$main = '
<div id="main-content" class="<?php if(JRequest::getVar('option')=='com_blankcomponent') {echo "blankcomponent";} ?>">;

if ($leftcolumn_width != 0) $main .= '<div id="maincol">';
else $main .= '<div id="maincol2">';

$main .= '
<div class="maincol-padding">';

and in style3.css just added
.blankcomponent {
display:none;
}

User avatar
ooffick
Joomla! Master
Joomla! Master
Posts: 11614
Joined: Thu Jul 17, 2008 3:10 pm
Location: Ireland
Contact:

Re: Blank Component

Post by ooffick » Thu Aug 20, 2009 9:14 am

Well, this wouldn't work:

instead of this:

Code: Select all

$main = '
<div id="main-content" class="<?php if(JRequest::getVar('option')=='com_blankcomponent') {echo "blankcomponent";} ?>">;
use this:

Code: Select all

$main = '<div id="main-content" class="';
if(JRequest::getVar('option')=='com_blankcomponent') {
$main .= "blankcomponent";
}
$main .= '">';
Olaf
Olaf Offick - Global Moderator
learnskills.org

tverhoeven
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Tue Jul 07, 2009 6:49 am

Re: Blank Component

Post by tverhoeven » Thu Aug 20, 2009 9:51 am

ooffick wrote:Well, this wouldn't work:

instead of this:

Code: Select all

$main = '
<div id="main-content" class="<?php if(JRequest::getVar('option')=='com_blankcomponent') {echo "blankcomponent";} ?>">;
use this:

Code: Select all

$main = '<div id="main-content" class="';
if(JRequest::getVar('option')=='com_blankcomponent') {
$main .= "blankcomponent";
}
$main .= '">';
Olaf
tried it, but is still not working. My site is still completely blank now. cleared cache and refreshed a few times. no luck...

User avatar
ooffick
Joomla! Master
Joomla! Master
Posts: 11614
Joined: Thu Jul 17, 2008 3:10 pm
Location: Ireland
Contact:

Re: Blank Component

Post by ooffick » Thu Aug 20, 2009 10:01 am

Can you set the error reporting to maximum in Global Configuration?

Olaf
Olaf Offick - Global Moderator
learnskills.org

tverhoeven
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Tue Jul 07, 2009 6:49 am

Re: Blank Component

Post by tverhoeven » Thu Aug 20, 2009 10:27 am

ooffick wrote:Can you set the error reporting to maximum in Global Configuration?

Olaf
this are the error reporting:

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of call_user_func(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in C:\domains\dh-architecten.be\wwwroot\Joomla\templates\rt_affinity_j15\rt_sectionrows.php on line 184

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of call_user_func(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in C:\domains\dh-architecten.be\wwwroot\Joomla\templates\rt_affinity_j15\rt_sectionrows.php on line 266

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of call_user_func(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in C:\domains\dh-architecten.be\wwwroot\Joomla\templates\rt_affinity_j15\rt_sectionrows.php on line 348

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of call_user_func(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in C:\domains\dh-architecten.be\wwwroot\Joomla\templates\rt_affinity_j15\rt_sectionrows.php on line 429

Parse error: syntax error, unexpected T_STRING in C:\domains\dh-architecten.be\wwwroot\Joomla\templates\rt_affinity_j15\rt_sectionrows.php on line 461

the rt_sectionrows.php added
You do not have the required permissions to view the files attached to this post.

User avatar
ooffick
Joomla! Master
Joomla! Master
Posts: 11614
Joined: Thu Jul 17, 2008 3:10 pm
Location: Ireland
Contact:

Re: Blank Component

Post by ooffick » Thu Aug 20, 2009 10:36 am

In line 460, there is an additional $main variable with an unterminated quotation mark:

Code: Select all

						$main = '
Try to remove that line.

Olaf
Olaf Offick - Global Moderator
learnskills.org

tverhoeven
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Tue Jul 07, 2009 6:49 am

Re: Blank Component

Post by tverhoeven » Thu Aug 20, 2009 11:22 am

ooffick wrote:In line 460, there is an additional $main variable with an unterminated quotation mark:

Code: Select all

						$main = '
Try to remove that line.

Olaf
Yes, thank you very much!!! the white space is gone. now only a black box is still there. any idea if it's possible to get that black box away?

http://www.dh-architecten.be/Joomla/index.php

User avatar
ooffick
Joomla! Master
Joomla! Master
Posts: 11614
Joined: Thu Jul 17, 2008 3:10 pm
Location: Ireland
Contact:

Re: Blank Component

Post by ooffick » Thu Aug 20, 2009 11:46 am

Try to find this:

Code: Select all

		$this->maincontent = '<div id="section-row3" class="section-row"><div id="section-row3-inner">
			<div id="main-body-surround" class="spacer">';
and replace it with this:

Code: Select all

if(JRequest::getVar('option')=='com_blankcomponent') {
		$this->maincontent = '<div id="section-row3" class="section-row blankcomponent"><div id="section-row3-inner">
			<div id="main-body-surround" class="spacer">';
} else {
$this->maincontent = '<div id="section-row3" class="section-row"><div id="section-row3-inner">
			<div id="main-body-surround" class="spacer">';
}
Olaf
Olaf Offick - Global Moderator
learnskills.org

tverhoeven
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Tue Jul 07, 2009 6:49 am

Re: Blank Component

Post by tverhoeven » Thu Aug 20, 2009 12:20 pm

ooffick wrote:Try to find this:

Code: Select all

		$this->maincontent = '<div id="section-row3" class="section-row"><div id="section-row3-inner">
			<div id="main-body-surround" class="spacer">';
and replace it with this:

Code: Select all

if(JRequest::getVar('option')=='com_blankcomponent') {
		$this->maincontent = '<div id="section-row3" class="section-row blankcomponent"><div id="section-row3-inner">
			<div id="main-body-surround" class="spacer">';
} else {
$this->maincontent = '<div id="section-row3" class="section-row"><div id="section-row3-inner">
			<div id="main-body-surround" class="spacer">';
}
Olaf
Olaf, you're super!! thank you alot. I would never found that. thank you soooooooooooo much!

kirchart
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Fri Apr 09, 2010 7:13 am

Re: Blank Component

Post by kirchart » Fri Apr 09, 2010 7:47 am

I want to do the same on my site. Does this will work with any template or just with this one? i just don't want to screw my site, since i don't now what im doing.

User avatar
ooffick
Joomla! Master
Joomla! Master
Posts: 11614
Joined: Thu Jul 17, 2008 3:10 pm
Location: Ireland
Contact:

Re: Blank Component

Post by ooffick » Fri Apr 09, 2010 8:31 am

Hi, with a little bit of css you can disable a box which is usually around the component.

Please use firebug to identify the exact CSS rule. To learn how to use Firebug, please click here:

http://docs.joomla.org/Tutorial:Using_F ... la_Website

Mod Note: Duplicate post deleted, please do not post your question twice. Please reply or post your question in the Forum. There is no need to send a private message (PM).

Olaf
Olaf Offick - Global Moderator
learnskills.org

kirchart
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Fri Apr 09, 2010 7:13 am

Re: Blank Component

Post by kirchart » Fri Apr 09, 2010 8:38 am

Thanks for your reply, sorry for the PM.

I use firebug for html, but i have no knowledge on css, maybe if i paste you the index.php code you can give me a hand here?.

Well, here is the code anyway, thank you for your fast reply man :).

<?php
/**
* @package yoo_enterprise Template
* @file index.php
* @version 1.5.0 March 2010
* @author YOOtheme http://www.yootheme.com
* @copyright Copyright (C) 2007 - 2010 YOOtheme GmbH
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

JHTML::_('behavior.mootools');

// include config
include_once(dirname(__FILE__).'/config.php');

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<jdoc:include type="head" />
<link rel="apple-touch-icon" href="<?php echo $template->url ?>/apple_touch_icon.png" />
</head>

<body id="page" class="yoopage <?php echo $this->params->get('columns'); ?> <?php echo $this->params->get('itemcolor'); ?> <?php echo $this->params->get('toolscolor'); ?>">

<?php if($this->countModules('absolute')) : ?>
<div id="absolute">
<jdoc:include type="yoomodules" name="absolute" />
</div>
<?php endif; ?>

<div id="page-body">
<div class="wrapper">

<div id="header">

<div class="header-1">
<div class="header-2">
<div class="header-3">

<div id="toolbar">

<?php if($this->countModules('toolbarleft')) : ?>
<div class="left">
<jdoc:include type="yoomodules" name="toolbarleft" style="yoo" />
</div>
<?php endif; ?>

<?php if($this->countModules('toolbarright')) : ?>
<div class="right">
<jdoc:include type="yoomodules" name="toolbarright" style="yoo" />
</div>
<?php endif; ?>

</div>


<div id="headerbar">

<?php if($this->countModules('headerleft')) : ?>
<div class="left">
<jdoc:include type="yoomodules" name="headerleft" style="yoo" />
</div>
<?php endif; ?>

<?php if($this->countModules('headerright')) : ?>
<div class="right">
<jdoc:include type="yoomodules" name="headerright" style="yoo" />
</div>
<?php endif; ?>

</div>

</div>
</div>
</div>

<div class="header-b1">
<div class="header-b2">
<div class="header-b3"></div>
</div>
</div>

<?php if($this->countModules('logo')) : ?>
<div id="logo">
<jdoc:include type="yoomodules" name="logo" />
</div>
<?php endif; ?>

<?php if($this->countModules('menu')) : ?>
<div id="menu">
<jdoc:include type="yoomodules" name="menu" style="yoo" />
</div>
<?php endif; ?>

<?php if($this->countModules('search')) : ?>
<div id="search">
<jdoc:include type="yoomodules" name="search" />
</div>
<?php endif; ?>

<?php if ($this->countModules('banner')) : ?>
<div id="banner">
<jdoc:include type="yoomodules" name="banner" />
</div>
<?php endif; ?>

</div>
<!-- header end -->

<?php if ($this->countModules('breadcrumbs')) : ?>
<div id="breadcrumbs">

<div class="breadcrumbs-1">
<div class="breadcrumbs-2">

<jdoc:include type="yoomodules" name="breadcrumbs" />

<?php if($this->params->get('date')) : ?>
<div id="date">
<?php echo JHTML::_('date', 'now', JText::_('DATE_FORMAT_LC')) ?>
</div>
<?php endif; ?>

</div>
</div>
</div>
<?php endif; ?>


<?php if ($this->countModules('top + topblock')) : ?>
<div id="top">

<?php if ($this->countModules('top')) : ?>
<jdoc:include type="yoomodules" name="top" wrapper="topbox float-left" layout="<?php echo $this->params->get('top'); ?>" style="yoo" />
<?php endif; ?>

<?php if($this->countModules('topblock')) : ?>
<div class="topblock width100 float-left">
<jdoc:include type="yoomodules" name="topblock" style="yoo" />
</div>
<?php endif; ?>

</div>
<!-- top end -->
<?php endif; ?>


<div id="middle">
<div id="middle-expand">

<div id="main">
<div id="main-shift">

<?php if ($this->countModules('maintop')) : ?>
<div id="maintop">
<jdoc:include type="yoomodules" name="maintop" wrapper="maintopbox float-left" layout="<?php echo $this->params->get('maintop'); ?>" style="yoo" />
</div>
<!-- maintop end -->
<?php endif; ?>

<div id="mainmiddle">
<div id="mainmiddle-expand">

<div id="content">
<div id="content-shift">

<?php if ($this->countModules('contenttop')) : ?>
<div id="contenttop">
<jdoc:include type="yoomodules" name="contenttop" wrapper="contenttopbox float-left" layout="<?php echo $this->params->get('contenttop'); ?>" style="yoo" />
</div>
<!-- contenttop end -->
<?php endif; ?>

<div class="wrapper-t1">
<div class="wrapper-t2">
<div class="wrapper-t3"></div>
</div>
</div>

<div class="wrapper-1">
<div class="wrapper-2">
<div class="wrapper-3">
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>
</div>
</div>

<div class="wrapper-b1">
<div class="wrapper-b2">
<div class="wrapper-b3"></div>
</div>
</div>

<?php if ($this->countModules('contentbottom')) : ?>
<div id="contentbottom">
<jdoc:include type="yoomodules" name="contentbottom" wrapper="contentbottombox float-left" layout="<?php echo $this->params->get('contentbottom'); ?>" style="yoo" />
</div>
<!-- mainbottom end -->
<?php endif; ?>

</div>
</div>
<!-- content end -->

<?php if($this->countModules('contentleft')) : ?>
<div id="contentleft">
<jdoc:include type="yoomodules" name="contentleft" style="yoo" />
</div>
<?php endif; ?>

<?php if($this->countModules('contentright')) : ?>
<div id="contentright">
<jdoc:include type="yoomodules" name="contentright" style="yoo" />
</div>
<?php endif; ?>

</div>
</div>
<!-- mainmiddle end -->

<?php if ($this->countModules('mainbottom')) : ?>
<div id="mainbottom">
<jdoc:include type="yoomodules" name="mainbottom" wrapper="mainbottombox float-left" layout="<?php echo $this->params->get('mainbottom'); ?>" style="yoo" />
</div>
<!-- mainbottom end -->
<?php endif; ?>

</div>
</div>

<?php if($this->countModules('left')) : ?>
<div id="left">
<jdoc:include type="yoomodules" name="left" style="yoo" />
</div>
<?php endif; ?>

<?php if($this->countModules('right')) : ?>
<div id="right">
<jdoc:include type="yoomodules" name="right" style="yoo" />
</div>
<?php endif; ?>

</div>
</div>


<?php if ($this->countModules('bottom + bottomblock')) : ?>
<div id="bottom">

<?php if ($this->countModules('bottom')) : ?>
<jdoc:include type="yoomodules" name="bottom" wrapper="bottombox float-left" layout="<?php echo $this->params->get('bottom'); ?>" style="yoo" />
<?php endif; ?>

<?php if($this->countModules('bottomblock')) : ?>
<div class="bottomblock width100 float-left">
<jdoc:include type="yoomodules" name="bottomblock" style="yoo" />
</div>
<?php endif; ?>

</div>
<!-- bottom end -->
<?php endif; ?>


<?php if ($this->countModules('footer + debug')) : ?>
<div id="footer">

<a class="anchor" href="#page"></a>
<jdoc:include type="yoomodules" name="footer" />
<jdoc:include type="yoomodules" name="debug" />

</div>
<!-- footer end -->
<?php endif; ?>

</div>
</div>

</body>
</html>

User avatar
ooffick
Joomla! Master
Joomla! Master
Posts: 11614
Joined: Thu Jul 17, 2008 3:10 pm
Location: Ireland
Contact:

Re: Blank Component

Post by ooffick » Fri Apr 09, 2010 9:11 am

Do you have a URL, so I can have a look at your site?

Olaf
Olaf Offick - Global Moderator
learnskills.org

kirchart
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Fri Apr 09, 2010 7:13 am

Re: Blank Component

Post by kirchart » Fri Apr 09, 2010 4:22 pm

Hi, yes, you can get see it at www.guali.com.mx, you can see the blank space at the end of this page: http://www.guali.com.mx/principal/index ... es-de-pago

Thanks for your help, i really appreciate it.

User avatar
ooffick
Joomla! Master
Joomla! Master
Posts: 11614
Joined: Thu Jul 17, 2008 3:10 pm
Location: Ireland
Contact:

Re: Blank Component

Post by ooffick » Fri Apr 09, 2010 4:45 pm

For that menu item, try to add a page class suffix e.g. " nowrapper". Once that is there, you can use the following css to remove the blank space:

Code: Select all

.nowrapper .wrapper-b1,
.nowrapper .wrapper-t1,
.nowrapper .wrapper-1 {
display:none;
}
Olaf
Olaf Offick - Global Moderator
learnskills.org

kirchart
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Fri Apr 09, 2010 7:13 am

Re: Blank Component

Post by kirchart » Fri Apr 09, 2010 5:30 pm

Thanks again for your quick reply, this is the first time i use this forum and seem that you guys have a pretty good community here.

Im a newbie on codes, my work is on the SEM stuff, this is my second site, so, can you please tell me where do i need to put this code?

User avatar
ooffick
Joomla! Master
Joomla! Master
Posts: 11614
Joined: Thu Jul 17, 2008 3:10 pm
Location: Ireland
Contact:

Re: Blank Component

Post by ooffick » Fri Apr 09, 2010 6:21 pm

Did you add the page class suffix?
You can add the code to the end of your css file:
http://www.guali.com.mx/principal/templ ... custom.css

Olaf
Olaf Offick - Global Moderator
learnskills.org

kirchart
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Fri Apr 09, 2010 7:13 am

Re: Blank Component

Post by kirchart » Fri Apr 09, 2010 9:11 pm

Hi, thanks for your help, i have added suffix and code to css, but im still getting the white space, any idea why?

User avatar
ooffick
Joomla! Master
Joomla! Master
Posts: 11614
Joined: Thu Jul 17, 2008 3:10 pm
Location: Ireland
Contact:

Re: Blank Component

Post by ooffick » Fri Apr 09, 2010 9:22 pm

Your template doesn't allow the use of the page class suffix.

Olaf
Olaf Offick - Global Moderator
learnskills.org

kirchart
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Fri Apr 09, 2010 7:13 am

Re: Blank Component

Post by kirchart » Fri Apr 09, 2010 9:24 pm

:( ... bad news for me, so isn't possible to get off that white space? i cant sleep with it on my site :(

User avatar
ooffick
Joomla! Master
Joomla! Master
Posts: 11614
Joined: Thu Jul 17, 2008 3:10 pm
Location: Ireland
Contact:

Re: Blank Component

Post by ooffick » Fri Apr 09, 2010 9:27 pm

Try to add this to the head of your template's index.php file:

Code: Select all

<?php if(JRequest::getCmd('option') == "com_blankcomponent"): ?>
<style>
.wrapper-b1,
.wrapper-t1,
.wrapper-1 {
display:none;
}
</style>
<?php endif; ?>
Olaf
Last edited by ooffick on Fri Apr 09, 2010 10:05 pm, edited 1 time in total.
Reason: Edit: Changed spelling mistake
Olaf Offick - Global Moderator
learnskills.org


Locked

Return to “Templates for Joomla! 1.5”