-
AuthorPosts
-
May 24, 2010 at 8:08 pm #151293
First of all congratulations for the great theme!
I have been reading previous forum posts about changing module positions or creating new modules but I haven’t manage to do what I want to do, so I am opening a new thread
I would like to crete a new module to place a simple image holder in between the Menu and the Jaslideshow positions.
I would like to keep the Left and JaSlideshow where they are, they would just appear lower. (please see attachment, I tried to illustrate what I would like to have.
I have tried to do follor this tutorial (http://docs.joomla.org/How_do_you_add_a_new_template_position%3F) but I had no success make the module position appear.
Am I positioning the Jdoc tag in the wrong part of the idex.php file?
PS: I am not a coder
My site URL is: http://www.letsevo.com
Thanks for the support
toymaker Friendtoymaker
- Join date:
- April 2010
- Posts:
- 123
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 10
- Thanked:
- 45 times in 32 posts
May 24, 2010 at 8:49 pm #344575Here… this was a similar question… 😉
http://www.joomlart.com/forums/showthread.php?p=179577#post179577Peace,
GabrielMay 25, 2010 at 12:00 pm #344665<em>@toymaker 179808 wrote:</em><blockquote>Here… this was a similar question… 😉
http://www.joomlart.com/forums/showthread.php?p=179577#post179577Peace,
Gabriel</blockquote>Hi toymaker,
I have seen this thread, I tried to do what the thread advise us to do, but it did not work for me, I guess it doesnt work for me because I don´t want a Ja-Newsticker, just a normal module.
Can I try something else? how should I adapt that to my needs?
thanks for the reply.
toymaker Friendtoymaker
- Join date:
- April 2010
- Posts:
- 123
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 10
- Thanked:
- 45 times in 32 posts
May 25, 2010 at 6:48 pm #344697Hi,
Well.. I just made that name up… you can actually use the name you want so its quite a generic example that can be used whenever someone wants to create a new module position inside a Joomla Site.If you want, PM the FTP and Admin interface credentials of your site and I can fix it for you…
Peace,
GabrielMay 26, 2010 at 11:35 am #344788<em>@iquevoe 179901 wrote:</em><blockquote>Hi toymaker,
I have seen this thread, I tried to do what the thread advise us to do, but it did not work for me, I guess it doesnt work for me because I don´t want a Ja-Newsticker, just a normal module.
Can I try something else? how should I adapt that to my needs?
thanks for the reply.</blockquote>
Hi Gabriel,
Thanks for the offer, I will try it again, using your code suggestion. I just want to know where exactly should I insert the Jdoc Tag in the Index.php for my desired new module position (Below the Ja-Menu and across the whole width of the wrap)
Should the CSS information be different than that “Ja-Newsticker” of the example above?
Thanks again
toymaker Friendtoymaker
- Join date:
- April 2010
- Posts:
- 123
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 10
- Thanked:
- 45 times in 32 posts
May 26, 2010 at 9:25 pm #344832Add the RED code at line 143 of your index.php file
<!-- //MAIN NAVIGATION -->
<div id="ja-container<?php echo $divid; ?>" class="wrap">
<div class="main clearfix">
<?php if($this->countModules('top')) : ?>
<div id="ja-masstop" class="ja-masstop">
<jdoc:include type="modules" name="top" />
</div>
<?php endif; ?>
<?php if ( $ja_left) { ?>
<!-- Left COLUMN -->
<div id="ja-col1">
Then, just like the other example, add inside your tempalte.css file the following:
/* MY CUSTOM TOP MODULE
--------------------------------------------------------- */
#ja-masstop{
padding-top:5px;
width:100%;
}
/* in case your ticker uses a <p> or a <ul> to define news lines, addthe following code.
You can change to whatever you may need. */
#ja-masstop p, #ja-masstop ul, #ja-masstop li {
margin: 0;
}
Remeber to add the new TOP position to your XML file or simply type “top” on the position of any module you want to place in there.
Hope it helps!
Peace,
GabrielMay 27, 2010 at 11:36 am #344924Hi Gabriel, thanks for the custom explanation, I did exactly what you advised, I also inserted “top” as a position on the XML file.
I when on to activate this module on the module manager, but it does not show on the page.
If I use the “?tp=1” command to see which modules exist, this new “top” module is not recognized as if the idex.php file code lines (in RED above) I added are not recognized.
What could be happening?
below is my idex.php code after adding what you suggested
[PHP]<?php
/*————————————————————————
# JA Nickel for Joomla 1.5.x – Version 1.0 – Licence Owner JA160800
# ————————————————————————
# Copyright (C) 2004-2008 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
# @license – Copyrighted Commercial Software
# Author: J.O.O.M Solutions Co., Ltd
# Websites: http://www.joomlart.com – http://www.joomlancers.com
# This file may not be redistributed in whole or significant part.
————————————————————————-*/// no direct access
defined( ‘_JEXEC’ ) or die( ‘Restricted access’ );include_once (dirname(__FILE__).DS.’ja_vars_1.5.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/typo.css” type=”text/css” />
<script language=”javascript” type=”text/javascript” src=”<?php echo $tmpTools->templateurl(); ?>/js/ja.script.js”></script>
<?php if ($tmpTools->getParam(‘ja_cufon’)) : ?>
<script language=”javascript” type=”text/javascript” src=”<?php echo $tmpTools->templateurl(); ?>/js/cufon/cufon.js”></script>
<script language=”javascript” type=”text/javascript” src=”<?php echo $tmpTools->templateurl(); ?>/js/cufon/Zrnic_400.font.js”></script>
<script type=”text/javascript”>
Cufon.replace(‘.componentheading, .contentheading, div.moduletable h3, div.moduletable_menu h3, div.moduletable_text h3,div.moduletable_highlight h3’, { fontFamily: ‘Zrnic’ });
</script>
<?php endif; ?>
<?php if ($tmpTools->getParam(‘usertool_modfunc’)) : ?>
<script language=”javascript” type=”text/javascript”>
var siteurl = ‘<?php echo $tmpTools->baseurl();?>’;
var tmplurl = ‘<?php echo $tmpTools->templateurl();?>’;
</script><?php endif; ?>
<!– Menu head –>
<?php if ($jamenu) { $jamenu->genMenuHead(); } ?>
<link rel=”stylesheet” href=”<?php echo $tmpTools->templateurl(); ?>/css/addons.css” type=”text/css” />
<link rel=”stylesheet” href=”<?php echo $tmpTools->templateurl(); ?>/css/template.css” type=”text/css” />
<link rel=”stylesheet” href=”<?php echo $tmpTools->templateurl(); ?>/css/ja.bulletin.css” type=”text/css” />
<script type=”text/javascript”>
//<!]>
</script>
<link href=”<?php echo $tmpTools->templateurl(); ?>/css/colors/<?php echo strtolower ($tmpTools->getParam(JA_TOOL_COLOR)); ?>.css” rel=”stylesheet” type=”text/css” />
<?php if ($tmpTools->isIE()) { ?>
<link href=”<?php echo $tmpTools->templateurl(); ?>/css/ie.php” rel=”stylesheet” type=”text/css” />
<link href=”<?php echo $tmpTools->templateurl(); ?>/css/colors/<?php echo strtolower ($tmpTools->getParam(JA_TOOL_COLOR)); ?>-ie.php” rel=”stylesheet” type=”text/css” />
<script type=”text/javascript”>
window.addEvent (‘load’, makeTransBG);
function makeTransBG() {
makeTransBg($$(‘img’));
}
</script>
<script type=”text/javascript”>
var siteurl = ‘<?php echo $tmpTools->baseurl();?>’;
</script>
<?php }?><?php if ($tmpTools->isOP()) { ?>
<link href=”<?php echo $tmpTools->templateurl(); ?>/css/op.css” rel=”stylesheet” type=”text/css” />
<?php } ?></head>
<body id=”bd” class=”<?php echo $tmpTools->getParam(JA_TOOL_LAYOUT);?> <?php echo $tmpTools->getParam(JA_TOOL_SCREEN);?> fs<?php echo $tmpTools->getParam(JA_TOOL_FONT);?>”>
<a name=”Top” id=”Top”></a>
<!– HEADER –>
<div id=”ja-header” class=”wrap”>
<div class=”main clearfix”><?php
$siteName = $tmpTools->sitename();
if ($tmpTools->getParam(‘logoType’)==’image’) { ?>
<h1 class=”logo”>
<a href=”http://www.letsevo.com” 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’); ?>
<div class=”logo-text”>
<p class=”site-slogan”><?php echo $sloganText;?></p>
<h1>
<a href=”index.php” title=”<?php echo $siteName; ?>”><span><?php echo $logoText; ?></span></a>
</h1>
</div>
<?php } ?>
<?php if($this->countModules(‘ja-login’)) : ?>
<div id=”ja-headtools” class=”ja-headtool”>
<ul>
<jdoc:include type=”modules” name=”ja-login” />
</ul>
</div>
<?php endif; ?>
</div>
</div>
<!– //HEADER –><!– MAIN NAVIGATION –>
<div id=”ja-mainnav” class=”wrap”>
<div class=”main clearfix”>
<ul class=”no-display”>
<li><a href=”<?php echo $tmpTools->getCurrentURL();?>#ja-content” title=”<?php echo JText::_(“Skip to content”);?>”><?php echo JText::_(“Skip to content”);?></a></li>
</ul><?php if ($jamenu) $jamenu->genMenu (0); ?>
<?php if ($this->countModules(‘user4’)) { ?>
<div id=”ja-search”>
<jdoc:include type=”modules” name=”user4″ style=”raw” />
</div>
<?php } ?>
</div>
</div>
<?php if ($hasSubnav) : ?>
<div id=”ja-subnav” class=”warp”>
<div class=”main clearfix”>
<?php if ($jamenu) $jamenu->genMenu (1,1); ?>
</div>
</div>
<?php endif; ?>
<!– //MAIN NAVIGATION –><div id=”ja-container<?php echo $divid; ?>” class=”wrap”>
<div class=”main clearfix”>
<?php if($this->countModules(‘top’)) : ?>
<div id=”ja-masstop” class=”ja-masstop”>
<jdoc:include type=”modules” name=”top” />
</div>
<?php endif; ?><?php if ( $ja_left) { ?>
<!– Left COLUMN –>
<div id=”ja-col1″>
<div class=”ja-innerpad”>
<jdoc:include type=”modules” name=”left” style=”jamodule” />
</div>
</div>
<!– //Left COLUMN –>
<?php } ?>
<!– CONTENT –>
<div id=”ja-content”>
<div class=”main clearfix”>
<jdoc:include type=”message” />
<?php if ($this->countModules(‘ja-slideshow’) ) { ?>
<!– TOP SPOTLIGHT –>
<div id=”ja-topsl” class=”wrap”>
<div class=”main”>
<div class=”inner clearfix”>
<div id=”ja-slideshow”>
<jdoc:include type=”modules” name=”ja-slideshow” style=”raw” />
</div>
</div>
</div>
</div>
<!– //TOP SPOTLIGHT –>
<?php } ?>
<div id=”ja-current-content” class=”clearfix”>
<jdoc:include type=”component” />
</div>
<?php if ( $ja_right): ?>
<div id=”ja-col2″>
<jdoc:include type=”modules” name=”right” style=”jamodule” />
</div>
<?php endif; ?>
</div>
<!– //CONTENT –>
</div></div>
</div>
<!– PATHWAY –>
<div id=”ja-pathway” class=”wrap”>
<div class=”main”>
<div class=”ja-pathway-text”>
<strong>You are here:</strong><jdoc:include type=”module” name=”breadcrumbs” />
</div>
</div>
</div>
<!– //PATHWAY –>
<?php
$spotlight = array (‘user6′,’user8′,’user9’);
$bots2 = $tmpTools->calSpotlight ($spotlight,$tmpTools->isOP()?100:99.9);
if( $bots2 ) {
?>
<!– BOTTOM SPOTLIGHT 2–>
<div id=”ja-botsl1″ class=”wrap”>
<div class=”main clearfix”><?php if( $this->countModules(‘user6’) ) {?>
<div class=”ja-box<?php echo $bots2[‘user6’][‘class’]; ?>” style=”width: <?php echo $bots2[‘user6’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user6″ style=”jamodule” />
</div>
<?php } ?><?php if( $this->countModules(‘user8’) ) {?>
<div class=”ja-box<?php echo $bots2[‘user8’][‘class’]; ?>” style=”width: <?php echo $bots2[‘user8’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user8″ style=”jamodule” />
</div>
<?php } ?><?php if( $this->countModules(‘user9’) ) {?>
<div class=”ja-box<?php echo $bots2[‘user9’][‘class’]; ?>” style=”width: <?php echo $bots2[‘user9’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user9″ style=”jamodule” />
</div>
<?php } ?>
</div></div>
<!– //BOTTOM SPOTLIGHT 2 –>
<?php } ?>
<?php
$spotlight = array (‘user1′,’user2′,’user7’);
$botsl = $tmpTools->calSpotlight ($spotlight,$tmpTools->isOP()?100:99.9);
if( $botsl ) {
?>
<!– BOTTOM SPOTLIGHT 1–>
<div id=”ja-botsl2″ class=”wrap”>
<div class=”main 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=”jamodule” />
</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=”jamodule” />
</div>
<?php } ?><?php if( $this->countModules(‘user7’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user7’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user7’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user7″ style=”jamodule” />
</div>
<?php } ?>
</div></div>
<!– //BOTTOM SPOTLIGHT 1 –>
<?php } ?>
<!– FOOTER –>
<div id=”ja-footer” class=”wrap”>
<div class=”main clearfix”>
<div class=”sublogo”>
<img src=”<?php echo $tmpTools->templateurl(); ?>/images/<?php echo strtolower ($tmpTools->getParam(JA_TOOL_COLOR)); ?>/sub-logo.png” alt=”Logo” />
</div>
<div class=”ja-info”>
<jdoc:include type=”modules” name=”user3″ />
<jdoc:include type=”modules” name=”footer” />
</div>
</div>
</div>
<!– //FOOTER –><jdoc:include type=”modules” name=”debug” />
<script type=”text/javascript”>
addSpanToTitle();
jaAddFirstItemToTopmenu();
//jaRemoveLastContentSeparator();
//jaRemoveLastTrBg();
//moveReadmore();
//addIEHover();
//slideshowOnWalk ();
//apply png ie6 main background
</script>
<script type=”text/javascript”>
var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.” : “http://www.”);
document.write(unescape(“%3Cscript src='” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));
</script>
<script type=”text/javascript”>
try {
var pageTracker = _gat._getTracker(“UA-1850444-3”);
pageTracker._trackPageview();
} catch(err) {}</script>
</body></html>[/PHP]
toymaker Friendtoymaker
- Join date:
- April 2010
- Posts:
- 123
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 10
- Thanked:
- 45 times in 32 posts
May 28, 2010 at 12:38 am #344989Hi there iquevoe,
Please send me the credentials of your server to have a closer look. I have pasted your code into my installation and it works ok. You must be doing somewthing wrong setting up the module from the admin side.Remember… Create your module, make sure it is PUBLISHED and make sure the module position name is entered correctly.
Peace,
Gabriel1 user says Thank You to toymaker for this useful post
June 1, 2010 at 11:42 am #345501Hi Gabriel,
I retryed it and discovered that my ftp program was not overwriting the index.php file when I made the changes you sugested, that is why it did not work.
So I deleted the index.php and uploaded it separetly including the changes you suggested. Than it worked! Thanks!!
toymaker Friendtoymaker
- Join date:
- April 2010
- Posts:
- 123
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 10
- Thanked:
- 45 times in 32 posts
June 1, 2010 at 2:07 pm #345528Cool! great to know this. Thanks for sharing!
Peace,
GabrielAuthorPostsViewing 10 posts - 1 through 10 (of 10 total)This topic contains 10 replies, has 2 voices, and was last updated by toymaker 14 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
New Module Position Between Main Menu and (Left + JaSlideshow) Positions
Viewing 10 posts - 1 through 10 (of 10 total)