-
AuthorPosts
-
Aratype Friend
Aratype
- Join date:
- August 2007
- Posts:
- 797
- Downloads:
- 41
- Uploads:
- 60
- Thanks:
- 194
- Thanked:
- 98 times in 6 posts
October 26, 2011 at 9:45 am #170074After working on this grate template, I think that JA designers forgot to add some excellent fonctions:
Date
Last update of the siteLogin, creat an account
as in JA Social
What you think? it could be added to this template?
Thanking you in advance
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
Aratype FriendAratype
- Join date:
- August 2007
- Posts:
- 797
- Downloads:
- 41
- Uploads:
- 60
- Thanks:
- 194
- Thanked:
- 98 times in 6 posts
October 26, 2011 at 4:23 pm #421704Thank you Pavit…
After testing the ergonomy of this site I would propose to not add ja-login position.
Is it possible to divide the request in 2 parts:
Login, creat an accountI would like to put them in the breadcomb of the first page only.
Date and Last updateI would like to put them in the Main menu “top.mainnav”
How could I do this gymnastics?
Thanking you in advance
Aratype
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
October 26, 2011 at 4:36 pm #421707Hi aratype
I’ll make a couple of tests about your request
I think it’s possible to do for all, my only doubt is for Ja_Login only in first page but i think that we can obtain this with the Layout override
Let me some time to test
Thanks
Aratype FriendAratype
- Join date:
- August 2007
- Posts:
- 797
- Downloads:
- 41
- Uploads:
- 60
- Thanks:
- 194
- Thanked:
- 98 times in 6 posts
October 26, 2011 at 6:02 pm #421734Many thanks Pavit. I know it is a challenge… I have this idea in order to use free space in something more interesting.
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
October 26, 2011 at 8:30 pm #421753Hi aratype
well i have found this solution
1) Ja_Login module in breadcrumbs (to have it only in Home page you must assign the module only to Home)
goto your topbar.php you have now
?>
<?php $this->genBlockBegin ($block) ?><p class="ja-day">
<?php
echo "<span class="day">".JText::_(strtoupper(date ('l')))."</span>";
echo "<span class="date">, ".date ('m')." ".date ('d').date ('S')."</span>";
?>
</p>
<?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; ?>
<?php $this->genBlockEnd ($block) ?>copy these lines of code in your pluginssystemjat3jat3base-themesdefaultblocks navhelper.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; ?>delete them from topbar.php
so your new navhelper.php will be like this
?>
<?php
//detect view on mobile - show switch to mobile tools
$layout_switcher = $this->loadBlock('usertools/layout-switcher');
if ($layout_switcher) {
$layout_switcher = '<li class="layout-switcher">'.$layout_switcher.'</li>';
}
?>
<div class="ja-breadcrums">
<jdoc:include type="module" name="breadcrumbs" />
</div><ul class="ja-links">
<?php echo $layout_switcher ?>
<li class="top"><a href="<?php echo $this->getCurrentURL();?>#Top" title="<?php echo JText::_("BACK_TO_TOP") ?>"><?php echo JText::_('TOP') ?></a></li>
</ul>
<?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; ?>
<ul class="no-display">
<li><a href="<?php echo $this->getCurrentURL();?>#ja-content" title="<?php echo JText::_("SKIP_TO_CONTENT");?>"><?php echo JText::_("SKIP_TO_CONTENT");?></a></li>
</ul>goto your template.css and find this line of code
#ja-headtools {
position: absolute;
right: 15px;
top: 5px;
}modify it in
#ja-headtools {
position: absolute;
right: 85px;
top: 10px;
}in the same file template.css find this line of code
#ja-user-register, #ja-user-login {
background: url("../images/ja-login-bg.gif") repeat-x scroll left bottom #FFFFFF;
border: 1px solid #A1D5E9;
border-radius: 5px 5px 5px 5px;
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.4);
color: #333333;
display: none;
height: auto;
overflow: hidden;
padding: 10px 15px;
position: absolute;
right: -15px;
text-align: left;
top: 21px; <-----------------------change this to bottom: 35px;
z-index: 999;
}<blockquote>Date and Last update
I would like to put them in the Main menu “top.mainnav”</blockquote>
You have your mainnav rtlized so i think the Date and last update will be positioned to the first left available position in the menu right ?
1 user says Thank You to pavit for this useful post
Aratype FriendAratype
- Join date:
- August 2007
- Posts:
- 797
- Downloads:
- 41
- Uploads:
- 60
- Thanks:
- 194
- Thanked:
- 98 times in 6 posts
October 26, 2011 at 8:59 pm #421760Many thanks for all this!!!
I think the best position for the date and last update will be the left side as the right side is filled with the Menu…
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
October 27, 2011 at 7:25 am #421808Ok
Try this settings
in your pluginssystemjat3jat3base-themesdefaultblocksmainnav.php now you have
// No direct access
defined('_JEXEC') or die;
?><?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu (); ?>
<!-- jdoc:include type="menu" level="0" / -->
<?php if ($this->hasSubmenu() && ($jamenu = $this->loadMenu())) : ?>
<div id="ja-subnav" class="clearfix">
<?php $jamenu->genMenu (1); ?>
<!-- jdoc:include type="menu" level="1" / -->
</div>
<?php endif;?>
<ul class="no-display">
<li><a href="<?php echo $this->getCurrentURL();?>#ja-content" title="<?php echo JText::_("SKIP_TO_CONTENT");?>"><?php echo JText::_("SKIP_TO_CONTENT");?></a></li>
</ul>change to
// No direct access
defined('_JEXEC') or die;
?>
<p class="ja-day">
<?php
echo "<span class="day">".JText::_(strtoupper(date ('l')))."</span>";
echo "<span class="date">, ".date ('m')." ".date ('d').date ('S')."</span>";
?>
</p>
<p class="ja-updatetime"><span><?php echo JText::_('Last update')?></span><em><?php echo T3Common::getLastUpdate(); ?></em></p>
<?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu (); ?><!-- jdoc:include type="menu" level="0" / -->
<?php if ($this->hasSubmenu() && ($jamenu = $this->loadMenu())) : ?>
<div id="ja-subnav" class="clearfix">
<?php $jamenu->genMenu (1); ?>
<!-- jdoc:include type="menu" level="1" / -->
</div>
<?php endif;?>
<ul class="no-display">
<li><a href="<?php echo $this->getCurrentURL();?>#ja-content" title="<?php echo JText::_("SKIP_TO_CONTENT");?>"><?php echo JText::_("SKIP_TO_CONTENT");?></a></li>
</ul>then go to /templates/ja_erio/css/template.css in the mainnav section around line 945 add these lines
#ja-mainnav .ja-day {
background: url none no-repeat right center;
display: block;
float: left;
margin-left: 5px;
padding-right: 10px;
color:#FFF
}#ja-mainnav .ja-updatetime {
float: left;
padding: 0 10px;
color:#FFF
}#ja-mainnav .ja-updatetime em {
margin-left: 5px;
font-style: normal;
color: #fff;
}1 user says Thank You to pavit for this useful post
Aratype FriendAratype
- Join date:
- August 2007
- Posts:
- 797
- Downloads:
- 41
- Uploads:
- 60
- Thanks:
- 194
- Thanked:
- 98 times in 6 posts
October 27, 2011 at 12:37 pm #421891Many thanks!
I could apply it and customize it as indicated in the thread: http://www.joomlart.com/forums/topic/localizing-date-and-last-update-time-on-top-of-page/
Remarque: “Last update” wording need to be customized in mainnav.php file
Regarding Ja_Login module in breadcrumbs:
As the main page have no activated breadcrumb (logic as we are in the main page) the breadcrumbs are activated in other pages…
I think we have to create a second breadcrumb to be applied only on the main page and NOT include the name of the page but only JA_Login. Is it possible to do that or it is absurd?
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
Aratype FriendAratype
- Join date:
- August 2007
- Posts:
- 797
- Downloads:
- 41
- Uploads:
- 60
- Thanks:
- 194
- Thanked:
- 98 times in 6 posts
October 30, 2011 at 12:26 pm #422428Many thanks Pavit,
I have to think again about the places of this as I noticed that Lastupdate would change the height of Top Menu and cause problems to Mega
menu…We will have next step dev after the lunch of RTL site on the next week…
Many thanks for your nice collaboration…
-
AuthorPosts
This topic contains 12 replies, has 2 voices, and was last updated by pavit 13 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum