By John Whelan on Thursday, 29 May 2014
Posted in General Issues
Replies 9
Likes 0
Views 883
Votes 0
I want to remove the link from my users' profile cover and avatar in order to prevent the photo album popup from displaying.

How do I accomplish that?
You will need to edit 2 files, mainly

/components/com_easysocial/themes/wireframe/profile/avatar.php and cover.php

Then, remove the codes below,


<li data-cover-select-button>
<a href="javascript:void(0);"><?php echo JText::_( 'COM_EASYSOCIAL_PHOTOS_SELECT_COVER' ); ?></a>
</li>



<li data-avatar-select-button>
<a href="javascript:void(0);"><?php echo JText::_( 'COM_EASYSOCIAL_PHOTOS_SELECT_AVATAR' ); ?></a>
</li>
·
Thursday, 29 May 2014 11:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Removing these codes does not prevent the pointer from turning into a finger and launching the popup then clicked. Is that triggered somewhere else?
·
Saturday, 31 May 2014 05:35
·
0 Likes
·
0 Votes
·
0 Comments
·
For avatar.php i removed the link this way

Replace this code

<a href="<?php echo $user->getAvatarPhoto() ? 'javascript:void(0);' : $user->getPermalink();?>" class="es-avatar es-avatar-large" 
<?php echo $user->getAvatarPhoto() && $this->my->getPrivacy()->validate('photos.view', $user->getAvatarPhoto()->id, SOCIAL_TYPE_PHOTO, $user->id) ? 'data-es-photo="' . $user->getAvatarPhoto()->id . '"' : '';?>>
<img data-avatar-image src="<?php echo $user->getAvatar( SOCIAL_AVATAR_SQUARE );?>" alt="<?php echo $this->html( 'string.escape' , $user->getName() );?>">
</a>


with just the plain avatar

	<div class="es-avatar es-avatar-large">
<img data-avatar-image src="<?php echo $user->getAvatar( SOCIAL_AVATAR_SQUARE );?>" alt="<?php echo $this->html( 'string.escape' , $user->getName() );?>">
</div>


i didn't have a chance to look at the cover but should be pretty much the same idea.
·
Saturday, 31 May 2014 06:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you. I'll give it a shot and report back.
·
Saturday, 31 May 2014 12:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing Mist
·
Saturday, 31 May 2014 13:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Mist,

Your solution definitely works for the profile picture, but it appears that the cover popup is implemented in a different way. And, looking at themes/profile/cover.php file I cannot even see where the link is actually generated. I could use a pointed in the right direction here.

- John W.
·
Monday, 02 June 2014 12:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello John,

Remove this from the cover.php file somewhere around line 15


<?php echo $cover->photo_id ? 'data-es-photo="' . $cover->photo_id . '"' : '';?>
·
Monday, 02 June 2014 23:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Mark for the solution .

John, also for the cover area, remove the cursor : pointer declaration from the css, override the default css with the one below

body div#fd.es .es-profile-cover {cursor:auto !important;}
·
Tuesday, 03 June 2014 20:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing Mist
·
Tuesday, 03 June 2014 23:27
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post