Question

Joomla Help

Asked by: zequestioner

I have set up a joomla theme at secureperspective.com/site. I cannot remove what appears to be some type of body wrapper for the front page article, even through i have removed the front page article itself. Can somebody tell me how to get rid of this?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-10-16 at 11:27:04ID24818989
Topics

Joomla

,

PHP Frameworks

,

Web Frameworks

Participating Experts
3
Points
500
Comments
47

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Joomla Comparison to DNN and Joomla Functionalities Enquiry
    I am starting a website using Joomla and I want to find out any similarities it has with DotNetNuke (DNN) in terms of functionality. I have very good knowledge of DNN so I would appreciate it if someone could answer the following questions regarding Joomla so that I can obser...
  2. joomla css isue
    I am building a site from joomla with a rocket theme template. please go to demo.rockettheme.com and look at the Affinity template then go to Features, Preset Styles, and Style 2, then go to the 'home' page.. you will see three boxes, Sortable Elements, Third-Party Extensions...
  3. steps to joomla wrapper page
    What are the steps to creating a wrapper in Joomla using the "built-in" non extended functions of the latest stable Joomla v1.5.17. I want to create a wrapper page of a google docs page and put it in one of the navigation areas (top, side, or site map) at www.tedpe...
  4. Joomla!
    hi, im new in joomla. how can i remove/edit the text in front page. the text point to nowhere, is just a text like "Popular", "Welcome to the frontpage", etc and icons (PostHeaderIcon). ... im using the template from http://www.joomlatemplatesdo...
  5. Joomla Terms of User Wrapper
    Hi Experts, I'd like to wrap a lengthy terms and conditions document in a joomla article page. It would be nice if it was the typical scoll box that was embedded in the parent page. Any ideas about how I'd do this? Thanks, HNM

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: snowball77Posted on 2009-10-16 at 13:09:03ID: 25592900

Try removing this part of your code from the index.html file in your template.  
Make sure you do a back up first.  Basically you want to remove the id to section-row3.

I would also add some padding to this element too:
.feature-block .feature-pad {
margin-left:15px;
}

The text needs some padding or did you want it like that?  

Try:
.feature-block .feature-pad {
margin-left:15px;
padding-top: 10px;
padding-left: 10px;
}

<div id="section-row3" class="section-row">
<div id="section-row3-inner">
<div id="main-body-surround" class="spacer">
<div id="main-body" class="spacing">
<div class="module-medium">
<div class="body-surround-top">
</div>
<div class="body-surround">
</div>
<div class="body-surround-bottom">
</div>
</div>
</div>
</div>
</div>
</div>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:

Select allOpen in new window

 

by: zequestionerPosted on 2009-10-16 at 13:49:46ID: 25593211

There is no Index.html? I only see Index.php? Where should i look?

 

by: zequestionerPosted on 2009-10-16 at 13:52:50ID: 25593234

I think i found it in here...

/templates/rt_affinity_j15/html

 

by: snowball77Posted on 2009-10-16 at 14:16:21ID: 25593422

It is actually a index.php

 

by: zequestionerPosted on 2009-10-16 at 14:19:09ID: 25593436

Here's the index.php...

I don't see the lines you're talking about..

<?php
/**
* @version		$Id: index.php 11407 2009-01-09 17:23:42Z willebil $
* @package		Joomla
* @copyright	Copyright (C) 2005 - 2009 Open Source Matters. All rights reserved.
* @license		GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
 
// Set flag that this is a parent file
define( '_JEXEC', 1 );
 
define('JPATH_BASE', dirname(__FILE__) );
 
define( 'DS', DIRECTORY_SEPARATOR );
 
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
 
JDEBUG ? $_PROFILER->mark( 'afterLoad' ) : null;
 
/**
 * CREATE THE APPLICATION
 *
 * NOTE :
 */
$mainframe =& JFactory::getApplication('site');
 
/**
 * INITIALISE THE APPLICATION
 *
 * NOTE :
 */
// set the language
$mainframe->initialise();
 
JPluginHelper::importPlugin('system');
 
// trigger the onAfterInitialise events
JDEBUG ? $_PROFILER->mark('afterInitialise') : null;
$mainframe->triggerEvent('onAfterInitialise');
 
/**
 * ROUTE THE APPLICATION
 *
 * NOTE :
 */
$mainframe->route();
 
// authorization
$Itemid = JRequest::getInt( 'Itemid');
$mainframe->authorize($Itemid);
 
// trigger the onAfterRoute events
JDEBUG ? $_PROFILER->mark('afterRoute') : null;
$mainframe->triggerEvent('onAfterRoute');
 
/**
 * DISPATCH THE APPLICATION
 *
 * NOTE :
 */
$option = JRequest::getCmd('option');
$mainframe->dispatch($option);
 
// trigger the onAfterDispatch events
JDEBUG ? $_PROFILER->mark('afterDispatch') : null;
$mainframe->triggerEvent('onAfterDispatch');
 
/**
 * RENDER  THE APPLICATION
 *
 * NOTE :
 */
$mainframe->render();
 
// trigger the onAfterRender events
JDEBUG ? $_PROFILER->mark('afterRender') : null;
$mainframe->triggerEvent('onAfterRender');
 
/**
 * RETURN THE RESPONSE
 */
echo JResponse::toString($mainframe->getCfg('gzip'));
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:

Select allOpen in new window

 

by: j-b-tPosted on 2009-10-17 at 00:32:12ID: 25595124

Looks like this is fixed..? is it?

 

by: snowball77Posted on 2009-10-17 at 22:26:07ID: 25598785

Yes that looks like the index.php file within the root folder.
We need the index.php file that is within your template folder?
Look in rt_affinity_j15  

 

by: zequestionerPosted on 2009-10-19 at 08:56:58ID: 25606388

No, still not fixed.

The index.php i posted above is from the root directory. secureperspective.com/site.

 

by: snowball77Posted on 2009-10-19 at 13:16:25ID: 25608596

Thats right, We need to edit secureperspective.com/site/templates/rt_affinity_j15/index.php

That is the file that we need to remove the lines from

 

by: zequestionerPosted on 2009-10-19 at 14:02:32ID: 25609007

Gotcha.. still don't see that code...

<?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 $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">
							&copy; <?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>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:

Select allOpen in new window

 

by: snowball77Posted on 2009-10-19 at 20:44:05ID: 25610926

Is there a file within the template folder called rt_sectionrows.php?

Can you post it?

 

by: zequestionerPosted on 2009-10-20 at 08:40:05ID: 25615278

Sure, here yah go... i looked for those lines, but it actually calls section-row3 a bunch of times throughout the file..

<?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')
		);
 
		$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')) {
							$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;
	}
}
 
?>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
389:
390:
391:
392:
393:
394:
395:
396:
397:
398:
399:
400:
401:
402:
403:
404:
405:
406:
407:
408:
409:
410:
411:
412:
413:
414:
415:
416:
417:
418:
419:
420:
421:
422:
423:
424:
425:
426:
427:
428:
429:
430:
431:
432:
433:
434:
435:
436:
437:
438:
439:
440:
441:
442:
443:
444:
445:
446:
447:
448:
449:
450:
451:
452:
453:
454:
455:
456:
457:
458:
459:
460:
461:
462:
463:
464:
465:
466:
467:
468:
469:
470:
471:
472:
473:
474:
475:
476:
477:
478:
479:
480:
481:
482:
483:
484:
485:
486:
487:
488:
489:
490:
491:
492:
493:
494:
495:
496:
497:
498:
499:
500:
501:
502:
503:
504:
505:
506:
507:
508:
509:
510:
511:
512:
513:
514:
515:
516:
517:
518:
519:
520:
521:
522:
523:
524:
525:
526:
527:
528:
529:
530:
531:
532:
533:
534:
535:
536:
537:
538:
539:
540:
541:
542:
543:
544:
545:
546:
547:
548:
549:
550:
551:
552:
553:
554:
555:
556:
557:
558:
559:
560:
561:
562:
563:
564:
565:
566:
567:
568:
569:
570:
571:
572:
573:
574:
575:
576:
577:
578:
579:
580:
581:
582:
583:
584:
585:
586:
587:
588:
589:
590:
591:
592:
593:
594:
595:
596:
597:
598:
599:
600:
601:
602:
603:
604:
605:
606:
607:
608:
609:
610:
611:
612:
613:
614:
615:
616:
617:
618:
619:
620:
621:
622:
623:
624:
625:
626:
627:
628:
629:
630:
631:
632:
633:
634:
635:
636:
637:
638:
639:
640:
641:
642:
643:
644:
645:
646:
647:
648:
649:
650:
651:
652:
653:
654:
655:
656:
657:
658:
659:
660:
661:
662:
663:
664:
665:
666:
667:
668:
669:
670:
671:
672:
673:
674:
675:
676:
677:
678:
679:
680:
681:
682:
683:
684:
685:
686:
687:
688:
689:
690:
691:
692:
693:
694:
695:
696:
697:
698:
699:
700:
701:
702:
703:
704:
705:
706:
707:
708:
709:
710:
711:
712:
713:
714:
715:
716:

Select allOpen in new window

 

by: snowball77Posted on 2009-10-20 at 13:52:46ID: 25618466

Gosh, I would be inclined to remove all lines referring to row 3, but that probably will break the code somewhere else so bear with me I have to look a bit deeper into this.
I will be back in touch within 24 hours

 

by: zequestionerPosted on 2009-10-20 at 13:55:16ID: 25618501

I can backup the original php file and test it to see if it breaks... all i do is put a // in front of those lines right?

 

by: snowball77Posted on 2009-10-20 at 14:34:57ID: 25618902

You can do that, or if you are doing a backup, just delete the lines...see how you go
By the way, are you a Rockettheme member?

 

by: zequestionerPosted on 2009-10-20 at 14:45:41ID: 25618972

used to be. but my membership expired.

 

by: zequestionerPosted on 2009-10-20 at 15:34:18ID: 25619334

You were right... I've tried removing everything that references the section-row3 as well as bits and pieces here and there. None of it works..

It seems that box is the 'main content' box. and removing references to that 'main content/body' basically removes it from the rest of the pages on the site. So not only does it get rid of the small box on the front page, it removes all the other content from the rest of the pages b/c there is no 'main body' box to display the content.

Make sense? any other suggestions?

 

by: snowball77Posted on 2009-10-20 at 17:50:24ID: 25619988

ok, I am going to look further into it ok.
Just by the way, have you got any other modules published on the homepage that are not supposed to be there?

 

by: snowball77Posted on 2009-10-20 at 18:05:31ID: 25620038

I am a member on Rockettheme so I am going to ask in their members forums and see what I can find ok

 

by: zequestionerPosted on 2009-10-20 at 18:49:32ID: 25620232

nope, all modules came with the theme. I installed it via the rocketlauncher.zip

 

by: snowball77Posted on 2009-10-20 at 20:19:52ID: 25620598

So which modules do you have installed.
Its possible you have a custom module installed that is empty, but it still making that position show up

 

by: snowball77Posted on 2009-10-20 at 23:03:59ID: 25621096

Can you read this thread:
http://www.rockettheme.com/forum/index.php?f=226&t=68985&hilit=frontpage%20component&rb_v=viewtopic#p359050

It explains it all.

Let me know if you need help or if you need me to explain it if you can't read it.
Good Luck

 

by: zequestionerPosted on 2009-10-21 at 08:49:51ID: 25625190

Sorry, it wants me to log in and my membership expired. Can you copy the post over to EE?

 

by: snowball77Posted on 2009-10-21 at 12:49:58ID: 25627597

open rt_sectionrows.php and find

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

Above, insert
if (!($frontpage_component == 'hide' and JRequest::getVar('view') == 'frontpage')) {

Find

$this->maincontent .= '</div></div>';
$this->maincontent .= $rowhandle;
$this->maincontent .= '</div>';
}

Below insert
}

GOOD LUCK

 

by: zequestionerPosted on 2009-10-22 at 08:58:12ID: 25635709

Added that... still doesn't seem to work... Here's the new rt-sectionrows.php

<?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')) {
		$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')) {
							$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;
	}
}
 
?>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
389:
390:
391:
392:
393:
394:
395:
396:
397:
398:
399:
400:
401:
402:
403:
404:
405:
406:
407:
408:
409:
410:
411:
412:
413:
414:
415:
416:
417:
418:
419:
420:
421:
422:
423:
424:
425:
426:
427:
428:
429:
430:
431:
432:
433:
434:
435:
436:
437:
438:
439:
440:
441:
442:
443:
444:
445:
446:
447:
448:
449:
450:
451:
452:
453:
454:
455:
456:
457:
458:
459:
460:
461:
462:
463:
464:
465:
466:
467:
468:
469:
470:
471:
472:
473:
474:
475:
476:
477:
478:
479:
480:
481:
482:
483:
484:
485:
486:
487:
488:
489:
490:
491:
492:
493:
494:
495:
496:
497:
498:
499:
500:
501:
502:
503:
504:
505:
506:
507:
508:
509:
510:
511:
512:
513:
514:
515:
516:
517:
518:
519:
520:
521:
522:
523:
524:
525:
526:
527:
528:
529:
530:
531:
532:
533:
534:
535:
536:
537:
538:
539:
540:
541:
542:
543:
544:
545:
546:
547:
548:
549:
550:
551:
552:
553:
554:
555:
556:
557:
558:
559:
560:
561:
562:
563:
564:
565:
566:
567:
568:
569:
570:
571:
572:
573:
574:
575:
576:
577:
578:
579:
580:
581:
582:
583:
584:
585:
586:
587:
588:
589:
590:
591:
592:
593:
594:
595:
596:
597:
598:
599:
600:
601:
602:
603:
604:
605:
606:
607:
608:
609:
610:
611:
612:
613:
614:
615:
616:
617:
618:
619:
620:
621:
622:
623:
624:
625:
626:
627:
628:
629:
630:
631:
632:
633:
634:
635:
636:
637:
638:
639:
640:
641:
642:
643:
644:
645:
646:
647:
648:
649:
650:
651:
652:
653:
654:
655:
656:
657:
658:
659:
660:
661:
662:
663:
664:
665:
666:
667:
668:
669:
670:
671:
672:
673:
674:
675:
676:
677:
678:
679:
680:
681:
682:
683:
684:
685:
686:
687:
688:
689:
690:
691:
692:
693:
694:
695:
696:
697:
698:
699:
700:
701:
702:
703:
704:
705:
706:
707:
708:
709:
710:
711:
712:
713:
714:
715:
716:

Select allOpen in new window

 

by: snowball77Posted on 2009-10-22 at 12:49:22ID: 25638228

I have done the same thing here...I didn't compare your file but it may be the same, but would you mind trying this one and make sure your frontpage component is set to hide

<?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')) {
		$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')) {
							$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;
	}
}
 
?>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
389:
390:
391:
392:
393:
394:
395:
396:
397:
398:
399:
400:
401:
402:
403:
404:
405:
406:
407:
408:
409:
410:
411:
412:
413:
414:
415:
416:
417:
418:
419:
420:
421:
422:
423:
424:
425:
426:
427:
428:
429:
430:
431:
432:
433:
434:
435:
436:
437:
438:
439:
440:
441:
442:
443:
444:
445:
446:
447:
448:
449:
450:
451:
452:
453:
454:
455:
456:
457:
458:
459:
460:
461:
462:
463:
464:
465:
466:
467:
468:
469:
470:
471:
472:
473:
474:
475:
476:
477:
478:
479:
480:
481:
482:
483:
484:
485:
486:
487:
488:
489:
490:
491:
492:
493:
494:
495:
496:
497:
498:
499:
500:
501:
502:
503:
504:
505:
506:
507:
508:
509:
510:
511:
512:
513:
514:
515:
516:
517:
518:
519:
520:
521:
522:
523:
524:
525:
526:
527:
528:
529:
530:
531:
532:
533:
534:
535:
536:
537:
538:
539:
540:
541:
542:
543:
544:
545:
546:
547:
548:
549:
550:
551:
552:
553:
554:
555:
556:
557:
558:
559:
560:
561:
562:
563:
564:
565:
566:
567:
568:
569:
570:
571:
572:
573:
574:
575:
576:
577:
578:
579:
580:
581:
582:
583:
584:
585:
586:
587:
588:
589:
590:
591:
592:
593:
594:
595:
596:
597:
598:
599:
600:
601:
602:
603:
604:
605:
606:
607:
608:
609:
610:
611:
612:
613:
614:
615:
616:
617:
618:
619:
620:
621:
622:
623:
624:
625:
626:
627:
628:
629:
630:
631:
632:
633:
634:
635:
636:
637:
638:
639:
640:
641:
642:
643:
644:
645:
646:
647:
648:
649:
650:
651:
652:
653:
654:
655:
656:
657:
658:
659:
660:
661:
662:
663:
664:
665:
666:
667:
668:
669:
670:
671:
672:
673:
674:
675:
676:
677:
678:
679:
680:
681:
682:
683:
684:
685:
686:
687:
688:
689:
690:
691:
692:
693:
694:
695:
696:
697:
698:
699:
700:
701:
702:
703:
704:
705:
706:
707:
708:
709:
710:
711:
712:
713:
714:
715:
716:
717:
718:

Select allOpen in new window

 

by: zequestionerPosted on 2009-10-22 at 13:28:15ID: 25638621

am using your file now.. they're they exact same.

What do you mean by hiding the font page component? I go to the Front Page Manager and there is nothing there.

 

by: snowball77Posted on 2009-10-22 at 14:31:19ID: 25639260

in your index.php file find this: (this is the index.php file within your template folder!)

$frontpage_component    = $this->params->get("enableFrontpage", "show");

and change it to
$frontpage_component    = $this->params->get("enableFrontpage", "hidden");

see how that goes?  

 

by: zequestionerPosted on 2009-10-22 at 17:00:05ID: 25640219

dang it.. i was soo hoping that would work, but it didn't. I did the 'hidden' thing on the file and it looks the same to me. should i try it on the root level index.php?

 

by: zequestionerPosted on 2009-10-22 at 17:02:18ID: 25640234

nope, i don't see anything else referencing this in the root index.php

 

by: snowball77Posted on 2009-10-22 at 18:14:40ID: 25640646

Don't worry about the root index.php file.

Try "hide" instead of hidden and if that doesn't work, try deleting the line all together and see what happens

 

by: zequestionerPosted on 2009-10-22 at 21:47:44ID: 25641420

tried 'hide' and also tried removing the entire line.. no go. why does this seem so complicated? Should i put all the other changes back the way they were and try just the last suggestion?

 

by: snowball77Posted on 2009-10-22 at 22:00:28ID: 25641457

Your kidding!  Well, I guess you can try that, but this was the suggestion given in the Rocketheme about this exact problem so I am not sure what else to suggest.

I will post that it doesn't work and see what we can come up with.  Hang in there!  I assume you have refreshed your browser!

 

by: snowball77Posted on 2009-10-22 at 22:06:24ID: 25641478

Try this file to replace the rt_sectionrows.php - make sure you do a backup.

Do you have Joomsocial installed at all but its disabled?

<?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;
	}
}
 
