By Sunny on Thursday, 06 November 2014
Posted in General Issues
Likes 0
Views 699
Votes 0
I'm trying to add avatar & logout button to mod_notifications, i have achieved some progress by adding the below

For Avatar i added below line 13 on default.php:
<div class="es-menu-item notice-recent">
<div class="es-avatar pull-left">
<img src="/<?php echo $my->getAvatar( SOCIAL_AVATAR_MEDIUM );?>" alt="<?php echo $modules->html( 'string.escape' , $my->getName() );?>" />
</div>
</div>


For Logout button i added the below just above " <?php } ?> "
<div class="es-menu-item notice-message"
data-original-title="<?php echo JText::_( 'Logout' );?>"
data-es-provide="tooltip"
data-placement="bottom"
>
<form action="index.php" id="es-mod-login-signout" method="post" data-es-menu-signout-form>
<a href="javascript:void(0);" onclick="document.getElementById( 'es-mod-login-signout' ).submit();" data-es-menu-signout>
<i class="ies-switch ies-small"></i>
<span><?php echo JText::_( '' );?></span>
</a>

<input type="hidden" name="return" value="<?php echo $logoutReturn;?>" />
<input type="hidden" name="option" value="com_easysocial" />
<input type="hidden" name="controller" value="account" />
<input type="hidden" name="task" value="logout" />
<?php echo $modules->html( 'form.token' ); ?>
</form>

</div>


Now the Avatar & Logout buttons are showing, but the display is messed (Attaching screenshot), i want to show them in a straight line with | seperators. Can you pls guide me on how?

regards
Hello Sunny,

I am really sorry but unfortunately we do not provide support for customizations We could assist you if there's a very minor css change but when I am logged into the site, I don't even see those changes that you mentioned.
·
Friday, 07 November 2014 01:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,
While updating to the latest ES version, the changes which i had done were overwritten, thanks for pointing out the module override process in another thread, i'm constantly learning!.

Now regarding the issue of having the log-out button and avatar in header position , i have managed to get the functionality right, i played around with mod_easysocial_menu. Its now functioning perfectly. But the css is in a mess, hope you can guide me on the css changes required to achieve as per attached jpg.

The module is now visible when you log into the site on the right hand side of the logo.

regards
·
Saturday, 08 November 2014 20:28
·
0 Likes
·
0 Votes
·
0 Comments
·
hello Sunny,

Sorry for late reply to this,
I have help you applied this css code in this file JoomlaFolder/template/stockadda/css/style.css

/* adjust the sytling in the Easysocial menu module */
.es-menu-item + .es-menu-item {
border-left: 1px solid rgba(0,0,0,0.05);
height: 27px;
}

body div#fd.es.mod-es-menu .es-notification .es-menu-item {
text-align: center;
}

body div#fd.es.mod-es-menu .es-notification .es-menu-item {
width: 25% !important;
}

Then I modified some of the css in this file JoomlaFolder\modules\mod_easysocial_menu\styles\style.css
After compile it then everything is fine now.
·
Monday, 10 November 2014 16:30
·
0 Likes
·
0 Votes
·
0 Comments
·

Works perfect, further i changed the tooltip to "Top" & did some minor code placement adjustments and I'm done on this!!

Thanks for your support
·
Monday, 10 November 2014 17:34
·
0 Likes
·
0 Votes
·
0 Comments
·
hello Sunny,

You're welcome.
·
Monday, 10 November 2014 17:43
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post