Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

DO NOT allow change of profile picture

10 years 3 months ago
Licenses:
JomSocial Expired

Hi,
Is there a way to stop the default profile image from being changed?
Thanks
Rich

10 years 3 months ago
Licenses:

Hi Ritchie,

1. remove change profile picture from jomsocial menu item (joomla menu manage)
2. and follow this override ( documentation.jomsocial.com/wiki/Customizing_Template ) steps:
copy userinfo.php from /components/com_community/templates/default/modules/profile/ to /templates/rt_alerion/html/com_community/modules/profile/

remove this code, around line 65

<?php if( $isMine || COwnerHelper::isCommunityAdmin() ): ?>
	<b class="js-focus-avatar-option">
		<a href="javascript:void(0)" onclick="joms.photos.uploadAvatar('profile','<?php echo $profile->id?>')"><?php echo JText::_('COM_COMMUNITY_CHANGE_AVATAR')?></a>
	</b>
<?php endif; ?>

and remove this code, around line 165
<li><a tabindex="-1" href="javascript:void(0)" onclick="joms.photos.uploadAvatar('profile','<?php echo $profile->id?>')"><?php echo JText::_('COM_COMMUNITY_CHANGE_AVATAR')?></a></li>

edit /components/com_community/views/profile/view.html.php and remove the code at line 20
$this->addSubmenuItem('index.php?option=com_community&view=profile&task=uploadAvatar', JText::_('COM_COMMUNITY_PROFILE_AVATAR_EDIT'));

Regards

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW