The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Again module titles
PostPosted: Mon Aug 06, 2012 10:32 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sat Oct 15, 2011 5:14 pm
Posts: 2
Hi people, writing for the first time... Same problem like 50 people before me, tried everyyyyything, including adding xhtml... bla bla bla Site in question is http://www.prijavise.org.rs and as you can see modules have title, but no style attached to it. Template I am using is http://www.freshjoomlatemplates.com/joomla-2-5-business-template/ Help, please...



This is my Index.php


Code:
<?php /**  * @copyright   Copyright (C) 2012 - All Rights Reserved. **/
defined( '_JEXEC' ) or die( 'Restricted access' );
define( 'YOURBASEPATH', dirname(__FILE__) );
?>
<?php include (YOURBASEPATH.DS . "/modules/req_parameters.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; ?>" dir="<?php echo $this->direction; ?>">
<head>
<script type="text/javascript">if (typeof jQuery == 'undefined') { document.write(unescape("%3Cscript src='<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/modules/jquery171.js' type='text/javascript'%3E%3C/script%3E")); } </script>
<script type="text/javascript">jQuery.noConflict();</script>
<?php require(YOURBASEPATH . DS . "functions.php"); ?>
<?php require(YOURBASEPATH . DS . "/modules/req_css.php"); ?>
<?php if ($this->params->get( 'jcopyright' )) : ?> <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/modules/jcopyright.js"></script><?php endif; ?>
<?php if ($this->params->get( 'jtabs' )) : ?> <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/modules/jtabs.js"></script><?php endif; ?>
<?php if ($this->params->get( 'jscroll' )) : ?> <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/modules/jscroll.js"></script><?php endif; ?>
</head>

<body class="background">
<div id="main">
<div id="header-w">
       <div id="header">
      <div class="topmenu">
      <div class="topleft"></div><div class="topright"><jdoc:include type="modules" name="position-1" style="none" /></div>
      <jdoc:include type="modules" name="position-0" style="none" />
      
      </div>
           <?php if ($this->countModules('logo')) : ?>
                <div class="logo">
                   <jdoc:include type="modules" name="logo" style="none" />
                </div>
            <?php else : ?>       
               <a href="<?php echo $this->baseurl ?>/">
         <img src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/images/logo.png" border="0" class="logo">
         </a>
            <?php endif; ?>
      <div class="slogan"><?php if ($this->params->get( 'slogandisable' )) : ?><?php echo ($slogan); ?><?php endif; ?></div>
            <?php if ($this->countModules('top')) : ?>
                <div class="top">
                    <jdoc:include type="modules" name="top" style="none"/>
                </div>
            <?php endif; ?>                         
   </div>
</div>
<div class="shadow">
<div id="wrapper">
           <div id="navr">
         <div class="searchbutton"><!-- Social Buttons -->
<?php if ($this->params->get( 'socialbuttons' )) : ?><?php include "modules/socialbuttons.php"; ?><?php endif; ?>
<!-- END-->   </div>
      <div id="navl">
      <div id="nav">
            <div id="nav-left"><jdoc:include type="modules" name="menuload" style="none" /></div>
   <div id="nav-right">
   <?php include "html/com_content/archive/component.php"; ?>
<!-- Slideshow -->
<?php $menu = JSite::getMenu(); ?>
<?php $lang = JFactory::getLanguage(); ?>
<?php if ($menu->getActive() == $menu->getDefault($lang->getTag())) { ?>
<?php if ($this->params->get( 'slidedisable' )) : ?>   <?php include "modules/slideshow.php"; ?><div class="slideshadow2"> <!-- menushadow --></div><?php endif; ?>
<?php } ?>      
<!-- END Slideshow -->      
      <?php if ($this->countModules('breadcrumb')) : ?>
           <jdoc:include type="modules" name="breadcrumb"  style="none"/>
        <?php endif; ?>


   <div id="message">
       <jdoc:include type="message" />
   </div>   
            <?php if($this->countModules('left')) : ?>
<div id="leftbar-w">
    <div id="sidebar">
        <jdoc:include type="modules" name="left" style="xhtml" /></div>   
</div>
    <?php endif; ?>
    <?php if($this->countModules('left') xor $this->countModules('right')) $maincol_sufix = '_md';
     elseif(!$this->countModules('left') and !$this->countModules('right'))$maincol_sufix = '_bg';
     else $maincol_sufix = ''; ?>   
<div id="centercontent<?php echo $maincol_sufix; ?>">
<div class="clearpad"><jdoc:include type="component" /> </div></div>   
    <?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
   
<div id="rightbar-w">
<!-- Tabs -->
<?php if ($this->params->get( 'jtabs' )) : ?><?php include "modules/jtabs-content.php"; ?><?php endif; ?>
<!-- END Tabs -->
    <div id="sidebar">
         <jdoc:include type="modules" name="right" style="xhtml" />
    </div>
   <?php if ($this->params->get( 'googletranslate' )) : ?>  <?php include "modules/googletranslate.php"; ?><?php endif; ?>
    </div>
    <?php endif; ?>
<div class="clr"></div>
<?php $menu = JSite::getMenu(); ?>
<?php $lang = JFactory::getLanguage(); ?>
<?php if ($menu->getActive() == $menu->getDefault($lang->getTag())) { ?>
<div style="font-size:10px">Powered by <a href="http://www.freetemplatespot.com/" title="joomla 2.5 templates free" target="blank">FTS</a></div>
<?php } ?>
        </div>         
        </div>     
<div class="user1"><jdoc:include type="modules" name="user1" style="xhtml" /></div>
<div class="user2"><jdoc:include type="modules" name="user2" style="xhtml" /></div>
<div class="user3"><jdoc:include type="modules" name="user3" style="xhtml" /></div>
<!--- To Top -->
<div style="display:none;" class="nav_up" id="nav_up"></div>
<!-- End -->
<div id="bottom">
   
    <div class="tg">
            <jdoc:include type="modules" name="copyright"/> <?php echo date('l \t\h\e jS');?>.
         <?php if ($this->params->get( 'footerdisable' )) : ?><?php echo ($footertext); ?><?php endif; ?>
   </div>
</div></div></div>
<div class="back-bottom"><!--shadow top--> </div>
</div>
</div>
<div class="by"></div>
</body>
</html>



And this is my modules.php


Code:
* Module chrome for rendering the module in a clean manner
 */
function modChrome_jaw($module, &$params, &$attribs)
{
   if (!empty ($module->content)) : ?>
   <div class="module">
        <div class="inner">
      <?php if ($module->showtitle != 0) : ?>
      <div class="h3c"><div class="h3r"><div class="h3l"><h3 class="module-title"><?php echo $module->title; ?></h3></div></div></div>
      <?php endif; ?>
       <div class="module-body">
           <?php echo $module->content; ?>
        </div>
        </div>
   </div>
   <?php endif;   
}
?>


Top
 Profile  
 
 Post subject: Re: Again module titles
PostPosted: Tue Aug 07, 2012 11:32 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Aug 06, 2012 10:14 pm
Posts: 1
Anyone? I really cant find solution on my own...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 



Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group