By Katie Browning on Saturday, 07 December 2013
Posted in General Issues
Replies 5
Likes 0
Views 619
Votes 0
Hi there,

I was wondering if you could tell me how I can removing the code that makes that dark popup over the avatar that says "Edit Avatar".

I did it the other day (I forgot how) but it also took away "edit cover" which Id like to keep.

Love any help you can give!
Thanks so much
Katie
Hello Katie,

You will need to edit the file /components/com_easysocial/themes/wireframe/profile/default.header.php
·
Saturday, 07 December 2013 15:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry Mark, I tried but couldnt figure out which code to take out :P

So sorry would you mind giving me another clue?

Katie
·
Saturday, 07 December 2013 16:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Katie,

Sorry, edit the file /components/com_easysocial/themes/wireframe/profile/avatar.php and remove the codes below,


<?php if( $user->id == $this->my->id ){ ?>
<div class="es-flyout-content">
<div class="dropdown_ es-avatar-menu" data-avatar-menu>
<a href="javascript:void(0);"
class="es-flyout-button dropdown-toggle_"
data-fd-toggle="dropdown"><i class="ies-cog-2"></i><?php echo JText::_( 'COM_EASYSOCIAL_PHOTOS_EDIT_AVATAR' );?></a>
<ul class="dropdown-menu">
<li data-avatar-upload-button>
<a href="javascript:void(0);"><?php echo JText::_("COM_EASYSOCIAL_PHOTOS_UPLOAD_AVATAR"); ?></a>
</li>
<li data-avatar-select-button>
<a href="javascript:void(0);"><?php echo JText::_( 'COM_EASYSOCIAL_PHOTOS_SELECT_AVATAR' ); ?></a>
</li>
<?php if ($user->hasAvatar()) { ?>
<li class="divider"></li>
<li data-avatar-remove-button>
<a href="<?php echo FRoute::_( 'index.php?option=com_easysocial&controller=profile&task=removeAvatar' , true , '' , null , true );?>"><?php echo JText::_("COM_EASYSOCIAL_PHOTOS_REMOVE_AVATAR"); ?></a>
</li>
<?php } ?>
</ul>
</div>
</div>
<?php } ?>

·
Saturday, 07 December 2013 18:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Awesome!! That worked great!!

Thanks so much Mark, I truly appreciate it

This is just a way for me to moderate the members avatar, and they can upload new ones to directly to me, to be moderated before I add it myself.

Cheers
Katie
·
Saturday, 07 December 2013 19:33
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Katie but I think your idea is a little crazy though :x If you have 1,000,000 user's you are going to have a hard time updating all these avatars
·
Saturday, 07 December 2013 22:05
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post