Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 776
  • Last Modified:

Hide a box in Joomla RocketTheme

Hello,

Have a look at http://crm-program.hu
I use RocketTheme extension.

There is an empy box at the middle I want to hide it.

However this box is not in the Module manager.

The the default menu iten in the main menu is       Articles ยป Front Page

Thank you
0
starhu
Asked:
starhu
  • 4
  • 3
  • 2
1 Solution
 
Jesse MatlockUX EngineerCommented:
This is your 'Article' for the frontpage.. there are a number of was to either hide the article or to place a modules content inside that articles placement..
The easiest way is to do this:

1) Login to joomla admin
2) navigate to menu > main menu
3) click on Home ( i.e. your default menu item )
4) now click on 'change type' button
5) select Internel link  > Articles > Front Page > Front Page Blog Layout
6) Click Save

7) Now open your templates index.php and replace <jdoc:include type="component" /> with:
<?php  if($_GET['view'] !== 'frontpage' ) :?>
     <jdoc:include type="component" />
<?php endif;?>

Open in new window

That will hide your frontpage article WITHOUT adding more modules, plugins or loading more code (eg. slowing down your site).. :)
 
0
 
starhuAuthor Commented:
Hello,

I haven't found that in code.

The code is:

 
<?php
/**
 * @package   Affinity Template - RocketTheme
 * @version   1.5.16 October 13, 2010
 * @author    RocketTheme, LLC http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - 2010 RocketTheme, LLC
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
 *
 * Rockettheme Affinity Template uses the Joomla Framework (http://www.joomla.org), a GNU/GPLv2 content management system
 *
 */
// 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);
	?>

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-23921657-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>


	</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 $show_defaultsettings == "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">
							<?php echo JText::_('COPYRIGHT'); ?>
						</div>
						<a href="http://www.rockettheme.com/" 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>

Open in new window

0
 
Andrew DerseIT ManagerCommented:
I use rocket theme as well.  You will need to check out your template details in the administrative section.

Which theme did you download?  I can see if I can download it and tell you exactly what you need to change.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
starhuAuthor Commented:
Hello,

Affinity. I made a screen shot:

 Affinity
0
 
Andrew DerseIT ManagerCommented:
Unfortunately, RocketTheme thinks I'm pass my limit of Entitlements...so we are going to have to try a different approach.

Your template parameters file is unwritable...you will need to change that first...and then tinker with the parameters there.

Are you sure there are no modules installed in that location?

If not, then some layout portion needs to be turned off in the template parameters...you can do this or I can, but I would need access to your admin site to do that...and the params file needs to be unlocked.
0
 
Jesse MatlockUX EngineerCommented:
From your screenshot, it looks like you already have the Frontpage component turned off,. but the template is still rendering a blank article for the frontpage..  So, given the previous bug this template had when with the frontpage and using JomSocial.. do you have JomSocial installed and just disabled? If so, please upgrade your template to the most current version (1.5.18) and that should fix the issue. If you don't have access to upgrade the template or don't have jomsocial installed at all, then do this:

Make sure to make the menu changes I listed above.
Then, backup (or just rename) your templates index.php file (/templates/rt_affinity_j15/index.php)

And use the code below instead. You can copy, then paste this code into a plain text file.. then save it as index.php and upload it to your TEMPLATES dir.
<?php
$rokstock = JPATH_SITE.DS.'modules'.DS.'mod_rokstock'.DS.'JSON.php';
if (!class_exists("Services_JSON")) {
	if (file_exists($rokstock)) include_once($rokstock);
	else include_once(YOURBASEPATH.DS.'JSON.php');
} else {
	if (!function_exists('json_encode') || !function_exists('json_decode')) {
		function json_encode($data) {
	        $json = new Services_JSON();
	        return( $json->encode($data) );
	    }
	
		function json_decode($data, $output_mode=false) {
			$param = $output_mode ? 16:null;
			$json = new Services_JSON($param);
	        return( $json->decode($data) );
	    }
	}
}
 
class sectionRows {
	