?>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
389:
390:
391:
392:
393:
394:
395:
396:
397:
398:
399:
400:
401:
402:
403:
404:
405:
406:
407:
408:
409:
410:
411:
412:
413:
414:
415:
416:
417:
418:
419:
420:
421:
422:
423:
424:
425:
426:
427:
428:
429:
430:
431:
432:
433:
434:
435:
436:
437:
438:
439:
440:
441:
442:
443:
444:
445:
446:
447:
448:
449:
450:
451:
452:
453:
454:
455:
456:
457:
458:
459:
460:
461:
462:
463:
464:
465:
466:
467:
468:
469:
470:
471:
472:
473:
474:
475:
476:
477:
478:
479:
480:
481:
482:
483:
484:
485:
486:
487:
488:
489:
490:
491:
492:
493:
494:
495:
496:
497:
498:
499:
500:
501:
502:
503:
504:
505:
506:
507:
508:
509:
510:
511:
512:
513:
514:
515:
516:
517:
518:
519:
520:
521:
522:
523:
524:
525:
526:
527:
528:
529:
530:
531:
532:
533:
534:
535:
536:
537:
538:
539:
540:
541:
542:
543:
544:
545:
546:
547:
548:
549:
550:
551:
552:
553:
554:
555:
556:
557:
558:
559:
560:
561:
562:
563:
564:
565:
566:
567:
568:
569:
570:
571:
572:
573:
574:
575:
576:
577:
578:
579:
580:
581:
582:
583:
584:
585:
586:
587:
588:
589:
590:
591:
592:
593:
594:
595:
596:
597:
598:
599:
600:
601:
602:
603:
604:
605:
606:
607:
608:
609:
610:
611:
612:
613:
614:
615:
616:
617:
618:
619:
620:
621:
622:
623:
624:
625:
626:
627:
628:
629:
630:
631:
632:
633:
634:
635:
636:
637:
638:
639:
640:
641:
642:
643:
644:
645:
646:
647:
648:
649:
650:
651:
652:
653:
654:
655:
656:
657:
658:
659:
660:
661:
662:
663:
664:
665:
666:
667:
668:
669:
670:
671:
672:
673:
674:
675:
676:
677:
678:
679:
680:
681:
682:
683:
684:
685:
686:
687:
688:
689:
690:
691:
692:
693:
694:
695:
696:
697:
698:
699:
700:
701:
702:
703:
704:
705:
706:
707:
708:
709:
710:
711:
712:
713:
714:
715:
716:
717:
718:
719:

Select allOpen in new window

 

by: snowball77Posted on 2009-10-22 at 22:07:09ID: 25641483

Do you have anything installed in User6 or User9 position?

 

by: j-b-tPosted on 2009-10-23 at 01:25:59ID: 25642233

HI I'm still nto 100% sure what your "wrapper issue is but if it's the empty - full-width grey place holder sitting above the vulnerablilty row on eth defualt  - I think Snowball is onto something - you may have some empty or othe rmodule in :either user 1 / user 3 /  left / right //breadcrumb/ main 1 to 6 / inset / 1 or 2....

