Look the problem now are:
1. Do not understand how to code CSS correctly so the new module shows up.
2. If you open the home page with the /?tp=1 at the end you will see all positions even the GKchat (does not appear without the code just written - maybe hidden ?)
3. Where to put the DIV (choose the right div on DEFAULT PHP file)
TEMPLATE .css
- Code: Select all
/* Logo */
h1#gkLogo { margin: 0; padding: 0; width: 193px; height: 50px; float: left; }
h1#gkLogo a img { display: block; height: 50px; margin: 0; width:193px; top: 0; left:0; }
h1#gkLogo a.cssLogo { background: url('../images/logohome.png') no-repeat 0 0; display: block; height: 53px; margin: 0; text-indent: -999em; width:193px; top: 0; left:0; z-index: 1001; }
h1.gkLogo.text { width: auto; float: left; margin: 0; }
h1.gkLogo.text a { display: block; font-size: 24px; line-height: 35px; font-weight:normal; text-indent: 0; float: left; }
h1.gkLogo.text a { padding: 0; width: auto!important; }
h1.gkLogo.text a > span { color: #000; padding: 0 7px; display: block; font-size: 24px; line-height: 35px; float: left; }
h1.gkLogo.text .gkLogoSlogan { font-size: 11px!important; line-height: 35px; color: #111!important; margin: 0 0 0 8px; height: 45px; display: block; float:left; }
/* Chat Position */
h1#gkchat{ margin: 200px 0 0 0; padding: 0; display:block; width: 400px; height: 300px; float: left; }
DEFAULT.PHP
- Code: Select all
<body<?php echo $tpl_page_suffix; ?>>
<?php if($this->browser->get('browser') == 'ie6' && $this->getParam('ie6bar', '1') == 1) : ?>
<div id="gkInfobar"><a href="http://browsehappy.com"><?php echo JText::_('TPL_GK_LANG_IE6_BAR'); ?></a></div>
<?php endif; ?>
<?php if(isset($_COOKIE['gkGavernMobile'.JText::_('TPL_GK_LANG_NAME')]) &&
$_COOKIE['gkGavernMobile'.JText::_('TPL_GK_LANG_NAME')] == 'desktop') : ?>
<div class="mobileSwitch gkWrap">
<a href="javascript:setCookie('gkGavernMobile<?php echo JText::_('TPL_GK_LANG_NAME'); ?>', 'mobile', 365);window.location.reload();"><?php echo JText::_('TPL_GK_LANG_SWITCH_TO_MOBILE'); ?></a>
</div>
<?php endif; ?>
<div id="gkPage" class="gkWrap">
<div id="gkPageWrap">
<div id="gkPageTop" class="clearfix<?php if($this->getParam('top_color', 'dark') == 'dark') echo ' dark'; ?>">
<?php $this->loadBlock('logo'); ?>
<?php if($this->modules(‘chat’)) : ?>
<div id="gkchat">
<jdoc:include type="modules" name="chat" style="<?php echo $this->module_styles['chat']; ?>" />
</div>
<?php endif; ?>
<div id="gkMainMenu">