-
AuthorPosts
-
cansay Friend
cansay
- Join date:
- February 2010
- Posts:
- 183
- Downloads:
- 2
- Uploads:
- 32
- Thanks:
- 20
- Thanked:
- 19 times in 1 posts
March 21, 2010 at 10:16 pm #149700I already made a thread about my problem.
But I think I posted it the wrong place 🙁 ?
http://www.joomlart.com/forums/topic/2-x-jasidenews-in-left-module-position/I looked at this image and it indicates that there is only 1 position for ja_news defined as left?
The other position is just for frontpage published articles if I understand correctly..I would like to have 2 modules of ja_News next to each other at the left module position, But I cant figure out how to acheave this 🙁
I have copied ja_news module and given it module prefix left9.
But im not doing this correctly I see 🙁I have only made this change to Default.php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$this->_basewidth = 30;
$positions = array (
'left1' =>'',
'left2' =>'',
'left-mass-top' =>'',
'left-mass-bottom' =>'',
'right1' =>'',
'right2' =>'right',
'right-mass-top' =>'',
'right-mass-bottom' =>'',
'content-mass-top' =>'content-mass',
'content-mass-bottom' =>'',
'content-top' =>'',
'content-bottom' =>'',
'inset1' =>'left9',
'inset2' =>'left'
);
$this->customwidth('inset2', 35); //<== override right1 column width to 25%. Must call before call definePosition. Can call many time to override many columns.
$this->definePosition ($positions);
?>I have uploaded 2 screenshots where firebug shows the html code for the 2 divs.
-
cansay Friend
cansay
- Join date:
- February 2010
- Posts:
- 183
- Downloads:
- 2
- Uploads:
- 32
- Thanks:
- 20
- Thanked:
- 19 times in 1 posts
March 21, 2010 at 10:22 pm #337111I think I need to use this information ?
But since im not sure I hope some of you other users or an admin could give me
some advice 😀http://www.joomlart.com/forums/showthread.php?p=168739#post168739
cansay Friendcansay
- Join date:
- February 2010
- Posts:
- 183
- Downloads:
- 2
- Uploads:
- 32
- Thanks:
- 20
- Thanked:
- 19 times in 1 posts
March 23, 2010 at 12:27 pm #337407PLEASE SOMONE HELP ME 🙁
Am I not explaining my self good enough ?
I cant really start using the template or modules before I find out how to change this 🙁
Should I ask for admin help and provide passwords ?
Or will that not be okay for such a problem as mine 🙁 ?cansay Friendcansay
- Join date:
- February 2010
- Posts:
- 183
- Downloads:
- 2
- Uploads:
- 32
- Thanks:
- 20
- Thanked:
- 19 times in 1 posts
March 24, 2010 at 5:26 pm #337611Please help ?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
March 25, 2010 at 5:04 am #337677Dear cansay!
Please see the t3’s layouts:
http://wiki.joomlart.com/wiki/JA_Template_Framework/GuidesYour customization is not correct. you can not use the “insert1” position in this case, right is the “content-top” position and made more some changes in the tempalte:
1) you made the custom work for the “insert1” correct.
2) pls open the file: templatesja_rasitelayoutsblocksmain.php and find code:
[PHP]<jdoc:include type=”modules” name=”<?php echo $content_top;?>” style=”JAxhtml” />[/PHP]and replace:
[PHP]
<div class=”ja-rs5-top”><div class=”ja-rs5-tl”> </div><div class=”ja-rs5-tr”> </div></div><div class=”ja-rs5-mid”><div class=”ja-rs5-ml”><div class=”ja-rs5-mr”>
<jdoc:include type=”modules” name=”<?php echo $content_top;?>” style=”JAxhtml” />
</div></div></div><div class=”ja-rs5-bot”><div class=”ja-rs5-bl”> </div><div class=”ja-rs5-br”> </div></div>
[/PHP]3) you put the ja sidernews on the “content-top” position
Good luck
cansay Friendcansay
- Join date:
- February 2010
- Posts:
- 183
- Downloads:
- 2
- Uploads:
- 32
- Thanks:
- 20
- Thanked:
- 19 times in 1 posts
March 25, 2010 at 10:34 am #337708<em>@tienhc 171251 wrote:</em><blockquote>Dear cansay!
Please see the t3’s layouts:
http://wiki.joomlart.com/wiki/JA_Template_Framework/GuidesYour customization is not correct. you can not use the “insert1” position in this case, right is the “content-top” position and made more some changes in the tempalte:
1) you made the custom work for the “insert1” correct.
2) pls open the file: templatesja_rasitelayoutsblocksmain.php and find code:
[PHP]<jdoc:include type=”modules” name=”<?php echo $content_top;?>” style=”JAxhtml” />[/PHP]and replace:
[PHP]
<div class=”ja-rs5-top”><div class=”ja-rs5-tl”> </div><div class=”ja-rs5-tr”> </div></div><div class=”ja-rs5-mid”><div class=”ja-rs5-ml”><div class=”ja-rs5-mr”>
<jdoc:include type=”modules” name=”<?php echo $content_top;?>” style=”JAxhtml” />
</div></div></div><div class=”ja-rs5-bot”><div class=”ja-rs5-bl”> </div><div class=”ja-rs5-br”> </div></div>
[/PHP]3) you put the ja sidernews on the “content-top” position
Good luck</blockquote>
Thank you alot for your sime Mr.
I was ready to cry yesterday and im not good at PHP 🙁
Im not sure I understand you correct
<blockquote>Your customization is not correct. you can not use the “insert1” position in this case, right is the “content-top” position and made more some changes in the tempalte:</blockquote>
You mean than I cant use insert1 in
templates/Ja_Rasite/loyout/default.php ???I removed insert1 = left9
Added Content-top = content-top
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$this->_basewidth = 30;
$positions = array (
'left1' =>'',
'left2' =>'',
'left-mass-top' =>'',
'left-mass-bottom' =>'',
'right1' =>'',
'right2' =>'right',
'right-mass-top' =>'',
'right-mass-bottom' =>'',
'content-mass-top' =>'content-mass',
'content-mass-bottom' =>'',
'content-top' =>'content-top',
'content-bottom' =>'',
'inset1' =>left9'',
'inset2' =>'left'
);
$this->customwidth('inset2', 35); //<== override right1 column width to 25%. Must call before call definePosition. Can call many time to override many columns.
$this->definePosition ($positions);
?>
I then changed my main.php and removed/deleted the entire <div id=”ja-content”>
Marked with red<!-- CONTENT -->
<div id="ja-main" style="width:<?php echo $this->getColumnWidth('m') ?>%">
<div class="inner clearfix"><jdoc:include type="message" />
<?php
$mass_top = $this->getPositionName ('content-mass-top');
if($this->countModules($mass_top)) : ?>
<div class="ja-mass ja-mass-top clearfix"><div class="ja-rs3-top"><div class="ja-rs3-tl"> </div><div class="ja-rs3-tr"> </div></div>
<div class="ja-rs3-mid"><div class="ja-rs3-ml"><div class="ja-rs3-mr">
<jdoc:include type="modules" name="<?php echo $mass_top;?>" style="JAxhtml" />
</div></div></div><div class="ja-rs3-bot"><div class="ja-rs3-bl"> </div><div class="ja-rs3-br"> </div></div>
</div>
<?php endif; ?><div id="ja-contentwrap" class="<?php echo $this->getColumnWidth('cls_m'); ?>">
<?php
$inset1 = $this->getPositionName ('inset1');
$inset2 = $this->getPositionName ('inset2');
?>
<div id="ja-content" class="column" style="width:<?php echo $this->getColumnWidth('cw') ?>%"><div id="ja-current-content" class="column" style="width:<?php echo $this->getColumnWidth('c') ?>%">
<?php
$content_top = $this->getPositionName ('content-top');
if($this->countModules($content_top)) : ?>
<div class="ja-content-top clearfix">
<jdoc:include type="modules" name="<?php echo $content_top;?>" style="JAxhtml" />
</div>
<?php endif; ?><?php $contents = $this->getBuffer('component');
if (!preg_match ('/<div class="blog">s*</div>/',$contents)) :?>
<div class="ja-content-main clearfix">
<div class="ja-rs5-top"><div class="ja-rs5-tl"> </div><div class="ja-rs5-tr"> </div></div><div class="ja-rs5-mid"><div class="ja-rs5-ml"><div class="ja-rs5-mr clearfix">
<jdoc:include type="component" />
</div></div></div><div class="ja-rs5-bot"><div class="ja-rs5-bl"> </div><div class="ja-rs5-br"> </div></div>
</div>
<?php endif; ?><?php
$content_bottom = $this->getPositionName ('content-bottom');
if($this->countModules($content_bottom)) : ?>
<div class="ja-content-bottom clearfix">
<jdoc:include type="modules" name="<?php echo $content_bottom;?>" style="JAxhtml" />
</div>
<?php endif; ?>
</div><?php if($this->countModules($inset1)) : ?>
<div class="ja-col column ja-inset1" style="width:<?php echo $this->getColumnWidth('i1') ?>%">
<jdoc:include type="modules" name="<?php echo $inset1;?>" style="JAxhtml" />
</div>
<?php endif; ?></div>
<?php if($this->countModules($inset2)) : ?>
<div class="ja-col column ja-inset2" style="width:<?php echo $this->getColumnWidth('i2') ?>%">
<div class="ja-rs5-top"><div class="ja-rs5-tl"> </div><div class="ja-rs5-tr"> </div></div><div class="ja-rs5-mid"><div class="ja-rs5-ml"><div class="ja-rs5-mr">
<jdoc:include type="modules" name="<?php echo $inset2;?>" style="JAxhtml" />
</div></div></div><div class="ja-rs5-bot"><div class="ja-rs5-bl"> </div><div class="ja-rs5-br"> </div></div>
</div>
<?php endif; ?>
</div><?php
$mass_bottom = $this->getPositionName ('content-mass-bottom');
if($this->countModules($mass_bottom)) : ?>
<div class="ja-mass ja-mass-bottom clearfix"><div class="ja-rs5-top"><div class="ja-rs5-tl"> </div><div class="ja-rs5-tr"> </div></div>
<div class="ja-rs5-mid"><div class="ja-rs5-ml"><div class="ja-rs5-mr">
<jdoc:include type="modules" name="<?php echo $content_top;?>" style="JAxhtml" />
</div></div></div><div class="ja-rs5-bot"><div class="ja-rs5-bl"> </div><div class="ja-rs5-br"> </div></div>
</div>
<?php endif; ?></div>
</div>
<!-- //CONTENT -->But when I replace this
[PHP]<jdoc:include type=”modules” name=”<?php echo $content_top;?>” style=”JAxhtml” />[/PHP]With this code it looks wrong 🙁
Im not sure if im making a mistake or ?
It seams like the module gets the correct possition but the
ja-rs5-top
ja-rs5-mid
and ja-rs5-botAre not correctly added.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
March 25, 2010 at 10:53 am #337711Pls see my screenshot, may be you made wrong 7275
7276
cansay Friendcansay
- Join date:
- February 2010
- Posts:
- 183
- Downloads:
- 2
- Uploads:
- 32
- Thanks:
- 20
- Thanked:
- 19 times in 1 posts
March 25, 2010 at 12:11 pm #337719<em>@tienhc 171289 wrote:</em><blockquote>Pls see my screenshot, may be you made wrong 7275
7276</blockquote>
Thx alot sir.
You are REALLY making a big help for me here :D:-*:D;)It must be my main.php im not doing correct then sir?
I have attached it and layout.php.
This is how it looks now.
THANK YOU VERY MUCH FOR HELPING ME.
I know im not very good at this 🙁But I can help others on the forum, and if you ever have any problems with
computer hardware, I can help 😀
cansay Friendcansay
- Join date:
- February 2010
- Posts:
- 183
- Downloads:
- 2
- Uploads:
- 32
- Thanks:
- 20
- Thanked:
- 19 times in 1 posts
March 26, 2010 at 1:12 pm #337884Could you please check my attached file tienhc ?
I think my main is not correct 🙁
cansay Friendcansay
- Join date:
- February 2010
- Posts:
- 183
- Downloads:
- 2
- Uploads:
- 32
- Thanks:
- 20
- Thanked:
- 19 times in 1 posts
March 27, 2010 at 7:53 pm #338038My site is live now at http://www.octeamdenmark.com
Should I provide login details instead ?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
March 29, 2010 at 9:31 am #338228Dear
Here is your ticket :#EXN-652245
Please post the ftp account and the administrator in there, i ‘ll check and resolve this issue for you.
PS: pls change status of your ticket to “OPEN”Thanks
cansay Friendcansay
- Join date:
- February 2010
- Posts:
- 183
- Downloads:
- 2
- Uploads:
- 32
- Thanks:
- 20
- Thanked:
- 19 times in 1 posts
March 30, 2010 at 2:58 pm #338463<em>@tienhc 171953 wrote:</em><blockquote>Dear
Here is your ticket :#EXN-652245
Please post the ftp account and the administrator in there, i ‘ll check and resolve this issue for you.
PS: pls change status of your ticket to “OPEN”Thanks</blockquote>
I cant login 🙁
Same password and username as the forum I take it ?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
cansay Friendcansay
- Join date:
- February 2010
- Posts:
- 183
- Downloads:
- 2
- Uploads:
- 32
- Thanks:
- 20
- Thanked:
- 19 times in 1 posts
April 1, 2010 at 4:45 pm #338806Havent had time to see what has changed. But It was fixed and this is the main.php 😀
[PHP]<!– CONTENT –>
<div id=”ja-main” style=”width:<?php echo $this->getColumnWidth(‘m’) ?>%”>
<div class=”inner clearfix”><jdoc:include type=”message” />
<?php
$mass_top = $this->getPositionName (‘content-mass-top’);
if($this->countModules($mass_top)) : ?>
<div class=”ja-mass ja-mass-top clearfix”><div class=”ja-rs3-top”><div class=”ja-rs3-tl”> </div><div class=”ja-rs3-tr”> </div></div>
<div class=”ja-rs3-mid”><div class=”ja-rs3-ml”><div class=”ja-rs3-mr”>
<jdoc:include type=”modules” name=”<?php echo $mass_top;?>” style=”JAxhtml” />
</div></div></div><div class=”ja-rs3-bot”><div class=”ja-rs3-bl”> </div><div class=”ja-rs3-br”> </div></div>
</div>
<?php endif; ?><div id=”ja-contentwrap” class=”<?php echo $this->getColumnWidth(‘cls_m’); ?>”>
<?php
$inset1 = $this->getPositionName (‘inset1’);
$inset2 = $this->getPositionName (‘inset2’);
?>
<div id=”ja-content” class=”column” style=”width:<?php echo $this->getColumnWidth(‘cw’) ?>%”><div id=”ja-current-content” class=”column” style=”width:<?php echo $this->getColumnWidth(‘c’) ?>%”>
<?php
$content_top = $this->getPositionName (‘content-top’);
if($this->countModules($content_top)) : ?>
<div class=”ja-content-top clearfix”>
<div class=”ja-rs5-top”><div class=”ja-rs5-tl”> </div><div class=”ja-rs5-tr”> </div></div><div class=”ja-rs5-mid”><div class=”ja-rs5-ml”><div class=”ja-rs5-mr”>
<jdoc:include type=”modules” name=”<?php echo $content_top;?>” style=”JAxhtml” />
</div></div></div><div class=”ja-rs5-bot”><div class=”ja-rs5-bl”> </div><div class=”ja-rs5-br”> </div></div>
</div>
<?php endif; ?><?php $contents = $this->getBuffer(‘component’);
if (!preg_match (‘/<div class=”blog”>s*</div>/’,$contents)) :?>
<div class=”ja-content-main clearfix”>
<div class=”ja-rs5-top”><div class=”ja-rs5-tl”> </div><div class=”ja-rs5-tr”> </div></div><div class=”ja-rs5-mid”><div class=”ja-rs5-ml”><div class=”ja-rs5-mr clearfix”>
<jdoc:include type=”component” />
</div></div></div><div class=”ja-rs5-bot”><div class=”ja-rs5-bl”> </div><div class=”ja-rs5-br”> </div></div>
</div>
<?php endif; ?><?php
$content_bottom = $this->getPositionName (‘content-bottom’);
if($this->countModules($content_bottom)) : ?>
<div class=”ja-content-bottom clearfix”>
<jdoc:include type=”modules” name=”<?php echo $content_bottom;?>” style=”JAxhtml” />
</div>
<?php endif; ?>
</div><?php if($this->countModules($inset1)) : ?>
<div class=”ja-col column ja-inset1″ style=”width:<?php echo $this->getColumnWidth(‘i1’) ?>%”>
<jdoc:include type=”modules” name=”<?php echo $inset1;?>” style=”JAxhtml” />
</div>
<?php endif; ?></div>
<?php if($this->countModules($inset2)) : ?>
<div class=”ja-col column ja-inset2″ style=”width:<?php echo $this->getColumnWidth(‘i2’) ?>%”>
<div class=”ja-rs5-top”><div class=”ja-rs5-tl”> </div><div class=”ja-rs5-tr”> </div></div><div class=”ja-rs5-mid”><div class=”ja-rs5-ml”><div class=”ja-rs5-mr”>
<jdoc:include type=”modules” name=”<?php echo $inset2;?>” style=”JAxhtml” />
</div></div></div><div class=”ja-rs5-bot”><div class=”ja-rs5-bl”> </div><div class=”ja-rs5-br”> </div></div>
</div>
<?php endif; ?>
</div><?php
$mass_bottom = $this->getPositionName (‘content-mass-bottom’);
if($this->countModules($mass_bottom)) : ?>
<div class=”ja-mass ja-mass-bottom clearfix”><div class=”ja-rs5-top”><div class=”ja-rs5-tl”> </div><div class=”ja-rs5-tr”> </div></div>
<div class=”ja-rs5-mid”><div class=”ja-rs5-ml”><div class=”ja-rs5-mr”>
<jdoc:include type=”modules” name=”<?php echo $content_top;?>” style=”JAxhtml” />
</div></div></div><div class=”ja-rs5-bot”><div class=”ja-rs5-bl”> </div><div class=”ja-rs5-br”> </div></div>
</div>
<?php endif; ?></div>
</div>
<!– //CONTENT –>[/PHP]August 14, 2010 at 12:09 am #352663Hi All,
I am trying to achieve the same thing however I am not able to follow what changes have been done.
Would appreciate it if someone could explain the changes 🙂
AuthorPostsThis topic contains 16 replies, has 3 voices, and was last updated by Saguaros 14 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum