Detecting Frontpage

Detecting Logged In State

get(‘guest’); if($thisuser == 0) { ?> // is this a guest user? //yes. do guest user stuff

//no. do logged-in user stuff

Load Component / Error

getBuffer(‘message’)) : ?>

Message

Load One Module Position

countModules(‘user1’)) : ?>

Load Four Module Positions

countModules(‘user1 or user2 or user3 or user4’)) : ?>

3-Column Class Conditionals //Put in Head section

countModules(‘left and right’) == 0) $contentwidth = “full”; if($this->countModules(‘left or right’) == 1) $contentwidth = “single”; if($this->countModules(‘left and right’) == 1) $contentwidth = “both”; ?>//Then put in Body
<div id=”middleCol” class=””>//Then put in CSS #middleCol.full {width: 100%;} #middleCol.both {float: left; width: 50%;} #middleCol.single {float: left; width: 75%;} Blank Index.htmlNo Direct Access // no direct access defined(‘_JEXEC’) or die(‘Restricted access’); Basic HEAD Tag <!–?php echo ’; ?> <script type=”text/javascript” src=”baseurl ?>/templates/template ?>/js/template.js”>//
<link rel=”stylesheet” type=”text/css” href=”baseurl ?>/templates/template ?>/css/ie6.css” media=”screen, projection” />


<link rel=”stylesheet” type=”text/css” href=”baseurl ?>/templates/template ?>/css/ie7.css” media=”screen, projection” />

Breadcrumbs Module

// ]]>