Welcome to the JoomlaWorks Community Forum | If you have a question, please search before posting!

Author Topic: HOW TO: Create a new "module position" and add Frontpage Slideshow there!  (Read 78416 times)

0 Members and 2 Guests are viewing this topic.

Offline Fotis

  • JoomlaWorks Team / Forum Administrator
  • Administrator
  • Hero Member
  • *****
  • Posts: 4172
  • K2 wins "Joomla! component of 2010" at J & Beyond!
    • View Profile
    • JoomlaWorks
The process is very simple and might come handy when your template's CSS is conflicting with FPSS. So, in that case, the best thing to do is create a new module position in your template.


FOR JOOMLA 1.0.x & MAMBO
-----------------------------------------
Code: [Select]
<?php mosLoadModules('fpss',-2);?>

Add this right before
Code: [Select]
<?php mosMainBody();?>

...cause you probably wanna add FPSS right above the main content area. Of course you can add this code anywhere you want on you template.  ;)

Now go to the admin page of Joomla, navigate to Site >> Templates >> Module Positions, add fpss and SAVE.

Navigate to the Module manager (Modules >> Site Modules), click on "Frontpage Slideshow" and simply change the position in which it is published from whatever you had before to "fpss".

Simple.  ;)


FOR JOOMLA 1.5.x
-----------------------------------------
The J1.5 changes to the above examples are...

Code: [Select]
<jdoc:include type="modules" name="fpss" />
instead of
Code: [Select]
<?php mosLoadModules('fpss',-2);?>

and to add this "fpss" module position in joomla, you need to edit the XML file of your joomla's template. For example, if you're using the default "rhuk_milkyway" template, simply navigate to templates/rhuk_milkyway, edit templateDetails.xml and add the line
Code: [Select]
<position>fpss</position>
at the bottom of the "positions" block, so

Code: [Select]
	<positions>
<position>breadcrumb</position>
<position>left</position>
<position>right</position>
<position>top</position>
<position>user1</position>
<position>user2</position>
<position>user3</position>
<position>user4</position>
<position>footer</position>
<position>debug</position>
<position>syndicate</position>
</positions>

will become


Code: [Select]
	<positions>
<position>breadcrumb</position>
<position>left</position>
<position>right</position>
<position>top</position>
<position>user1</position>
<position>user2</position>
<position>user3</position>
<position>user4</position>
<position>footer</position>
<position>debug</position>
<position>syndicate</position>
                <position>fpss</position>
</positions>

That's it! ;)
« Last Edit: August 17, 2011, 07:09:23 PM by Fotis »
Frontpage Slideshow by JoomlaWorks! The no.1 slideshow system for Joomla!

Looking for an easy, yet stylish way to publish image galleries on your Joomla! site?
Check out Simple Image Gallery Pro!

K2 voted "Joomla! component of 2010" at J and Beyond 2010, the international Joomla! conference.

Offline bluesardine

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
    • Competa card
Re: How to create a new "module position" and add FPSS there!
« Reply #1 on: January 29, 2008, 01:26:10 AM »
WOW
I am very new to joomla, thanks for this, i presume i can reposition any item like this? perfect moved like a dream.

Great fix, great product, Great GURU

thanks Pete
Signatures appear only for members with more than 30 posts

Offline PerUlv

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: How to create a new "module position" and add FPSS there!
« Reply #2 on: February 09, 2008, 01:10:49 PM »
I had this problem as well. Thank you for the help. I have another issue as well. When i display the FPSS i dont want the content to show. I want FPSS to cover the whole frontpage. When implementing this solution i get this result

www.undertun.com [nofollow]  -> Press Hjem / Home

Any idea how to not show content on the frontpage?
Signatures appear only for members with more than 30 posts

Offline woomera

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: How to create a new "module position" and add FPSS there!
« Reply #3 on: February 10, 2008, 10:03:53 AM »
thanks alot for the tip.i have contacted joomlart for helping me on this but didnt get nay reply and i was about to send an email to you guys  ;D
Signatures appear only for members with more than 30 posts

Offline lovelystar

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: How to create a new "module position" and add FPSS there!
« Reply #4 on: March 17, 2008, 10:07:49 AM »
just a word, when I use the code above on my template index.php file, it outputs all my articles/contents twice. So that doesn't work.
Signatures appear only for members with more than 30 posts

Offline semakka

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: How to create a new "module position" and add FPSS there!
« Reply #5 on: March 18, 2008, 10:27:43 PM »
The process is very simple and might come handy when your template's CSS is conflicting with FPSS. So, in that case, the best thing to do is create a new module position in your template:

Code: [Select] [nofollow]
<?php mosLoadModules('fpss',-2);?>

Add this right before
Code: [Select] [nofollow]
<?php mosMainBody();?>

...cause you probably wanna add FPSS right above the main content area. Of course you can add this code anywhere you want on you template.  ;)

Now go to the admin page of Joomla, navigate to Site >> Templates >> Module Positions, add fpss and SAVE.

Navigate to the Module manager (Modules >> Site Modules), click on "Frontpage Slideshow" and simply change the position in which it is published from whatever you had before to "fpss".

Simple.  ;)

Really, great component, great module

All above works fine for my website when browsing with Firefox or Opera but when it comes to the "migthy" IE, something, maybe the stilyng, makes the font very small... like 1 or 2px, unreadable.

Any ideea?

something from the template.... i'm really out of ideeas..

Silvius
Signatures appear only for members with more than 30 posts

Offline lovelystar

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: How to create a new "module position" and add FPSS there!
« Reply #6 on: March 19, 2008, 06:51:34 AM »
my bad, I added both lines instead just the top one.
Signatures appear only for members with more than 30 posts

Offline Narok

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: How to create a new "module position" and add FPSS there!
« Reply #7 on: March 19, 2008, 10:20:02 AM »
Does this solution also work on 1.5.1 joomla?
Signatures appear only for members with more than 30 posts

Offline belarri

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: How to create a new "module position" and add FPSS there!
« Reply #8 on: March 19, 2008, 04:59:52 PM »
just a word, when I use the code above on my template index.php file, it outputs all my articles/contents twice. So that doesn't work.
it works but without putting the mosmainbody before....almost for me(very very simple thanks).... but i have a problem  with same index.php in server ...double image but in localhost not¡ :(

i have no problems with changing permissions and i dont know where to start...im using a template with mootols... ja dravity in both... which can be the issue if it works in localhost?
sorry my english¡ ;)

sorry, its permission problem...im probing on both at once and i had type the line for calling template css in localhost twice...i will mail to host...thank you for all¡
« Last Edit: March 19, 2008, 05:12:51 PM by belarri »
Signatures appear only for members with more than 30 posts

Offline tr1

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • Casino Hire
Re: How to create a new "module position" and add FPSS there!
« Reply #9 on: April 24, 2008, 07:40:31 PM »
Does this solution also work on 1.5.1 joomla?
I think this solution is for 1.0.x and not 1.5.x. I'm no coder and am struggling to work out how to get FPSS where I want it - especially as the adding new module positions function has disappeared from 1.5. With the old Joomla this was a lot easier but I don't know where to start with the newer version of Joomla. Any chance you can walk people like me through setting up FPSS above the main content in Joomla 1.5 Fotis?
Regards 
Signatures appear only for members with more than 30 posts

Offline Fotis

  • JoomlaWorks Team / Forum Administrator
  • Administrator
  • Hero Member
  • *****
  • Posts: 4172
  • K2 wins "Joomla! component of 2010" at J & Beyond!
    • View Profile
    • JoomlaWorks
Re: How to create a new "module position" and add FPSS there!
« Reply #10 on: April 28, 2008, 01:38:22 PM »
The J1.5 changes are...

Code: [Select]
<jdoc:include type="modules" name="fpss" />
instead of
Code: [Select]
<?php mosLoadModules('fpss',-2);?>

and to add this "fpss" module position in joomla, you need to edit the XML file of your joomla's template. For example, if you're using the default "rhuk_milkyway" template, simply navigate to templates/rhuk_milkyway, edit templateDetails.xml and add the line
Code: [Select]
<position>fpss</position>
at the bottom of the "positions" block, so

Code: [Select]
	<positions>
<position>breadcrumb</position>
<position>left</position>
<position>right</position>
<position>top</position>
<position>user1</position>
<position>user2</position>
<position>user3</position>
<position>user4</position>
<position>footer</position>
<position>debug</position>
<position>syndicate</position>
</positions>

will become


Code: [Select]
	<positions>
<position>breadcrumb</position>
<position>left</position>
<position>right</position>
<position>top</position>
<position>user1</position>
<position>user2</position>
<position>user3</position>
<position>user4</position>
<position>footer</position>
<position>debug</position>
<position>syndicate</position>
                <position>fpss</position>
</positions>

That's it! ;)
Frontpage Slideshow by JoomlaWorks! The no.1 slideshow system for Joomla!

Looking for an easy, yet stylish way to publish image galleries on your Joomla! site?
Check out Simple Image Gallery Pro!

K2 voted "Joomla! component of 2010" at J and Beyond 2010, the international Joomla! conference.

Offline johnnydement

  • Jr. Member
  • **
  • Posts: 45
    • View Profile
Re: How to create a new "module position" and add FPSS there!
« Reply #11 on: April 28, 2008, 05:48:59 PM »
Very nice, now I only miss to format it like the rest :)

Althought, best would be if I would be able to show FPSS in frontpage, in main content area
Signatures appear only for members with more than 30 posts

Offline Fotis

  • JoomlaWorks Team / Forum Administrator
  • Administrator
  • Hero Member
  • *****
  • Posts: 4172
  • K2 wins "Joomla! component of 2010" at J & Beyond!
    • View Profile
    • JoomlaWorks
Re: How to create a new "module position" and add FPSS there!
« Reply #12 on: April 28, 2008, 10:01:00 PM »
Well, simply add the fpss module code above the "<jdoc:include type="component" />" code portion.  ;)
Frontpage Slideshow by JoomlaWorks! The no.1 slideshow system for Joomla!

Looking for an easy, yet stylish way to publish image galleries on your Joomla! site?
Check out Simple Image Gallery Pro!

K2 voted "Joomla! component of 2010" at J and Beyond 2010, the international Joomla! conference.

Offline johnnydement

  • Jr. Member
  • **
  • Posts: 45
    • View Profile
Re: How to create a new "module position" and add FPSS there!
« Reply #13 on: April 29, 2008, 12:11:39 AM »
Looks perfect now! thanks fotis!

Gonna try fixing the other problem now  ;)
Signatures appear only for members with more than 30 posts

Offline dank09

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: How to create a new "module position" and add FPSS there!
« Reply #14 on: May 06, 2008, 12:02:24 AM »
I can't find where on my template's index.php to add the code for the new module position. Any help on this will be really appreciated!!
URL where I would like to add a module in the position in the top center above the other content: http://69.10.41.18/ [nofollow]

