Sunday, July 8, 2012

Joomla ifreedom-fjt template slideshow on all page

I was customising a joomla 2.5 template which is ifreedom-fjt,i went through a tuff problem that was the slideshow did'nt working on every page except home page only, i googled on the internet for the solution for about two hours and then got my required solution.it is working perfectly now.
to solve this you have to open the template folder, open the index.php file and have to delete few lines from the template.that lines are

to solve the problem you have to open the template folder, open the index.php file and find these lines...
< ?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"; ?>
< ?php endif; ?>
< ?php } ?>
and delete everything but this line...
< ?php if ($this->params->get( 'slidedisable' )) : ?> < ?php include "modules/slideshow.php"; ?>
< ?php endif; ?>
i have also uploaded the costomised index.php file code here...


----------------------------------------------code starts from here------------------------


<?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>
<?php if ($this->params->get( 'jchecker' )) : ?>
<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 endif; ?>
<?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 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 if ($this->params->get( 'slidedisable' )) : ?>   <?php include "modules/slideshow.php"; ?><!-- menushadow --></div><?php endif; ?>

<!-- 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="jaw" /></div></div><?php endif; ?>
<?php $menu = JSite::getMenu(); ?><?php $lang = JFactory::getLanguage(); ?><?php if ($menu->getActive() == $menu->getDefault($lang->getTag())) { ?>
<?php } ?>
    <?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="jaw" />
    </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"><a href="http://www.freetemplatespot.com" title="joomla 2.5 templates free" target="blank">Joomla 2.5 templates free</a> by <a href="http://www.freetemplatespot.com" title="joomla 2.5 templates" target="blank">FreeTemplateSpot</a></div>
<?php } ?>
        </div>    
        </div>
<!--- To Top -->
<div style="display:none;" class="nav_up" id="nav_up"></div>
<!-- End -->
<div id="bottom">
<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>
    <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>
</body>
</html>

15 comments:

  1. I can´t see the changes on my web site

    ReplyDelete
  2. thank you so much!!!!!!!!!!!!!

    ReplyDelete
  3. i hope it worked for you, because i tested it diffrnt times on that template...:)
    thanks for the response there are more stuff coming regarding web, stay tuned...:)

    ReplyDelete
  4. mil gracias por la ayuda , lo busque por todos lados
    este es mi correo sisteider@hotmail.com

    ReplyDelete
  5. gracias desde colombia sur america , justo lo que estaba buscando , llevaba 2 semanas en esto , este es mi correo sisteider@hotmail.com

    ReplyDelete
  6. cant understand, write in english please...:)

    ReplyDelete
  7. When I test the customized index.php there was a couple of problems:
    1.- In the customized script there is a change to the original link of template owners(the only thing they ask not to change), but that is simple to solve, writing the correct link, other ways the script does not work.
    2.- The slidshow remains in all the pages but not in the correct position making tje script looks bad, and also shows some estrange carachters.

    Hope you can fix it.

    Best regards

    ReplyDelete
  8. Hi,
    Could you help me to solve a problem please.
    I'm using 4 languages on my web site. And when visitors comes to site i want to show them different homepage slideshow in their languages. Ex: I tried to show it only on english home page by showing options. But it seems on every home page. Nothing changed. Is it possible to make different slideshows modules for different language home pages ? Thank you.

    ReplyDelete
  9. Thank you very much!!

    ReplyDelete
  10. How i go to template folder ? >.<

    ReplyDelete
  11. J'essaie de changer la couleur du menu principal template ifreedom, merci

    ReplyDelete
  12. I try to change the color of the main menu template ifreedom, thank you MD

    ReplyDelete