	var $mainSort = false; // Enable/Disable the vertical sorting for Main
	
	var $verticalCookie_name = "affinity_vertical";
	var $horizontalCookie_name = "affinity_horizontal";
	
	var $showcase = "";
	var $module_row1 = "";
	var $maincontent = "";
	var $bottomrow1 = "";
	var $bottomrow2 = "";
	var $joomla = null;
	var $list = array(
		'section-row1' => 'Showcase',
		'section-row2' => 'ModuleRow1',
		'section-row3' => 'MainContent',
		'section-row4' => 'BottomRow1',
		'section-row5' => 'BottomRow2'
	);
	
	var $horDefault = array(
		'section-row1' => array('row1-block1', 'row1-block2', 'row1-block3'),
		'section-row2' => array('row2-block1', 'row2-block2', 'row2-block3'),
		'section-row3' => array('main-body', 'rightcol'),
		'section-row4' => array('row4-block1', 'row4-block2', 'row4-block3'),
		'section-row5' => array('row5-block1', 'row5-block2', 'row5-block3')
	);
		
	function sectionRows(&$joomla) {
		
		$this->joomla = $joomla;
		$this->verticalCookie = $this->loadVerticalCookie();
		$this->horizontalCookie = $this->loadHorizontalCookie();
		
		$this->verticalCookie = array_unique(array_merge($this->verticalCookie, array_keys($this->list)));
		$this->horizontalCookie = $this->array_merge_recursive_distinct($this->horDefault, $this->horizontalCookie);
		
		foreach($this->list as $row => $func) call_user_func(array(&$this, "set" . $func));
		
	}
	
	function render() {
		foreach($this->verticalCookie as $row => $func) echo call_user_func(array(&$this, "get" . $this->list[$func]));
	}
	
	function loadVerticalCookie() {
		if (isset($_COOKIE[$this->verticalCookie_name])) $list = explode(',', urldecode(JRequest::getVar($this->verticalCookie_name,'COOKIE')));
		else $list = array_keys($this->list);
		
		return $list;
	}
	
	function loadHorizontalCookie() {
		if (isset($_COOKIE[$this->horizontalCookie_name])) {
			$list = urldecode(JRequest::getVar($this->horizontalCookie_name,'COOKIE'));
			$list = json_decode($list, true);
			foreach($list as $key => $row) {
				$list[$key] = $row;
			}
		}
		else $list = $this->horDefault;
 
		return $list;
	}
	
	function getShowcase() {
		if (!($this->joomla->countModules('showcase or showcase2 or showcase3'))) return;
		return $this->showcase;
	}
	
	function getModuleRow1() {
		if (!($this->joomla->countModules('user1 or user2 or user3'))) return;
		return $this->module_row1;
	}
	
	function getMainContent() {
		return $this->maincontent;
	}
	
	function getBottomRow1() {
		if (!($this->joomla->countModules('user4 or user5 or user6'))) return;
		return $this->bottomrow1;
	}
	
	function getBottomRow2() {
		if (!($this->joomla->countModules('user7 or user8 or user9'))) return;
		return $this->bottomrow2;
	}
	