Here's my index.php -
Code: [Select] [nofollow]
<?php
/**
 * @copyright   Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
 * @license     GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

include_once (dirname(__FILE__).DS.'/ja_vars.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; ?>">

<head>
<jdoc:include type="head" />
<?php JHTML::_('behavior.mootools'); ?>

<link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/template.css" type="text/css" />

<script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/ja.script.js"></script>

<?php if ($tmpTools->getParam('rightCollapsible')) { ?>
<script language="javascript" type="text/javascript">
var rightCollapseDefault='<?php echo $tmpTools->getParam('rightCollapseDefault'); ?>';
var excludeModules='<?php echo $tmpTools->getParam('excludeModules'); ?>';
</script>
<script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/ja.rightcol.js"></script>
<?php } ?>

<?php
if ($tmpTools->getParam('horNav')){
    if ($tmpTools->getParam('horNavType') == 'css'){
?>
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/ja_menus/ja_cssmenu/ja-sosdmenu.css" type="text/css" />
<script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/ja_menus/ja_cssmenu/ja.cssmenu.js"></script>
<?php       
    }else{
?>
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/ja_menus/ja_cssmenu/ja-sosdmenu.css" type="text/css" />
<script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/ja_menus/ja_cssmenu/ja.moomenu.js"></script>
<?php       
    }
} ?>

<?php  if($this->direction == 'rtl') : ?>
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/template_rtl.css" type="text/css" />
<?php else : ?>
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/menu.css" type="text/css" />
<?php endif; ?>

<?php if ($tmpTools->getParam('theme_header') && $tmpTools->getParam('theme_header')!='-1') : ?>
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/styles/header/<?php echo $tmpTools->getParam('theme_header'); ?>/style.css" type="text/css" />
<?php endif; ?>
<?php if ($tmpTools->getParam('theme_background') && $tmpTools->getParam('theme_background')!='-1') : ?>
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/styles/background/<?php echo $tmpTools->getParam('theme_background'); ?>/style.css" type="text/css" />
<?php endif; ?>
<?php if ($tmpTools->getParam('theme_elements') && $tmpTools->getParam('theme_elements')!='-1') : ?>
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/styles/elements/<?php echo $tmpTools->getParam('theme_elements'); ?>/style.css" type="text/css" />
<?php endif; ?>

<!--[if lte IE 6]>
<style type="text/css">
.clearfix {height: 1%;}
img {
    border: none;
}
</style>
<![endif]-->

<!--[if gte IE 7.0]>
<style type="text/css">
.clearfix {display: inline-block;}
</style>
<![endif]-->
<?php if ($tmpTools->isIE6()) {
?>
<script type="text/javascript">
var siteurl = '<?php echo $tmpTools->baseurl();?>';

window.addEvent ('load', makeTransBG);
function makeTransBG() {
    fixIEPNG($E('.ja-headermask'), '', '', 1);
    fixIEPNG($E('h1.logo a'));
    fixIEPNG($$('img'));
    fixIEPNG ($$('#ja-cssmenu li ul'), '', 'scale', 0, 2);
}
</script>
<style type="text/css">
.ja-headermask, h1.logo a, #ja-cssmenu li ul
{ background-position: -1000px; }
#ja-cssmenu li ul li, #ja-cssmenu li a
{
    background:transparent url(<?php echo $tmpTools->templateurl(); ?>/images/blank.png) no-repeat right;
}
</style>
<?php } ?>

<style type="text/css">
#ja-header,
#ja-mainnav,
#ja-container,
#ja-botsl,
#ja-footer {
    width: <?php echo $tmpWidth; ?>;
    margin: 0 auto;
}
#ja-wrapper {
    min-width: <?php echo $tmpWrapMin; ?>;
}
</style>
</head>

<body id="bd" class="fs<?php echo $tmpTools->getParam(JA_TOOL_FONT);?> <?php echo $tmpTools->browser();?>" >
<a name="Top" id="Top"></a>
<ul class="accessibility">
    <li><a href="#ja-content" title="<?php echo JText::_("Skip to content");?>"><?php echo JText::_("Skip to content");?></a></li>
    <li><a href="#ja-mainnav" title="<?php echo JText::_("Skip to main navigation");?>"><?php echo JText::_("Skip to main navigation");?></a></li>
    <li><a href="#ja-col1" title="<?php echo JText::_("Skip to 1st column");?>"><?php echo JText::_("Skip to 1st column");?></a></li>
    <li><a href="#ja-col2" title="<?php echo JText::_("Skip to 2nd column");?>"><?php echo JText::_("Skip to 2nd column");?></a></li>
</ul>

<div id="ja-wrapper">

<!-- BEGIN: HEADER -->
<div id="ja-headerwrap">
    <div id="ja-header" class="clearfix" style="background: url(<?php echo $tmpTools->templateurl(); ?>/images/header/<?php echo $tmpTools->getRandomImage(dirname(__FILE__).DS.'images/header'); ?>) no-repeat top <?php if($this->direction == 'rtl') echo 'left'; else echo 'right';?>;">

    <?php
        $siteName = $tmpTools->sitename();
        if ($tmpTools->getParam('logoType')=='image') { ?>
        <h1 class="logo">
            <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>
        </h1>
    <?php } else {
        $logoText = (trim($tmpTools->getParam('logoText'))=='') ? $config->sitename : $tmpTools->getParam('logoText');
        $sloganText = (trim($tmpTools->getParam('sloganText'))=='') ? JText::_('SITE SLOGAN') : $tmpTools->getParam('sloganText');  ?>
        <h1 class="logo-text">
            <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a> 
        </h1>
        <p class="site-slogan"><?php echo $sloganText;?></p>
    <?php } ?>
   
    <div class="ja-headermask">&nbsp;</div>
   
    <?php $tmpTools->genToolMenu(JA_TOOL_FONT, 'png'); ?>
   
    <?php if($this->countModules('user4')) : ?>
        <div id="ja-search">
            <jdoc:include type="modules" name="user4" />
        </div>
    <?php endif; ?>

    </div>
</div>
<!-- END: HEADER -->

<!-- BEGIN: MAIN NAVIGATION -->
<?php if ($tmpTools->getParam('horNav')==1){ ?>
<div id="ja-mainnavwrap">
    <div id="ja-mainnav" class="clearfix">
        <?php $jamenu->genMenu (0); ?>
    </div>
</div>
<?php } ?>

<?php if ($tmpTools->getParam('horNav')==2 && $this->countModules('hornav')) { ?>
<div id="ja-mainnavwrap">
    <div id="ja-mainnav" class="clearfix">
    <jdoc:include type="modules" name="hornav" />       
    </div>
</div>
<?php } ?>
<!-- END: MAIN NAVIGATION -->

<div id="ja-containerwrap<?php echo $divid; ?>">
<div id="ja-containerwrap2">
    <div id="ja-container">
    <div id="ja-container2" class="clearfix">

        <div id="ja-mainbody<?php echo $divid; ?>" class="clearfix">
       
        <!-- BEGIN: CONTENT -->
        <div id="ja-contentwrap">
        <div id="ja-content">

            <jdoc:include type="message" />

            <?php if(!$tmpTools->isFrontPage()) : ?>
            <div id="ja-pathway">
                <jdoc:include type="module" name="breadcrumbs" />
            </div>
            <?php endif ; ?>

            <jdoc:include type="component" />

            <?php if($this->countModules('banner')) : ?>
            <div id="ja-banner">
                <jdoc:include type="modules" name="banner" />
            </div>
            <?php endif; ?>

        </div>
        </div>
        <!-- END: CONTENT -->
       
        <?php if ($this->countModules('left')) { ?>
        <!-- BEGIN: LEFT COLUMN -->
        <div id="ja-col1">
            <jdoc:include type="modules" name="left" style="xhtml" />
        </div><br />
        <!-- END: LEFT COLUMN -->
        <?php } ?>

        </div>
       
        <?php if ($this->countModules('right')) { ?>
        <!-- BEGIN: RIGHT COLUMN -->
        <div id="ja-col2">
            <jdoc:include type="modules" name="right" style="jarounded" />
        </div><br />
        <!-- END: RIGHT COLUMN -->
        <?php } ?>

    </div>
    </div>
</div>
</div>

<?php
$spotlight = array ('user1','user2','top','user5');
$botsl = $tmpTools->calSpotlight ($spotlight,99,22);
if( $botsl ) {
?>
<!-- BEGIN: BOTTOM SPOTLIGHT -->
<div id="ja-botslwrap">
    <div id="ja-botsl" class="clearfix">

      <?php if( $this->countModules('user1') ) {?>
      <div class="ja-box<?php echo $botsl['user1']['class']; ?>" style="width: <?php echo $botsl['user1']['width']; ?>;">
            <jdoc:include type="modules" name="user1" style="xhtml" />
      </div>
      <?php } ?>

      <?php if( $this->countModules('user2') ) {?>
      <div class="ja-box<?php echo $botsl['user2']['class']; ?>" style="width: <?php echo $botsl['user2']['width']; ?>;">
            <jdoc:include type="modules" name="user2" style="xhtml" />
      </div>
      <?php } ?>

      <?php if( $this->countModules('top') ) {?>
      <div class="ja-box<?php echo $botsl['top']['class']; ?>" style="width: <?php echo $botsl['top']['width']; ?>;">
            <jdoc:include type="modules" name="top" style="xhtml" />
      </div>
      <?php } ?>
     
      <?php if( $this->countModules('user5') ) {?>
      <div class="ja-box<?php echo $botsl['user5']['class']; ?>" style="width: <?php echo $botsl['user5']['width']; ?>;">
            <jdoc:include type="modules" name="user5" style="xhtml" />
      </div>
      <?php } ?>

    </div>
</div>
<!-- END: BOTTOM SPOTLIGHT -->
<?php } ?>

<!-- BEGIN: FOOTER -->
<div id="ja-footerwrap">
<div id="ja-footer" class="clearfix">

    <div id="ja-footnav">
        <jdoc:include type="modules" name="user3" />
    </div>

    <div class="copyright">
        <jdoc:include type="modules" name="footer" />
    </div>
   
    <div class="ja-cert">
        <jdoc:include type="modules" name="syndicate" />
        <a href="http://jigsaw.w3.org/css-validator/validator?uri=<?php echo urlencode(JRequest::getURI());?>" target="_blank" title="<?php echo JText::_("CSS Validity");?>" style="text-decoration: none;">
        <img src="<?php echo $tmpTools->templateurl(); ?>/images/but-css.gif" border="none" alt="<?php echo JText::_("CSS Validity");?>" />
        </a>
        <a href="http://validator.w3.org/check/referer" target="_blank" title="<?php echo JText::_("XHTML Validity");?>" style="text-decoration: none;">
        <img src="<?php echo $tmpTools->templateurl(); ?>/images/but-xhtml10.gif" border="none" alt="<?php echo JText::_("XHTML Validity");?>" />
        </a>
    </div>

    <br />
</div>
</div>
<!-- END: FOOTER -->

</div>

<jdoc:include type="modules" name="debug" />

</body>

</html>
« Last Edit: May 06, 2008, 12:34:06 AM by Fotis Evangelou »
Signatures appear only for members with more than 30 posts

Offline Fotis

  • JoomlaWorks Team / Forum Administrator
  • Administrator
  • Hero Member
  • *****
  • Posts: 4172
  • K2 wins "Joomla! component of 2010" at J & Beyond!
    • View Profile
    • JoomlaWorks
Re: How to create a new "module position" and add FPSS there!
« Reply #15 on: May 06, 2008, 12:34:27 AM »
Add the module code right above:

Code: [Select]
<jdoc:include type="component" />
Frontpage Slideshow by JoomlaWorks! The no.1 slideshow system for Joomla!

Looking for an easy, yet stylish way to publish image galleries on your Joomla! site?
Check out Simple Image Gallery Pro!

K2 voted "Joomla! component of 2010" at J and Beyond 2010, the international Joomla! conference.

Offline dank09

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: How to create a new "module position" and add FPSS there!
« Reply #16 on: May 06, 2008, 12:59:39 AM »
Hi again,
  I figured out where to add the code to my index.php and templateDetails.xml files. But how do I add the Module in Joomla 1.5?
There appears to be no way to do this:

"Now go to the admin page of Joomla, navigate to Site >> Templates >> Module Positions, add fpss and SAVE."
Signatures appear only for members with more than 30 posts

Offline dank09

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: How to create a new "module position" and add FPSS there!
« Reply #17 on: May 06, 2008, 01:05:23 AM »
Ok, weird. I didn't add the module position in the Template Manager, but the position just showed up and it knew where to go!  ???
Oh well, as long as it's working..
Thanks  :)
Signatures appear only for members with more than 30 posts

Offline rasjebel

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: How to create a new "module position" and add FPSS there!
« Reply #18 on: May 23, 2008, 09:32:44 AM »
Add the module code right above:

Code: [Select] [nofollow]
<jdoc:include type="component" />

Hi, I added the code to my Joomla! 1.0 and it works fine..except that FPSS shows on every single page of my site!! I tried to assign the module to my front page but of course with this code it has to be published with ALL menus. Or am I missing something?!
To assign this module into the main content area where exctly should I add the code (or move it as it is already added)?

Please bear in mind that I set a static page as my home page to be able to control the layout.

Thanks.
Signatures appear only for members with more than 30 posts

Offline Fotis

  • JoomlaWorks Team / Forum Administrator
  • Administrator
  • Hero Member
  • *****
  • Posts: 4172
  • K2 wins "Joomla! component of 2010" at J & Beyond!
    • View Profile
    • JoomlaWorks
In the admin, navigate to Site >> Global Configuration and then choose the "Content" tab, scroll to the bottom and switch the "Itemid behaviour" (or something like that) to "Joomla 1.0.11 and before". Now select within the module parameters on which menu item you want your slideshow to appear (=the home page obviously).

Et voila!  ;)
Frontpage Slideshow by JoomlaWorks! The no.1 slideshow system for Joomla!

Looking for an easy, yet stylish way to publish image galleries on your Joomla! site?
Check out Simple Image Gallery Pro!

K2 voted "Joomla! component of 2010" at J and Beyond 2010, the international Joomla! conference.

Offline rasjebel

  • Newbie
  • *
  • Posts: 6
    • View Profile
In the admin, navigate to Site >> Global Configuration and then choose the "Content" tab, scroll to the bottom and switch the "Itemid behaviour" (or something like that) to "Joomla 1.0.11 and before". Now select within the module parameters on which menu item you want your slideshow to appear (=the home page obviously).

Et voila!  ;)

Hi there,
Thanks for the prompt response.
However, the FPSS still does not show if I applied the item to my front page. I did select "Joomla 1.0.11 and before".
I am sorry to come back to you again on this but the slideshow will be without use if I can't use it within my template.

Any more suggestions?

Cheers
Signatures appear only for members with more than 30 posts

Offline rasjebel

  • Newbie
  • *
  • Posts: 6
    • View Profile
Hello again, thanks for the prompt response.

I think I have figured out the problem. However, I have no idea (considering my young experience with php and joomla)how to solve it. As I mentioned before, I st a static page as my frontpage so that I could set the layout as I wish. I set back the original dynamic frontpage as my main frontpage and now the slideshow works fine in the position I created for it. Now, there is another problem unsolved: I have this error showing above the slideshow:"
Notice: Undefined index: 1 in /var/www/html/modules/mod_fpslideshow.php on line 299"
Now I am a bit lost. SOmething tells me it is simple but something else tells me I will not find it by myself!

Anyone with any idea? Be my guest! I would like ,however, to have a static content item page as my frontpage.

Cheers
Signatures appear only for members with more than 30 posts

Offline Fotis

  • JoomlaWorks Team / Forum Administrator
  • Administrator
  • Hero Member
  • *****
  • Posts: 4172
  • K2 wins "Joomla! component of 2010" at J & Beyond!
    • View Profile
    • JoomlaWorks
URL to your site please?
Frontpage Slideshow by JoomlaWorks! The no.1 slideshow system for Joomla!

Looking for an easy, yet stylish way to publish image galleries on your Joomla! site?
Check out Simple Image Gallery Pro!

K2 voted "Joomla! component of 2010" at J and Beyond 2010, the international Joomla! conference.

Offline bobcameron

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: How to create a new "module position" and add FPSS there!
« Reply #23 on: June 12, 2008, 10:02:41 PM »
Very nice, now I only miss to format it like the rest :)

Althought, best would be if I would be able to show FPSS in frontpage, in main content area
The J1.5 changes are...

Code: [Select] [nofollow]
<jdoc:include type="modules" name="fpss" />
instead of
Code: [Select] [nofollow]
<?php mosLoadModules('fpss',-2);?>

and to add this "fpss" module position in joomla, you need to edit the XML file of your joomla's template. For example, if you're using the default "rhuk_milkyway" template, simply navigate to templates/rhuk_milkyway, edit templateDetails.xml and add the line
Code: [Select] [nofollow]
<position>fpss</position>
at the bottom of the "positions" block, so

Code: [Select] [nofollow]
	<positions>
<position>breadcrumb</position>
<position>left</position>
<position>right</position>
<position>top</position>
<position>user1</position>
<position>user2</position>
<position>user3</position>
<position>user4</position>
<position>footer</position>
<position>debug</position>
<position>syndicate</position>
</positions>

will become


Code: [Select] [nofollow]
	<positions>
<position>breadcrumb</position>
<position>left</position>
<position>right</position>
<position>top</position>
<position>user1</position>
<position>user2</position>
<position>user3</position>
<position>user4</position>
<position>footer</position>
<position>debug</position>
<position>syndicate</position>
                <position>fpss</position>
</positions>

That's it! ;)

I am using SiteGround-15-48 template, and have frontpage slideshow set up in the center of the page using "center". I can not figure out where to insert the code mentioned herein for Joomla 1.5. This is my code:
<?php

defined( '_JEXEC' ) or die( 'Restricted access' );

JPlugin::loadLanguage( 'tpl_SG1' );

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd [nofollow]">

<html xmlns="http://www.w3.org/1999/xhtml [nofollow]" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >

<head>

<jdoc:include type="head" />



<link rel="stylesheet" href="templates/system/css/system.css" type="text/css" />

<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />



</head>

<body bgcolor="#000000" text="#339933" link="#33FF00" vlink="#666666" alink="#666600" id="page_bg">

      <div id="pathway">

         <div id="top_earth">

            <jdoc:include type="module" name="breadcrumbs" />

         </div>

      </div>

      <div id="header_top"></div>

      <div id="header">

         <div id="header_img">

            <div id="logo">

               <a href="index.php"><?php echo $mainframe->getCfg('sitename') ;?></a>

            </div>   

         </div>   

      </div>

      <div id="header_bottom"></div>

      <div class="pill_m">

         <div id="pillmenu">

            <jdoc:include type="modules" name="user3" />

         </div>

      </div>   

      <div class="clr"></div>

      <div id="undermenu"></div>

      

   <div class="center">      

      <div id="wrapper">

         <div id="content">

            <?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>

            <div id="leftcolumn">   

               <jdoc:include type="modules" name="left" style="rounded" />

               <?php $sg = 'banner'; include "templates.php"; ?>

            </div>

            <?php endif; ?>

            
            <?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>

            <div id="maincolumn">

            <?php else: ?>

            <div id="maincolumn_full">

            <?php endif; ?>

               <div class="nopad">   

                  <jdoc:include type="message" />

                  

               </div>

            </div>
            
            <!-- BEGIN: adlinks -->
  <div id="center" >

   <div class="center-class">
    <jdoc:include type="modules" name="center" style="xhtml" />
   </div>   

 </div>
  <!-- END: adlinks --> 



            <?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>

            <div id="rightcolumn" style="float:right;">

               <jdoc:include type="modules" name="right" style="rounded" />                        

            </div>

            <?php endif; ?>

            <div class="clr"></div>   
     <p class="valid">

         Valid <a href="http://validator.w3.org/check/referer [nofollow]">XHTML</a> and <a href="http://jigsaw.w3.org/css-validator/check/referer [nofollow]">CSS</a>.

            </p>
            

         </div>

      </div>         

   <jdoc:include type="modules" name="debug" />

   </div>

   

   <div id="footer">

      <div id="sgf">

         <?php $sg = ''; include "templates.php"; ?>

      </div>

   </div>   

</body>

</html>
Signatures appear only for members with more than 30 posts

Offline smarnca

  • Newbie
  • *
  • Posts: 1
    • View Profile
Hi!

I have problem with RT Chromatophore and FPSS (joomla 1.5.2), now i have tried to create a new module position, but there is a problem, since i cant find:
Code: [Select] [nofollow]
<?php mosMainBody();?>

and i read foword and find to put it right above:
Code: [Select] [nofollow]
<jdoc:include type="component" />

I have done that, but nothing hapens when i change module position in backend (i see the fpss position) but i dont see the module at all

now i'm wondering where the heck do i insert the code for fpss(
Code: [Select] [nofollow]
<jdoc:include type="modules" name="fpss" />
) in index.php

here is the code:
Code: [Select] [nofollow]
<?php
/**
 * @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
 * @license GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
?>
<!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; ?>" >
<head>
<jdoc:include type="head" />

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/css/<?php echo $this->params->get('colorVariation'); ?>.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/css/<?php echo $this->params->get('backgroundVariation'); ?>_bg.css" type="text/css" />
<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]-->
<?php if($this->direction == 'rtl') : ?>
<link href="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/css/template_rtl.css" rel="stylesheet" type="text/css" />
<?php endif; ?>

</head>
<body id="page_bg" class="color_<?php echo $this->params->get('colorVariation'); ?> bg_<?php echo $this->params->get('backgroundVariation'); ?> width_<?php echo $this->params->get('widthStyle'); ?>">
<a name="up" id="up"></a>
<div class="center" align="center">
<div id="wrapper">
<div id="wrapper_r">
<div id="header">
<div id="header_l">
<div id="header_r">
<div id="logo"></div>
<jdoc:include type="modules" name="top" />
</div>
</div>
</div>

<div id="tabarea">
<div id="tabarea_l">
<div id="tabarea_r">
<div id="tabmenu">
<table cellpadding="0" cellspacing="0" class="pill">
<tr>
<td class="pill_l">&nbsp;</td>
<td class="pill_m">
<div id="pillmenu">
<jdoc:include type="modules" name="user3" />
</div>
</td>
<td class="pill_r">&nbsp;</td>
</tr>
</table>
</div>
</div>
</div>
</div>

<div id="search">
<jdoc:include type="modules" name="user4" />
</div>

<div id="pathway">
<jdoc:include type="modules" name="breadcrumb" />
</div>

<div class="clr"></div>

<div id="whitebox">
<div id="whitebox_t">
<div id="whitebox_tl">
<div id="whitebox_tr"></div>
</div>
</div>

<div id="whitebox_m">
<div id="area">
<jdoc:include type="message" />

<div id="leftcolumn">
<?php if($this->countModules('left')) : ?>
<jdoc:include type="modules" name="left" style="rounded" />
<?php endif; ?>
</div>

<?php if($this->countModules('left')) : ?>
<div id="maincolumn">
<?php else: ?>
<div id="maincolumn_full">
<?php endif; ?>
<?php if($this->countModules('user1 or user2')) : ?>
<table class="nopad user1user2">
<tr valign="top">
<?php if($this->countModules('user1')) : ?>
<td>
<jdoc:include type="modules" name="user1" style="xhtml" />
</td>
<?php endif; ?>
<?php if($this->countModules('user1 and user2')) : ?>
<td class="greyline">&nbsp;</td>
<?php endif; ?>
<?php if($this->countModules('user2')) : ?>
<td>
<jdoc:include type="modules" name="user2" style="xhtml" />
</td>
<?php endif; ?>
</tr>
</table>

<div id="maindivider"></div>
<?php endif; ?>

<table class="nopad">
<tr valign="top">
<td>
<jdoc:include type="component" />
<jdoc:include type="modules" name="footer" style="xhtml"/>
</td>
<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<td class="greyline">&nbsp;</td>
<td width="170">
<jdoc:include type="modules" name="right" style="xhtml"/>
</td>
<?php endif; ?>
</tr>
</table>

</div>
<div class="clr"></div>
</div>
<div class="clr"></div>
</div>

<div id="whitebox_b">
<div id="whitebox_bl">
<div id="whitebox_br"></div>
</div>
</div>
</div>

<div id="footerspacer"></div>
</div>

<div id="footer">
<div id="footer_l">
<div id="footer_r">
<p id="syndicate">
<jdoc:include type="modules" name="syndicate" />
</p>
<p id="power_by">
<?php echo JText::_('Powered by') ?> <a href="http://www.joomla.org">Joomla!</a>.
<?php echo JText::_('Valid') ?> <a href="http://validator.w3.org/check/referer">XHTML</a> <?php echo JText::_('and') ?> <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
</p>
</div>
</div>
</div>
</div>
</div>
<jdoc:include type="modules" name="debug" />

</body>
</html>

I allso wondering... do i have to use:
<td><jdoc:include type="modules" name="fpss" /></td> or just
<jdoc:include type="modules" name="fpss" />

Thank you 4 you help!
Signatures appear only for members with more than 30 posts

Offline toner728

  • Newbie
  • *
  • Posts: 4
    • View Profile
Fotis.. I need help. .I didnt know where to post this.  I am using joomla 1.5x and I followed your install instructs.. I can see my slides fine, however I am getting several errors above it. .can you please take a look at my link and advise.  I'm a little upset that I purchased this and it doesnt work.. I also wanted to purchase the simple ss gallery for inside my articles, but i dont know if it will work

http://toner728.brinkster.net/choppertees/ [nofollow]
Signatures appear only for members with more than 30 posts

Offline Fotis

  • JoomlaWorks Team / Forum Administrator
  • Administrator
  • Hero Member
  • *****
  • Posts: 4172
  • K2 wins "Joomla! component of 2010" at J & Beyond!
    • View Profile
    • JoomlaWorks
Re: HOW TO: Create a new "module position" and add FPSS there! (Joomla! & Mambo)
« Reply #26 on: September 05, 2008, 03:17:50 PM »
@toner728

First upgrade to v2. Login to PDS and grab your free update.
Secondly, turn "error reporting" to normal in your joomla's global configuration options.
Frontpage Slideshow by JoomlaWorks! The no.1 slideshow system for Joomla!

Looking for an easy, yet stylish way to publish image galleries on your Joomla! site?
Check out Simple Image Gallery Pro!

K2 voted "Joomla! component of 2010" at J and Beyond 2010, the international Joomla! conference.

Offline dax702

  • Full Member
  • ***
  • Posts: 152
    • View Profile
Re: HOW TO: Create a new "module position" and add FPSS there! (Joomla! & Mambo)
« Reply #27 on: September 20, 2008, 02:46:24 AM »
I'm struggling with where to add the code to my index.php. My template is Earthblog by Joomlashack.  Here is the index.php. I want to have the module be the first one in the showcase area, which is normally user1 and maybe I should also mention I am using the "portal" style on the site.

Code: [Select]
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted index access' );
define( 'YOURBASEPATH', dirname(__FILE__) );
require(YOURBASEPATH .DS."/styleswitcher.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; ?>" >
<head>
<jdoc:include type="head" />
<?php
$headerstyle = $this->params->get("headerstyle", "graphic");
$leftcolwidth = $this->params->get("leftcolwidth", "200");
$rightcolwidth = $this->params->get("rightcolwidth", "226");
$page_style = $this->params->get("page_style", "NEWS");
$headline = $this->params->get("headline", "Relevant");
$slogan = $this->params->get("slogan", "A New Template for Joomla!");
$themecolor = $this->params->get("themecolor", "style1");

require( YOURBASEPATH.DS."/themesaver.php");

//count modules in vertical positions u456
$showcasemodulecount = $this->countModules('user1') + $this->countModules('user2') + $this->countModules('user3') + $this->countModules('user4');
if ($showcasemodulecount == "1") {$showcasetdwidth = "100%";}
elseif ($showcasemodulecount == "2") {$showcasetdwidth = "50%";}
elseif($showcasemodulecount == "3") {$showcasetdwidth = "33.3%";}
elseif($showcasemodulecount == "4") {$showcasetdwidth = "25%";}

//count modules in vertical positions u789
$footermodulecount = $this->countModules('user7') + $this->countModules('user8') + $this->countModules('user9');
if ($footermodulecount == "1") {$footertdwidth = "100%";}
elseif ($footermodulecount == "2") {$footertdwidth = "50%";}
elseif($footermodulecount == "3") {$footertdwidth = "33%";}



?>

<link rel="shortcut icon" href="images/favicon.ico" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link href="<?php echo $this->baseurl;?>/templates/<?php echo $this->template;?>/css/template_css.css" rel="stylesheet" type="text/css" media="screen" />
<link href="<?php echo $this->baseurl;?>/templates/<?php echo $this->template;?>/css/nav.css" rel="stylesheet" type="text/css" media="screen" />
<link href="<?php echo $this->baseurl;?>/templates/<?php echo $this->template;?>/css/<?php echo $scheme;?>.css" rel="stylesheet" type="text/css" media="screen" />

<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl;?>/templates/<?php echo $this->template;?>/css/ie.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript" src="<?php echo $this->baseurl;?>/templates/<?php echo $this->template;?>/js/iepngfix_tilebg.js"></script>
<style type="text/css">
span#prev8,span#next8,span#play8,span#stop8,img {behavior: url(<?php echo $this->baseurl;?>/templates/<?php echo $this->template;?>/js/iepngfix.htc); }
</style>
<![endif]-->



</head>
<body>
<div class="outerstroke">
<div id="main-wrapper">

<div id="header_<?php echo $headerstyle; ?>">
<div class="inside">
<div id="newsflash"><jdoc:include type="modules" name="newsflash" style="EarthStyle" /></div>
<h1><a href="<?php echo JURI::base(); ?>" title="<?php echo $headline; ?>"><?php echo $headline; ?></a></h1>
<h2><?php echo $slogan; ?></h2>
</div>
</div>
<div class="menubar">
<div id="navmenu">
<script type="text/javascript" src="<?php echo $this->baseurl;?>/templates/<?php echo $this->template;?>/js/barmenu.js"></script>
<jdoc:include type="modules" name="menu" style="none" />
</div>
</div>

<div id="mainbody">

<div id="showcasetop">&nbsp;</div>
<div class="innerstroke">

<?php if($this->countModules('user1') or $this->countModules('user2') or $this->countModules('user3') or $this->countModules('user4')) : ?>
<div id="showcase" style="margin-bottom: 6px;">
<div class="inside">

<table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
<tr>
<?php if ($this->countModules( 'user1' )) : ?>
<td style="width: <?php echo $showcasetdwidth; ?>;padding:5px; vertical-align:top;">
<jdoc:include type="modules" name="user1" style="EarthStyle" />
</td>
<?php endif; ?>
<?php if ($this->countModules( 'user2' )) : ?>
<td style="width: <?php echo $showcasetdwidth; ?>;padding:5px; vertical-align:top;">
<jdoc:include type="modules" name="user2" style="EarthStyle" />
</td>
<?php endif; ?>
<?php if ($this->countModules( 'user3' )) : ?>
<td style="width: <?php echo $showcasetdwidth; ?>;padding:5px; vertical-align:top;">
<jdoc:include type="modules" name="user3" style="EarthStyle" />
</td>
<?php endif; ?>
<?php if ($this->countModules( 'user4' )) : ?>
<td style="width: <?php echo $showcasetdwidth; ?>;padding:5px; vertical-align:top;">
<jdoc:include type="modules" name="user4" style="EarthStyle" />
</td>
<?php endif; ?>
</tr>
</table>
</div>
</div>
<?php endif; ?>

<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<!-- NEWS STYLE -->
<?php if($page_style=="NEWS") :?>
<td id="maincol" valign="top">
<div id="breadcrumbs">
<jdoc:include type="modules" name="breadcrumb" style="EarthBreadCrumbStyle" />
</div>
<div class="inside">
<?php if ($this->countModules('banner')) : ?>
<div id="banner"><jdoc:include type="modules" name="banner" style="none" /></div>
<?php endif; ?>
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>
</td>
<?php if ($this->countModules('left')) : ?>
<td id="leftcol" valign="top" width="<?php echo $leftcolwidth; ?>">
<div class="inside"><jdoc:include type="modules" name="left" style="rounded" /></div>
</td>
<?php endif; ?>
<?php if ($this->countModules( 'right' ) && JRequest::getCmd('task') != 'edit' ) : ?>
<td id="rightcol" valign="top" width="<?php echo $rightcolwidth; ?>">
<div class="inside"><jdoc:include type="modules" name="right" style="rounded" /></div>
</td>
<?php endif; ?>
<?php endif; ?>
<!-- END NEWS STYLE -->

<!-- BLOG STYLE -->
<?php if ($page_style=="BLOG") :?>
<?php if ($this->countModules('left')) : ?>
<td id="leftcol" valign="top" width="<?php echo $leftcolwidth; ?>">
<div class="inside"><jdoc:include type="modules" name="left" style="rounded" /></div>
</td>
<?php endif; ?>
<?php if ($this->countModules( 'right' ) && JRequest::getCmd('task') != 'edit' ) : ?>
<td id="rightcol" valign="top" width="<?php echo $rightcolwidth; ?>">
<div class="inside"><jdoc:include type="modules" name="right" style="rounded" /></div>
</td>
<?php endif; ?>
<td id="maincol" valign="top">
<div id="breadcrumbs">
<jdoc:include type="modules" name="breadcrumb" style="EarthBreadCrumbStyle" />
</div>
<div class="inside">
<?php if ($this->countModules('banner')) : ?>
<div id="banner"><jdoc:include type="modules" name="banner" style="none" /></div>
<?php endif; ?>
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>
</td>
<?php endif; ?>
<!-- END BLOG STYLE -->

<!-- PORTAL STYLE -->
<?php if ($page_style=="PORTAL") :?>

<?php if ($this->countModules('left')) : ?>
<td id="leftcol" valign="top" width="<?php echo $leftcolwidth; ?>">
<div class="inside">
<jdoc:include type="modules" name="left" style="rounded" />
</div>
</td>
<?php endif; ?>
<td id="maincol" valign="top">
<div id="breadcrumbs">
<jdoc:include type="modules" name="breadcrumb" style="EarthBreadCrumbStyle" />
</div>
<div class="inside">
<?php if ($this->countModules('banner')) : ?>
<div id="banner"><jdoc:include type="modules" name="banner" style="none" /></div>
<?php endif; ?>
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>
</td>
<?php if ($this->countModules( 'right' ) && JRequest::getCmd('task') != 'edit' ) : ?>
<td id="rightcol" valign="top" width="<?php echo $rightcolwidth; ?>">
<div class="inside"><jdoc:include type="modules" name="right" style="rounded" /></div>
</td>
<?php endif; ?>
<?php endif; ?>
<!-- END PORTAL STYLE -->
</tr>
</table>
</div>
<div class="bottom_top"></div>
<div id="bottom">
<?php if($this->countModules('user7') or $this->countModules('user8') or $this->countModules('user9')) : ?>
<table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
<tr>
<?php if ($this->countModules( 'user7' )) : ?>
<td style="width: <?php echo $footertdwidth; ?>;padding:5px; vertical-align:top;">
<jdoc:include type="modules" name="user7" style="EarthStyle" />
</td>
<?php endif; ?>
<?php if ($this->countModules( 'user8' )) : ?>
<td style="width: <?php echo $footertdwidth; ?>;padding:5px; vertical-align:top;">
<jdoc:include type="modules" name="user8" style="EarthStyle" />
</td>
<?php endif; ?>
<?php if ($this->countModules( 'user9' )) : ?>
<td style="width: <?php echo $footertdwidth; ?>;padding:5px; vertical-align:top;">
<jdoc:include type="modules" name="user9" style="EarthStyle" />
</td>
<?php endif; ?>
</tr>
</table>
<?php endif; ?>
<div id="footer"><jdoc:include type="modules" name="footer" style="none" /></div>
</div>
</div>
</div></div>
<div class="bottomwrap">
<div class="copyright"><?php require(YOURBASEPATH .DS."/js/template.css.php"); ?></div>
</div>

</body>
</html>
Signatures appear only for members with more than 30 posts

Offline Spoogemonkey

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
[SOLVED] Re: HOW TO: Create a new "module position" and add FPSS
« Reply #28 on: November 01, 2008, 12:36:01 PM »
Hello- I'm using J1.5.7 and FPSS v2.0.

I like FPSS alot. However, when I installed Community Builder v1.2, FPSS now shows up on all of my CB pages, such as registration, profile, etc. I tried re-setting the menu option for FPSS, but no luck.

My index code looks like this. User9 is used for fpss:

Code: [Select] [nofollow]
<?php if($this->countModules('user9')) : ?>
<!-- BEGIN: BANNER -->
            <div id="ja_showcase">
<div id="ja-user9">
  <jdoc:include type="modules" name="user9" />
   </div>
             </div>
<!-- END: BANNER -->
<?php endif; ?>

TIA!

--------
This is solved. It was due to my SEF program duplicating IDs. I simply changed CB to bypass SEF within sh404sef config, purged the SEF cache, then did a custom url redirect from the sef-url to the native CB reg url.

Hope this helps someone!
« Last Edit: November 01, 2008, 02:35:16 PM by Spoogemonkey »
Signatures appear only for members with more than 30 posts

Offline awedge

  • Newbie
  • *
  • Posts: 7
    • View Profile
This is exactly what I was looking for. Great module BTW!!!!

I am having one problem however maybe two.

1. Joomla places a site "title" at the top of the main content. I want this title to stay there or be gone altogether. Currently it is under fpss see HERE. [nofollow]

I have tried moving code a few times and I just can not seem to get this to work. I even went into site>>Global Configuration and left the title blank yet it still shows below fpss.

2. I have yet to be able to check this but a site visitor contacted me telling me the hornav menu drops down behind fpss in IE. I do not own a Windows machine and all looks fine in Safari and FireFox. Is there a way I can check this from a Mac and has this been a problem before? I couldn't find anything searching the forums.

P.S. my site visitor did not include the version of IE they were using, I requested the version but have yet to get a reply.

My version of Joomla is 1.5.9
template ja_purity

UPDATE: GOT NUMBER ONE ON THE LIST FIXED. TITLE CONTROLS ARE LOCATED UNDER MENUS>>HOME>>PARMETERS(SYSTEM) NOT GLOBAL CONFIGURATION.
« Last Edit: February 25, 2009, 06:44:22 PM by awedge »
Signatures appear only for members with more than 30 posts

Find this topic helpful? Why not share it with others?
 

fence