Hi all, I'm kinda new to the whole Joomla thing, been working with it on an off. However I did not like any of the free templates and got it into my mind to make one for my wife by hand.
I started using DreamWeaver to make a index.php page. Looking at other free templates to see what files I'd need and what folders and all that good stuff.
My main problem is the front page of the Template.
I am trying to make a user bar along the very top of the website. Not under the banner like most do. This area is where it will have some information, a Welcome "Username" spot or a login if not logged in.
Currently the site has no CSS really. More for content mangement and template positioning fixes.
Remember this is all by hand.
Code:
<!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" lang="<?php echo _LANGUAGE; ?>" xml:lang="<?php echo _LANGUAGE; ?>">
<?php
defined('_JEXEC') or die('Restricted access');
include_once("includes/template_config.php");
$url = clone(JURI::getInstance());
$user =& JFactory::getUser();
?>
<head>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/HennaByBekah/css/template.css" type="text/css" />
<?php if ($my->id) { initEditor(); } ?>
<?php mosShowHead(); ?>
<script type="text/javascript"> </script>
<meta name="HennaByBekah" content="true" />
<meta http-equiv="imagetoolbar" content="no" />
</head>
<body id="body">
<table width="100%" height="100%" border="1">
<tr>
<td height="50" width="75" border="1">
<div>
<div id="topbar" style="top:auto">
<p>
<?php if ($user->get('guest')) : ?>
<a href="index.php" title="<?php echo $mainframe->getCfg('sitename');?>"><?php echo $mainframe->getCfg('sitename');?></a>
<?php mospathway()?>
<?php else : ?>
Welcome <?php echo $user->get('name');?> to <a href="index.php" title="<?php echo $mainframe->getCfg('sitename');?>"><?php echo $mainframe->getCfg('sitename');?></a><?php mospathway()?>, your last vist date was: <?php echo $user->get('lastvisitDate');?>
<?php endif; ?></p></div>
</div></td>
<td valign="top" height="50" width="85%" border="1"><p align="left" ><?php mosLoadModules('user4', -2); ?></p></td>
</tr>
<tr> <td colspan="2" height="200" border="1"><?php mosLoadModules('top', -2); ?></td></tr>
<tr> <td width="75" border="1" rowspan="3"><?php mosLoadModules('left', -2); ?><br />
<?php mosLoadModules('user1', -2); ?></td>
<td width="85%" height="150" border="1"><?php mosLoadModules('banner', -2); ?></td>
</tr>
<tr><td width="85%" height="500" border="1"><?php mosMainBody(); ?></p></td>
</tr>
<tr><td height="75" border="1"><?php MosLoadModules('breadcrumbs',-2); ?></td></tr>
<tr width="100%"> <td colspan="2" border="1"><center><jdoc:include type="modules" name="footer" style="xhtml" /></center></td>
</tr>
</table>
</body>
</html>
Currently this is what the site is set up as. I think I'm doing pretty good for only working on it for 2 weeks now. Looking through tutorials I found different people use the php MosLoadModules and the jdoc:include type. I like both to be honest. The jdoc Footer module appears to be the one I configured in the actual website itself. Whereas the php MosLoadModules for the footer appears to be the one in the template which I didn't configure or even make. So it uses some weird different one.
Current site display is
Http://www.HennaByBekah.com/My 2nd problem is that the login part of the main page takes me to the "index.php" with nothing after it and fails to load the website. I cannot find this component in the "Left" module. Do I have to make a new module to compose of my Left side where all the website links will be?
Also I was thinking of replacing the Main Body module with an iframes so that may change.
Thank you for your time.