	function setShowcase() {
		global $showcase_block, $showmod_width, $showcase2_block, $showcase3_block;
		$mClasses = modulesClasses('case1', false, 'extra');
		$row = 'section-row1';
		
		$this->showcase = '
		<div id="section-row1" class="section-row">
			<div id="showcase-surround">
				<div id="showcase" class="png"><div id="showcase2" class="png"><div id="showcase3" class="png">
					<div class="showcase-inner">
						<div id="showmodules" class="spacer'.$showmod_width.'">';
		
		
		
		function row1block1(&$t, $mClasses) {
			global $showcase_block;
			
			$tmp = "";
			
			if ($t->joomla->countModules('showcase')) {
				$handle = '<div class="move-handle"></div>';
				if ($t->joomla->params->get("sortableElements", 1)  == 0) $handle = "";
				
				$tmp .= '
								<div class="block '.$mClasses['showcase'][0].'" style="width: '.$mClasses['showcase'][1].'px;">
									<div class="module-'.$showcase_block.'">
										<div id="row1-block1" class="row">'.$handle.'';
				$tmp .= body_surround($t->joomla, '<jdoc:include type="modules" name="showcase" style="main" />');
				$tmp .= '
										</div>
									</div>
								</div>';
			}
			
			return $tmp;
		}
		
		function row1block2(&$t, $mClasses) {
			global $showcase2_block;
			
			$tmp = "";
			
			if ($t->joomla->countModules('showcase2')) {
				$handle = '<div class="move-handle"></div>';
				if ($t->joomla->params->get("sortableElements", 1)  == 0) $handle = "";
				
				$tmp .= '
								<div class="block '.$mClasses['showcase2'][0].'" style="width: '.$mClasses['showcase2'][1].'px;">
									<div class="module-'.$showcase2_block.'">
										<div id="row1-block2" class="row">'.$handle.'';
				$tmp .= body_surround($t->joomla, '<jdoc:include type="modules" name="showcase2" style="main" />');
				$tmp .= '
										</div>
									</div>
								</div>';
			}
			
			return $tmp;
		}
		
		function row1block3(&$t, $mClasses) {
			global $showcase3_block;
			
			$tmp = "";
			
			if ($t->joomla->countModules('showcase3')) {
				$handle = '<div class="move-handle"></div>';
				if ($t->joomla->params->get("sortableElements", 1)  == 0) $handle = "";
				
				$tmp .= '
								<div class="block '.$mClasses['showcase3'][0].'" style="width: '.$mClasses['showcase3'][1].'px">
									<div class="module-'.$showcase3_block.'">
										<div id="row1-block3" class="row">'.$handle.'';
				$tmp .= body_surround($t->joomla, '<jdoc:include type="modules" name="showcase3" style="main" />');
				$tmp .= '
										</div>
									</div>
								</div>';
			}
			
			return $tmp;
		}
		
		foreach($this->horizontalCookie[$row] as $block) {
			$block = str_replace('-', '', $block);
			$this->showcase .= call_user_func($block, $this, $mClasses);
		}
		
		$rowhandle = '<div class="row-handle png"></div>';
		if ($this->joomla->params->get("sortableElementsVer", 1)  == 0) $rowhandle = "";
 
		$this->showcase .= '
						</div>
					</div>
				</div></div></div>
			</div>
			'.$rowhandle.'
		</div>';
		
		
		return $this->showcase;
	}
	
