-
AuthorPosts
-
beta777 Friend
beta777
- Join date:
- December 2008
- Posts:
- 72
- Downloads:
- 8
- Uploads:
- 2
- Thanks:
- 13
- Thanked:
- 1 times in 1 posts
December 27, 2010 at 9:17 pm #157933I’ve read all this topics:
*
Create a new module position
*
News ticker below top menu (Create new module and position?)
*
How to create a new module position
*
How to create a new module position
*
New Module Position : How to create ?But I can’t create the top of main content area in ja-social looking the same like in Teline IV:
sl1-l, sl1-r
ja-news; col-mass-topJust adding new module positions doesn’t help – only template breaks.
Can somebody explaine how to make the changes in template?TIA for your help
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
December 27, 2010 at 9:48 pm #368835Not 100% sure what you are asking but in JA Social you want a single block above the content -main and a single block above left and right columns? You can have a single block above the content-main but you will break the layout if you try and put a block above left+right unless you remove firs the contnet-mass-top where the slideshows are.
beta777 Friendbeta777
- Join date:
- December 2008
- Posts:
- 72
- Downloads:
- 8
- Uploads:
- 2
- Thanks:
- 13
- Thanked:
- 1 times in 1 posts
December 27, 2010 at 10:02 pm #368838<em>@phill luckhurst 211138 wrote:</em><blockquote>but you will break the layout if you try and put a block above left+right unless you remove firs the contnet-mass-top where the slideshows are.</blockquote>
Very interesting… so, I cannot use contnet-mass-top if I’d like to use custom module positions above the main content?
phill luckhurst, thank you for the tip, I’ll try to remove contnet-mass-top.Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
December 27, 2010 at 10:07 pm #368839Simply because in JA Social the right menu goes alongside the contnet-mass-top so if you want a box above left and right where would you find the space?
Go to the JA Social demo and add ?tp=1 to the end and you will see what I mean.
beta777 Friendbeta777
- Join date:
- December 2008
- Posts:
- 72
- Downloads:
- 8
- Uploads:
- 2
- Thanks:
- 13
- Thanked:
- 1 times in 1 posts
December 28, 2010 at 10:41 am #368913<em>@phill luckhurst 211143 wrote:</em><blockquote>where would you find the space?</blockquote>
This is what I’m trying to find out. Actually, I need contnet-mass-top and I’d like to have blocks like sl1-l, sl1-r (in Teline) above contnet-mass-top and right menu. Maybe there is some solution to add needed blocks without deleting others?
beta777 Friendbeta777
- Join date:
- December 2008
- Posts:
- 72
- Downloads:
- 8
- Uploads:
- 2
- Thanks:
- 13
- Thanked:
- 1 times in 1 posts
December 31, 2010 at 2:20 am #369448Joomstaff, may I have an answer, please?
December 31, 2010 at 9:42 pm #369548Call me crazy…but why don’t you just use JA Teline IV and then add/change mods/plugins to do what JA Social does?
beta777 Friendbeta777
- Join date:
- December 2008
- Posts:
- 72
- Downloads:
- 8
- Uploads:
- 2
- Thanks:
- 13
- Thanked:
- 1 times in 1 posts
January 1, 2011 at 11:54 pm #369618<blockquote>why don’t you just use JA Teline IV</blockquote>
I was trying this “trick”. I have the site builded on ja social and before I came here to ask my questions, I made several attempts to make some of pages work on teline IV template. But this new framework system doesn’t work with other templates, and when I was trying to change/move to teline site just messed up. I have live site and can’t start to play with new installing of teline and moving content.
It seems to me, that adding two new positions would be better solution in my case – I’ve already spent a lot of time on ja socia to make it work correctly.
But here is so hard to get some support when you have “little bit more difficult” question!
Dear tlcbn, if you know how to solve my problem, please, answer to me. If you don’t know – thank you for your post, but I’m not interesting in your “just opinion”. Happy New year!Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
January 3, 2011 at 11:42 pm #369894<em>@beta777 212164 wrote:</em><blockquote>Dear tlcbn, if you know how to solve my problem, please, answer to me. If you don’t know – thank you for your post, but I’m not interesting in your “just opinion”. Happy New year!</blockquote>
Please be careful the way you word things, tlcbn was trying to assist and your response may be read as a little on the rude side.
<em>@beta777 212164 wrote:</em><blockquote>But here is so hard to get some support when you have “little bit more difficult” question!</blockquote>
It is not a matter of being hard, more a matter of the poor timing. With the holiday period I have been a little busy. In addition, this is a customization, not really a standard support question. We need to customize the layout outside of the current design parameters so it took me a little more effort than I expected. I’m not a developer of the t3 system, just a keen helper to JA. As such I have not fully twigged with T3 yet.
As for the layout you want the only way I can see of doing this is a hack to the core jat3 plugin. Again, as I am not fully familiar with the T3V2 system
I am sure there must be a better way. At the moment your changes will be lost if an update to the plugin is done.I am not sure how or where to perform the correct override to do this in the template folder. so here goes.First we add a div in the correct place for your need with the name we want. To do that open plugins/system/jat3/base-themes/page/default.php and replace all the code therein with the following (I’ve highlighted my additional code in red)
<?php
/*
# ------------------------------------------------------------------------
# JA T3v2 Plugin - Template framework for Joomla 1.5
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license - GNU/GPL V2, http://www.gnu.org/licenses/gpl2.html. For details
# on licensing, Please Read Terms of Use at http://www.joomlart.com/terms_of_use.html.
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/
?>
<?php if ($this->isIE() && ($this->isRTL())) { ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<?php } else { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php } ?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>">
<head>
<?php //gen head base on theme info
$this->showBlock ('head');
?>
<?php
$blocks = T3Common::node_children($this->getBlocksXML ('head'), 'block');
foreach ($blocks as $block) :
$this->showBlock ($block);
endforeach;
?><?php echo $this->loadBlock ('css') ?>
</head>
<body id="bd" class="<?php echo $this->getBodyClass();?>">
<div id="ja-wrapper">
<a name="Top" id="Top"></a><?php
$blocks = T3Common::node_children($this->getBlocksXML ('top'), 'block');
foreach ($blocks as $block) :
$this->showBlock ($block);
endforeach;
?>
<!-- MAIN CONTAINER -->
<div id="ja-container" class="wrap <?php echo $this->getColumnWidth('cls_w')?$this->getColumnWidth('cls_w'):'ja-mf'; ?>"><?php $this->genBlockBegin ($this->getBlocksXML ('middle')) ?><?php echo $this->loadBlock ('message') ?>
<?php
//content-mass-top2
if($this->hasBlock('content-mass-top2')) :
$block = $this->getBlockXML ('content-mass-top2');
?>
<div id="ja-content-mass-top2" class="ja-mass ja-mass-top clearfix">
<?php $this->showBlock ($block); ?>
</div>
<?phpendif; ?>
<div id="ja-mainbody" style="width:<?php echo $this->getColumnWidth('mw') ?>%">
<!-- CONTENT -->
<div id="ja-main" style="width:<?php echo $this->getColumnWidth('m') ?>%">
<div class="inner clearfix"><?php
//content-mass-top
if($this->hasBlock('content-mass-top')) :
$block = $this->getBlockXML ('content-mass-top');
?>
<div id="ja-content-mass-top" class="ja-mass ja-mass-top clearfix">
<?php $this->showBlock ($block); ?>
</div>
<?phpendif; ?>
<div id="ja-contentwrap" class="clearfix <?php echo $this->getColumnWidth('cls_m'); ?>">
<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
if($this->hasBlock('content-top')) :
$block = $this->getBlockXML ('content-top');
?>
<div id="ja-content-top" class="ja-content-top clearfix">
<?php $this->showBlock ($block); ?>
</div>
<?php endif; ?><?php if (!$this->getParam ('hide_content_block', 0)): ?>
<div id="ja-content-main" class="ja-content-main clearfix">
<?php echo $this->showBlock ('content') ?>
</div>
<?php endif ?>
<?php
//content-bottom
if($this->hasBlock('content-bottom')) :
$block = $this->getBlockXML ('content-bottom');
?>
<div id="ja-content-bottom" class="ja-content-bottom clearfix">
<?php $this->showBlock ($block); ?>
</div>
<?php endif; ?>
</div><?php
//inset1
if($this->hasBlock('inset1')) :
$block = $this->getBlockXML ('inset1');
?>
<div id="ja-inset1" class="ja-col column ja-inset1" style="width:<?php echo $this->getColumnWidth('i1') ?>%">
<?php $this->showBlock ($block); ?>
</div>
<?php endif; ?>
</div>
<?php
//inset2
if($this->hasBlock('inset2')) :
$block = $this->getBlockXML ('inset2');
?>
<div id="ja-inset2" class="ja-col column ja-inset2" style="width:<?php echo $this->getColumnWidth('i2') ?>%">
<?php $this->showBlock ($block); ?>
</div>
<?php endif; ?></div>
<?php
//content-mass-bottom
if($this->hasBlock('content-mass-bottom')) :
$block = $this->getBlockXML ('content-mass-bottom');
?>
<div id="ja-content-mass-bottom" class="ja-mass ja-mass-bottom clearfix">
<?php $this->showBlock ($block); ?>
</div>
<?php endif; ?>
</div>
</div>
<!-- //CONTENT -->
<?php if (($l = $this->getColumnWidth('l'))): ?>
<!-- LEFT COLUMN-->
<div id="ja-left" class="column sidebar" style="width:<?php echo $l ?>%">
<?php
//left-mass-top
if($this->hasBlock('left-mass-top')) :
$block = $this->getBlockXML ('left-mass-top');
?>
<div id="ja-left-mass-top" class="ja-mass ja-mass-top clearfix">
<?php $this->showBlock ($block); ?>
</div>
<?php endif; ?>
<?php
$cls1 = $cls2 = "";
if ($this->hasBlock('left1') && $this->hasBlock('left2')) {
$cls1 = "ja-left1";
$cls2 = "ja-left2";
}
if ($this->hasBlock('left1') || $this->hasBlock('left2')):
?>
<div class="ja-colswrap clearfix <?php echo $this->getColumnWidth('cls_l'); ?>">
<?php if ($this->hasBlock('left1')):
$block = $this->getBlockXML('left1');
?>
<div id="ja-left1" class="ja-col <?php echo $cls1;?> column" style="width:<?php echo $this->getColumnWidth('l1')?>%">
<?php $this->showBlock ($block); ?>
</div>
<?php endif ?>
<?php if ($this->hasBlock('left2')):
$block = $this->getBlockXML('left2');
?>
<div id="ja-left2" class="ja-col <?php echo $cls2;?> column" style="width:<?php echo $this->getColumnWidth('l2')?>%">
<?php $this->showBlock ($block); ?>
</div>
<?php endif ?>
</div>
<?php endif ?>
<?php
//left-mass-bottom
if($this->hasBlock('left-mass-bottom')) :
$block = $this->getBlockXML ('left-mass-bottom');
?>
<div id="ja-left-mass-bottom" class="ja-mass ja-mass-bottom clearfix">
<?php $this->showBlock ($block); ?>
</div>
<?php endif; ?>
</div>
<!-- //LEFT COLUMN-->
<?php endif; ?></div>
<?php if (($r = $this->getColumnWidth('r'))): ?>
<!-- RIGHT COLUMN-->
<div id="ja-right" class="column sidebar" style="width:<?php echo $r ?>%">
<?php
//left-mass-top
if($this->hasBlock('right-mass-top')) :
$block = $this->getBlockXML ('right-mass-top');
?>
<div id="ja-right-mass-top" class="ja-mass ja-mass-top clearfix">
<?php $this->showBlock ($block); ?>
</div>
<?php endif; ?>
<?php
$cls1 = $cls2 = "";
if ($this->hasBlock('right1') && $this->hasBlock('right2')) {
$cls1 = "ja-right1";
$cls2 = "ja-right2";
}
if ($this->hasBlock('right1') || $this->hasBlock('right2')): ?>
<div class="ja-colswrap clearfix <?php echo $this->getColumnWidth('cls_r'); ?>">
<?php if ($this->hasBlock('right1')):
$block = $this->getBlockXML('right1');
?>
<div id="ja-right1" class="ja-col <?php echo $cls1;?> column" style="width:<?php echo $this->getColumnWidth('r1')?>%">
<?php $this->showBlock ($block); ?>
</div>
<?php endif ?>
<?php if ($this->hasBlock('right2')):
$block = $this->getBlockXML('right2');
?>
<div id="ja-right2" class="ja-col <?php echo $cls2;?> column" style="width:<?php echo $this->getColumnWidth('r2')?>%">
<?php $this->showBlock ($block); ?>
</div>
<?php endif ?>
</div>
<?php endif ?>
<?php
//right-mass-bottom
if($this->hasBlock('right-mass-bottom')) :
$block = $this->getBlockXML ('right-mass-bottom');
?>
<div id="ja-right-mass-bottom" class="ja-mass ja-mass-bottom clearfix">
<?php $this->showBlock ($block); ?>
</div>
<?php endif; ?>
</div>
<!-- //RIGHT COLUMN-->
<?php endif; ?>
<?php $this->genBlockEnd ($this->getBlocksXML ('middle')) ?>
</div>
<?php
//Add fix height for main area
if (T3Common::node_attributes ($this->getBlocksXML ('middle'), 'fixheight')) {
$this->showBlock ('fixheight');
}
?>
<!-- //MAIN CONTAINER -->
<?php
$blocks = T3Common::node_children($this->getBlocksXML ('bottom'), 'block');
foreach ($blocks as $block) :
if (T3Common::getBrowserSortName() == 'ie' && T3Common::getBrowserMajorVersion() == 7) echo "<br class="clearfix"/>";
$this->showBlock ($block);
endforeach;
?>
</div><?php if ($this->isIE6()) : ?>
<?php $this->showBlock('ie6/ie6warning') ?>
<?php endif; ?>
<?php $this->showBlock('debug') ?>
</body>
</html>then open your template manager and in the default layout add the line in red below.
<?xml version="1.0" encoding="utf-8"?>
<layout name="desktop">
<!--Extra css load for this layout-->
<stylesheets>
</stylesheets>
<blocks name="top" style="xhtml">
<block name="top-panel" type="modules" style="jaraw" main-inner="1">top-panel</block>
<block name="header" type="header" main-inner="1"></block>
<block name="topbar" type="topbar"></block>
<block name="mainnav" type="mainnav"></block>
<block name="cpanel" type="usertools/cpanel"></block>
</blocks>
<blocks name="middle" >
<block name="content-mass-top2" type="spotlight" specialwidth="66" style="xhtml">sl1-l,sl1-r</block>
<block name="content-mass-top" style="jaraw">content-mass-top</block>
<block name="content-top" type="spotlight">user1,user2,user3</block>
<block name="inset2">left</block>
<block name="right2">right</block>
</blocks>
<blocks name="bottom" style="xhtml">
<block name="botsl" type="spotlight" main-inner="1">user6,user7,user8,user9,user10</block>
<block name="navhelper" type="navhelper" main-inner="1"></block>
<block name="footer" type="footer"></block>
<block name="ie-rounded" type="ie-rounded" no-main="1" no-wrap="1"></block>
</blocks>
</layout>I am sure there must be a better way but I cannot for the life of me figure it out.
You may also have to adjust the figure in speacialwidth=”66″ to meet your needs better. That adjusts the ratio of the 2 column (sl1-l and sl1-r) widths. Currently the right one takes up 66% with the left the remainder.
Hope that helps.
1 user says Thank You to Phill for this useful post
Khanh Le ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
January 4, 2011 at 2:26 am #369909Thanks Phill for your so long answer. Hacking the T3v2 plugin is not the best way to gain your goal.
Looking at Teline IV layout xml file, you can see that the sl1-l, sl1-r positions does not load into middle area (<blocks name=”middle”). To bring those modules positions into JA Social, you just add the block with name “topsl1″ into Top area:
<?xml version=”1.0″ encoding=”utf-8″?>
<layout name=”desktop”>
<!–Extra css load for this layout–>
<stylesheets>
</stylesheets>
<blocks name=”top” style=”xhtml”>
<block name=”top-panel” type=”modules” style=”jaraw” main-inner=”1″>top-panel</block>
<block name=”header” type=”header” main-inner=”1″></block>
<block name=”topbar” type=”topbar”></block>
<block name=”mainnav” type=”mainnav”></block>
<block name=”cpanel” type=”usertools/cpanel”></block><block name=”topsl1″ type=”spotlight” special=”left” specialwidth=”66″>sl1-l,sl1-r</block>
</blocks>
<blocks name=”middle” colwidth=”22″>
<block name=”content-mass-top” style=”jaraw”>content-mass-top</block>
<block name=”content-top” type=”spotlight”>user1,user2,user3</block>
<block name=”inset2″>left</block>
<block name=”right2″>right</block>
</blocks>
<blocks name=”bottom” style=”xhtml”>
<block name=”botsl” type=”spotlight” main-inner=”1″>user6,user7,user8,user9,user10</block>
<block name=”navhelper” type=”navhelper” main-inner=”1″></block>
<block name=”footer” type=”footer”></block>
<block name=”ie-rounded” type=”ie-rounded” no-main=”1″ no-wrap=”1″></block>
</blocks>
</layout>You can change the specialwidth value to meed your need.
1 user says Thank You to Khanh Le for this useful post
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
January 4, 2011 at 6:57 am #369933Would tht not leave the extra two module positions in the green section at the top?
Khanh Le ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
January 4, 2011 at 7:17 am #369935<em>@phill luckhurst 212573 wrote:</em><blockquote>Would tht not leave the extra two module positions in the green section at the top?</blockquote>
That depends on your style. You can add such following style to make the backgound of the new block white:
#ja-topsl1 {background: #fff;}
beta777 Friendbeta777
- Join date:
- December 2008
- Posts:
- 72
- Downloads:
- 8
- Uploads:
- 2
- Thanks:
- 13
- Thanked:
- 1 times in 1 posts
January 4, 2011 at 1:35 pm #370013phill luckhurst
khanh leThank you both very much for detailed answers!
I’ll try to modify a template following your instructions.beta777 Friendbeta777
- Join date:
- December 2008
- Posts:
- 72
- Downloads:
- 8
- Uploads:
- 2
- Thanks:
- 13
- Thanked:
- 1 times in 1 posts
January 5, 2011 at 1:54 am #370101phill luckhurst
khanh le
I appreciate your efforts to help me and your time spent on my question, but…
Unfortunately, it doesn’t work.
I’ve made modifications, cleaned cookies, checked “100” times that there is not some my mistake – nothing happened! Even the template doesn’t broke (it’s joke).
Seriously:
Ok, it’s not adjusting, it’s modification of the template, but I expected to get more professional help from moderators in case that answering on this forum is their work. Guys, if you are volunteŠµrs, I’m sorry for my hopes and expectations. Then you haven’t read further.
At very first time I saw your answers, I haven’t time to study carefully given codes, I just thanked you cos it was pleasure to get answers from stuff. Later I found that those things I was trying before by myself after learning on this forum all topics concerning a creation of module positions. Anyway, I repeated my exercises from beginning once again following given instructions.
I try to ask questions at the forum as rarely as possible, because when I do not get answers or get a formal replies, I have really bad mood.I don’t want to use the ticket system because last time I leaved one, it takes three month before I get an answer from support without the answer on my questions. Additionally, as mentioned phill luckhurst, I understand, that my question isn’t about a bug or about an adjusting of the template. And it was the reason why I asked my question here – in hope that maybe moderators (workers) know the products what they represent “with eyes closed”.
I’m not trying to offend somebody, I’m just very disappointed once again that your and my time lost in vain … -
AuthorPosts
This topic contains 16 replies, has 4 voices, and was last updated by Phill 13 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum