Forums » SEPHP Help and Tips

Photo Album | Hide "Make Profile Photo"

    • 237 posts
    January 7, 2019 7:10 PM EST

    Been trying to hide a portion of the links under a photo

    - Share - Report - Make Profile Photo

    > Make Profile Photo

    I haven't found the right CSS and couldn't find it in the module CSS.

    Just don't want to encourage users to make someone else's photo their avatar

    Any tips would be appreciated 

    This post was edited by Miami Shade at January 7, 2019 7:35 PM EST
    • 3422 posts
    January 8, 2019 6:09 AM EST

    It would be a source edit and would be overwritten on upgrades. The following would be at your own risk and not supported by SocialEngine.

    Open application/modules/album/views/scripts/photo/view.tpl and make a copy of that before doing anything else.

    Edit line 196 to either remove the following or comment it out:

    - <?php echo $this->htmlLink(array('route' => 'user_extended', 'controller' => 'edit', 'action' => 'external-photo', 'photo' => $this->photo->getGuid(), 'format' => 'smoothbox'), $this->translate('Make Profile Photo'), array('class' => 'smoothbox')) ?>


    It didn't blow up anything to remove it from my dev site. Clear cache when done. Again, this is not supported by SocialEngine.

    • 237 posts
    January 8, 2019 8:10 PM EST

    Thanks so much @Donna I will give it a try 

    • 3422 posts
    January 9, 2019 4:41 AM EST

    You're welcome. Please update this thread and let us know if it worked for you. In case other clients want to do the same. Thank you!