	function setModuleRow1() {
		global $mainmod_width, $user1_block, $user2_block, $user3_block;
		$mClasses = modulesClasses('case2'); 
		$row = 'section-row2';
		
		$this->module_row1 = '<div id="section-row2" class="section-row">
			<div id="mainmodules" class="spacer'.$mainmod_width.'">';
			
		function row2block1(&$t, $mClasses) {
			global $user1_block;
			
			$tmp = "";
			
			if ($t->joomla->countModules('user1')) {
				$handle = '<div class="move-handle"></div>';
				if ($t->joomla->params->get("sortableElements", 1)  == 0) $handle = "";
				
				$tmp .= '
					<div class="block '.$mClasses['user1'][0].'" style="width: '.$mClasses['user1'][1].'px;">
						<div class="module-'.$user1_block.'">
							<div id="row2-block1" class="row">'.$handle.'';
				$tmp .= body_surround($t->joomla, '<jdoc:include type="modules" name="user1" style="main" />');
				$tmp .= '
							</div>
						</div>
					</div>';
			}
			
			return $tmp;
		}
		
		function row2block2(&$t, $mClasses) {
			global $user2_block;
			
			$tmp = "";
			
			if ($t->joomla->countModules('user2')) {
				$handle = '<div class="move-handle"></div>';
				if ($t->joomla->params->get("sortableElements", 1)  == 0) $handle = "";
				
				$tmp .= '<div class="block '.$mClasses['user2'][0].'" style="width: '.$mClasses['user2'][1].'px;">
						<div class="module-'.$user2_block.'">
							<div id="row2-block2" class="row">'.$handle.'';
				$tmp .= body_surround($t->joomla, '<jdoc:include type="modules" name="user2" style="main" />');
				$tmp .= '
							</div>
						</div>
					</div>';
			}
			
			return $tmp;
		}
		
		function row2block3(&$t, $mClasses) {
			global $user3_block;
			
			$tmp = "";
			
			if ($t->joomla->countModules('user3')) {
				$handle = '<div class="move-handle"></div>';
				if ($t->joomla->params->get("sortableElements", 1)  == 0) $handle = "";
				
				$tmp .= '<div class="block '.$mClasses['user3'][0].'" style="width: '.$mClasses['user3'][1].'px;">
						<div class="module-'.$user3_block.'">
							<div id="row2-block3" class="row">'.$handle.'';
				$tmp .= body_surround($t->joomla, '<jdoc:include type="modules" name="user3" style="main" />');
				$tmp .= '
							</div>
						</div>
					</div>';
			}
			
			return $tmp;
		}
		
		foreach($this->horizontalCookie[$row] as $block) {
			$block = str_replace('-', '', $block);
			$this->module_row1 .= call_user_func($block, $this, $mClasses);
		}
		
		$rowhandle = '<div class="row-handle png"></div>';
		if ($this->joomla->params->get("sortableElementsVer", 1)  == 0) $rowhandle = "";
		
		$this->module_row1 .= '
			</div>
			'.$rowhandle.'
		</div>';
		
		return $this->module_row1;
	}
	
	
	function setBottomRow1() {
		global $user4_block, $user5_block, $user6_block, $mainmod4_width;
		$mClasses = modulesClasses('case5');
		$row = 'section-row4';
		
		$this->bottomrow1 = '<div id="section-row4" class="section-row">
			<div id="bottom-main">
				<div id="mainmodules4" class="spacer'.$mainmod4_width.'">';
				
				function row4block1(&$t, $mClasses) {
					global $user4_block;
					
					$tmp = "";
					
					if ($t->joomla->countModules('user4')) {
						$handle = '<div class="move-handle"></div>';
						if ($t->joomla->params->get("sortableElements", 1)  == 0) $handle = "";
						
						$tmp .= '
						<div class="block '.$mClasses['user4'][0].'" style="width: '.$mClasses['user4'][1].'px;">
							<div class="module-'.$user4_block.'">
								<div id="row4-block1" class="row">'.$handle.'';
						$tmp .= body_surround($t->joomla, '<jdoc:include type="modules" name="user4" style="main" />');
						$tmp .= '
								</div>
							</div>
						</div>';
					}
					
					return $tmp;
				}
				
				function row4block2(&$t, $mClasses) {
					global $user5_block;
					
					$tmp = "";
				
					if ($t->joomla->countModules('user5')) {
						$handle = '<div class="move-handle"></div>';
						if ($t->joomla->params->get("sortableElements", 1)  == 0) $handle = "";
						
						$tmp .= '
						<div class="block '.$mClasses['user5'][0].'" style="width: '.$mClasses['user5'][1].'px;">
							<div class="module-'.$user5_block.'">
								<div id="row4-block2" class="row">'.$handle.'';
						$tmp .= body_surround($t->joomla, '<jdoc:include type="modules" name="user5" style="main" />');
						$tmp .= '
								</div>
							</div>
						</div>';
					}
					
					return $tmp;
				}
				
				function row4block3(&$t, $mClasses) {
					global $user6_block;
					
					$tmp = "";
					
					if ($t->joomla->countModules('user6')) {
						$handle = '<div class="move-handle"></div>';
						if ($t->joomla->params->get("sortableElements", 1)  == 0) $handle = "";
						
						$tmp .= '
						<div class="block '.$mClasses['user6'][0].'" style="width: '.$mClasses['user6'][1].'px;">
							<div class="module-'.$user6_block.'">
								<div id="row4-block3" class="row">'.$handle.'';
						$tmp .= body_surround($t->joomla, '<jdoc:include type="modules" name="user6" style="main" />');
						$tmp .= '
								</div>
							</div>
						</div>';
					}
					
					return $tmp;
				}
				
				foreach($this->horizontalCookie[$row] as $block) {
					$block = str_replace('-', '', $block);
					$this->bottomrow1 .= call_user_func($block, $this, $mClasses);
				}
				
				$rowhandle = '<div class="row-handle png"></div>';
				if ($this->joomla->params->get("sortableElementsVer", 1)  == 0) $rowhandle = "";
				
				$this->bottomrow1 .= '
				</div>
			</div>
			'.$rowhandle.'
		</div>';
	}
	