look at these in detail - see which has something "on" / enabled / publised on your default menu item
PLAN B - otherwise if you are using front page as yoru home page - then go to menu manger and click on thsi menu itme and set eth numbe rof artaicles to show (in params on right  -  to zero - i.e. 0

let us jnow how you go (ps - sorry I'm a lazy typist)

 

by: zequestionerPosted on 2009-10-29 at 15:18:48ID: 25698815

setting the number of articles to 0 doesn't seem to do anything and i don't see any other modules turned on in any user position.

I removed the following from the template.css and it removes it from every other article on the website. But again.. I only want to remove this bordering from the front page..

In the template.css file I eliminated
 
 
 
/* Main Content */
 
#main-body-surround {margin: 0 -5px;}
 
#main-body.spacing {padding: 0 5px;}
 
.body-surround-top {margin: 0 16px;}
 
.body-surround-top2 {margin-left: -16px;}
 
.body-surround-top3 {margin-right: -16px;height: 16px;}
 
.body-surround {margin: 0 16px;}
 
.body-surround2 {margin-left: -16px;}
 
.body-surround3 {margin-right: -16px;padding: 0 15px;overflow: hidden;min-height:70px;}
 
.body-surround-bottom {margin: 0 16px;}
 
.body-surround-bottom2 {margin-left: -16px;}
 
.body-surround-bottom3 {margin-right: -16px;height: 16px;}
 
.mainbody-surround {padding: 15px;overflow: hidden;margin-top: 4px;position: relative;}
 
.mainbody-tl {position: absolute;width: 16px;height: 16px;top: 0;left: 0;}
 
.mainbody-tr {position: absolute;width: 16px;height: 16px;top: 0;right: 0;}
 
.mainbody-bl {position: absolute;width: 16px;height: 16px;bottom: 0;left: 0;}
 
.mainbody-br {position: absolute;width: 16px;height: 16px;bottom: 0;right: 0;}
 
#main-body {position: relative;}
 
#vertical-sort {padding: 0 15px;}

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:

Select allOpen in new window

 

by: j-b-tPosted on 2009-10-29 at 15:51:06ID: 25699001

Ok I think what is happening is basically the borders of main content are showing - even though you have no content - but it actually looks like there is some content - in fact it looks like  a space somewhere. DO you have some article with just a sapce in it somewhere? Or a space above a readmore link or something?

I think the solution lies in using the frontpage component - setting show articles to nothing and if the border still shows then some conditional php in the index.php of the template or an alternative template for the front page will be needed.

So try this first -

Goto menu  - main menu (or whatever the default menu is - teh one with the asterix)
select the HOME menu item
once in there - change type to frontpage and select on right - show NO articles on right hand side

If this doesn't work then copy the entire template and change the index.php so there is no content in it and rename the template assign this template to home menu item.

But you should also check with rockettheme as they are commercial and should be able to help you out with this - as there is probably a line of conditional code that can be added toe the current template index.php to make the front page border not show when the front page is empty etc.

 

by: zequestionerPosted on 2009-10-29 at 16:44:11ID: 25699240

I did turn it to no articles and there are no front page articles at all. I trashed them all

 

by: snowball77Posted on 2009-10-29 at 18:24:56ID: 25699600

it seems that you are only using modules on the frontpage and no content items (articles).
that's why the mainbody area is empty and leaves that white box.
please go to > extensions > template manager > affinity and in the parameters find
"display frontpage component" and set to "hide".


just wondering, which version of the template are you using? try the latest one 1.5.2.
http://www.rockettheme.com/joomla-updates/376-affinity-152-update-released

Finally I have read the thread on this thoroughly in Rocketheme and the only way it was resolved was by editing the php file we were discussing, and by disabling any unwanted modules - especially those in position 6 and 9.  Do you a have poll residing in one of these positions, do you use Jomsocial?


 

by: zequestionerPosted on 2009-10-29 at 21:48:17ID: 25700231

already running 152, i'll check the other stuff.

 

by: old5choolPosted on 2009-10-30 at 22:06:36ID: 25708554

LAWL - rapidshare templates can cause all this mess my friend be careful ::wink::wink::

 

by: zequestionerPosted on 2009-10-31 at 16:05:02ID: 25711955

Nope, got it from rocket theme but past 30 days membership. Don't want to pay.

 

by: snowball77Posted on 2009-11-01 at 00:49:33ID: 25712938

Well I have provided the information from Rocketheme.  Have you checked all the other things yet?
I will happily post this and see what response we get

 

by: zequestionerPosted on 2009-11-03 at 08:27:18ID: 25730620

snowball, if i give you my email would you mind taking this offline and potentially looking at the site for a fee? I am happy to pay via paypal for you to go in and double check all this stuff is correct.

 

by: zequestionerPosted on 2009-11-03 at 09:21:07ID: 25731221

WHOOOOOOOOOOOOHOOOOOOOOOOOO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! YES!!!!!!!!!!!!!!!! YES!!!!!!!!!!!!!!!!!!!! YES!!!!!!!!!!!!!!!!!!!!!!

Its been a long struggle, but i went back through and tried some variations... AND what i found is that using the original index.php with the edited section-rows worked!

THANKS EXPERTS!!!!

 

by: snowball77Posted on 2009-11-03 at 12:11:17ID: 25733012

Thank goodness for that!!

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...