	function setBottomRow2() {
		global $user7_block, $user8_block, $user9_block, $mainmod5_width;
		$mClasses = modulesClasses('case6');
		$row = 'section-row5';
		
		$this->bottomrow2 = '<div id="section-row5" class="section-row">
			<div id="bottom-main2">
				<div id="mainmodules5" class="spacer'.$mainmod5_width.'">';
				
				function row5block1(&$t, $mClasses) {
					global $user7_block;
					
					$tmp = "";
					
					if ($t->joomla->countModules('user7')) {
						$handle = '<div class="move-handle"></div>';
						if ($t->joomla->params->get("sortableElements", 1)  == 0) $handle = "";
						
						$tmp .= '
						<div class="block '.$mClasses['user7'][0].'" style="width: '.$mClasses['user7'][1].'px;">
							<div class="module-'.$user7_block.'">
								<div id="row5-block1" class="row">'.$handle.'';
						$tmp .= body_surround($t->joomla, '<jdoc:include type="modules" name="user7" style="main" />');
						$tmp .= '
								</div>
							</div>
						</div>';
					}
					
					return $tmp;
				}
				
				function row5block2(&$t, $mClasses) {
					global $user8_block;
					
					$tmp = "";
					
					if ($t->joomla->countModules('user8')) {
						$handle = '<div class="move-handle"></div>';
						if ($t->joomla->params->get("sortableElements", 1)  == 0) $handle = "";
						
						$tmp .= '
						<div class="block '.$mClasses['user8'][0].'" style="width: '.$mClasses['user8'][1].'px;">
							<div class="module-'.$user8_block.'">
								<div id="row5-block2" class="row">'.$handle.'';
						$tmp .= body_surround($t->joomla, '<jdoc:include type="modules" name="user8" style="main" />');
						$tmp .= '
								</div>
							</div>
						</div>';
					}
					
					return $tmp;
				}
				
				function row5block3(&$t, $mClasses) {
					global $user9_block;
					
					$tmp = "";
					
					if ($t->joomla->countModules('user9')) {
						$handle = '<div class="move-handle"></div>';
						if ($t->joomla->params->get("sortableElements", 1)  == 0) $handle = "";
						
						$tmp .= '
						<div class="block '.$mClasses['user9'][0].'" style="width: '.$mClasses['user9'][1].'px;">
							<div class="module-'.$user9_block.'">
								<div id="row5-block3" class="row">'.$handle.'';
						$tmp .= body_surround($t->joomla, '<jdoc:include type="modules" name="user9" style="main" />');
						$tmp .= '
								</div>
							</div>
						</div>';
					}
					
					return $tmp;
				}
				
				foreach($this->horizontalCookie[$row] as $block) {
					$block = str_replace('-', '', $block);
					$this->bottomrow2 .= call_user_func($block, $this, $mClasses);
				}
				
				$rowhandle = '<div class="row-handle png"></div>';
				if ($this->joomla->params->get("sortableElementsVer", 1)  == 0) $rowhandle = "";
				
				$this->bottomrow2 .= '
				</div>
			</div>
			'.$rowhandle.'
		</div>';
	}
	
	function setMainContent() {
		global $mainbody_block, $editmode, $side_block, $subnav, $active, $splitmenu_col, $leftcolumn_width, $rightcolumn_width, $mainmod2_width, $frontpage_component, $mainmod3_width;
		$row = 'section-row3';
		
		$cases = array(
			'case3' => modulesClasses('case3'),
			'case4' => modulesClasses('case4')
		);
		
		if (!($frontpage_component == 'hide' and JRequest::getVar('view') == 'frontpage') or JRequest::getVar('option') == 'com_community') {
		
		$this->maincontent = '<div id="section-row3" class="section-row"><div id="section-row3-inner">
			<div id="main-body-surround" class="spacer">';
			
		function mainbody(&$t, &$c) {
				global $mainbody_block, $leftcolumn_width, $mainmod2_width, $editmode, $frontpage_component, $mainmod3_width, $leftcolumn_width, $splitmenu_col, $subnav, $active;
 
				$tmp = "";
				
				$tmp .= '<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">';
						
							$mClasses = $c['case3']; 
							if ($t->joomla->countModules('main1 or main2 or main3')) {
							
								$main .= '<div id="mainmodules2" class="spacer'.$mainmod2_width.'">';
							
								if ($t->joomla->countModules('main1')) {
									$main .= '<div class="block '.$mClasses['main1'][0].'">';
									$main .= '<jdoc:include type="modules" name="main1" style="main" />';
									$main .= '</div>';
								}
							
								if ($t->joomla->countModules('main2')) {
									$main .= '<div class="block '.$mClasses['main2'][0].'">';
									$main .= '<jdoc:include type="modules" name="main2" style="main" />';
									$main .= '</div>';
								}
							
								if ($t->joomla->countModules('main3')) {
									$main .= '<div class="block '.$mClasses['main3'][0].'">';
									$main .= '<jdoc:include type="modules" name="main3" style="main" />';
									$main .= '</div>';
								}
							
								$main .= '</div>';
							}
						
							if ($t->joomla->countModules('breadcrumb')) {
								$main .= '<div id="breadcrumbs"><div id="breadcrumbs2"><div id="breadcrumbs3">';
								$main .= '<a href="'.$t->joomla->baseurl.'" id="breadcrumbs-home"></a>';
								$main .= '<jdoc:include type="modules" name="breadcrumb" style="none" />';
								$main .= '</div></div></div>';
							}
 
							if (!($frontpage_component == 'hide' and JRequest::getVar('view') == 'frontpage') or JRequest::getVar('option') == 'com_community') {
							$main .= '
			  							<div class="bodycontent">
											<div class="mainbody-surround">';
						
							if ($t->joomla->countModules('inset2') and !$editmode) {
								$main .= '<div id="inset-block-right"><div class="right-padding">';
								$main .= '<jdoc:include type="modules" name="inset2" style="sidebar" />';
								$main .= '</div></div>';
			   				}
						
							if ($t->joomla->countModules('inset') and !$editmode) {
			   					$main .= '<div id="inset-block-left"><div class="left-padding">';
								$main .= '<jdoc:include type="modules" name="inset" style="sidebar" />';
			   					$main .= '</div></div>';
			   				}
		
							$main .= '
			   									<div id="maincontent-block">
													<jdoc:include type="message" />';
 
								$main .= '<jdoc:include type="component" />';
						
							$main .= '
			   									</div>
												<div class="mainbody-tl"></div><div class="mainbody-tr"></div><div class="mainbody-bl"></div><div class="mainbody-br"></div>
											</div>
			  							</div>';	
							}
													
							$mClasses = $c['case4']; 
							if ($t->joomla->countModules('main4 or main5 or main6')) {
								$main .= '<div id="mainmodules3" class="spacer'.$mainmod3_width.'">';
 
								if ($t->joomla->countModules('main4')) {
									$main .= '<div class="block '.$mClasses['main4'][0].'">';
									$main .= '<jdoc:include type="modules" name="main4" style="main" />';
									$main .= '</div>';
								}
							
								if ($t->joomla->countModules('main5')) {
									$main .= '<div class="block '.$mClasses['main5'][0].'">';
									$main .= '<jdoc:include type="modules" name="main5" style="main" />';
									$main .= '</div>';
								}
							
								if ($t->joomla->countModules('main6')) {
									$main .= '<div class="block '.$mClasses['main6'][0].'">';
									$main .= '<jdoc:include type="modules" name="main6" style="main" />';
									$main .= '</div>';
								}
							
								$main .= '
										</div>';
							}
						
							$main .= '
			  						</div>
			  					</div>    
							</div>';
						
							# Begin Left Column
						
							if ($leftcolumn_width != 0) {
								$main .= '
									<div id="leftcol">
					                	<div id="leftcol-bg">';
							
								if ($subnav and $splitmenu_col=="leftcol") {
//									$main .= '<div class="sidenav-block">';
									$main .= $subnav;
//									$main .= '</div>';
								}
							
								$main .= '<jdoc:include type="modules" name="left" style="sidebar" />';
							
								if (!isset($active)) {
									$main .= '<jdoc:include type="modules" name="inactive" style="sidebar" />';
								}
							
								$main .= '
					                	</div>
									</div>';
							}
							# End Left Column
						
						
			$tmp .= body_surround($t->joomla, $main);
			
			$handle = '<div class="move-handle"></div>';
			if ($t->joomla->params->get("sortableElements", 1)  == 0) $handle = "";
			
			$tmp .= '
					</div>
					'.$handle.'
				</div>';
			
			return $tmp;
		}
		
		// 'main-body', 'rightcol'
		function rightcol(&$t, &$c) {
			global $rightcolumn_width, $side_block, $subnav, $splitmenu_col;
			
			$tmp = "";
			
			# Begin Right Side Block
			if ($rightcolumn_width != 0) {
				$tmp .= '
					<div id="rightcol">
						<div class="rightcol-padding">
							<div class="module-'.$side_block.'">';
						
							$right = "";
							if ($subnav and $splitmenu_col=="rightcol") {
								$right .= '<div class="sidenav-block">'.$subnav.'</div>';
							}
							$right .= '<jdoc:include type="modules" name="right" style="sidebar" />';
						
				$tmp .= body_surround($t->joomla, $right);
 
				$handle = '<div class="move-handle"></div>';
				if ($t->joomla->params->get("sortableElements", 1)  == 0) $handle = "";
 
				$tmp .= '		
							</div>
						</div>
						'.$handle.'
					</div>';
					
				return $tmp;
			}
			# End Right Side Block
		}
				
		foreach($this->horizontalCookie[$row] as $block) {
			$block = str_replace('-', '', $block);
			$this->maincontent .= call_user_func($block, $this, $cases);
		}
		
		$rowhandle = '<div class="row-handle png"'.((!$this->mainSort) ? ' style="display: none;"' : '') .'></div>';
		if ($this->joomla->params->get("sortableElementsVer", 1)  == 0) $rowhandle = "";
		
		$this->maincontent .= '</div></div>';
		$this->maincontent .= $rowhandle;
		$this->maincontent .= '</div>';
	}
}
	
	function &array_merge_recursive_distinct(&$array1, &$array2)
	{
	  $merged = $array1;
	  if (is_array($array2))
	    foreach ($array2 as $key => $val)
	      if (is_array($array2[$key]))
	        $merged[$key] = is_array($merged[$key]) ? $this->array_merge_recursive_distinct($merged[$key], $array2[$key]) : $array2[$key];
	      else
	        $merged[$key] = $val;
 
	  return $merged;
	}
}
 
?>

Open in new window

0
 
starhuAuthor Commented:
Hello,

I upgraded to 1.5.18 but the box still can be seen.
0
 
Jesse MatlockUX EngineerCommented:
interesting.. and did you make the adjustments I showed above with your new templates rt_sectionrows.php file (NOTE: I mis-typed before, this is NOT for the templates index.php file, but for your templates rt_sectionrows.php file :O)

I would rename your templates rt_sectionrows.php file and then upload the code I posted above, to a new file with that name (rt_sectionrows.php).. that will work.
0
 
Jesse MatlockUX EngineerCommented:
Excellent... glad that worked for you.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now