Simple Local Avatars
[resolved] Adding a Fix to works on BBpress user edit (3 posts)

  1. Gaston
    Posted 3 years ago #

    I did this fix on simple-local-avatars.php in the line 154 and works ok:

    <?php if (bbp_is_user_home_edit()) : ?>
    		<script type="text/javascript">var form = document.getElementById('bbp-user-edit-form');form.encoding = 'multipart/form-data';form.setAttribute('enctype', 'multipart/form-data');</script>
    	<?php else : ?>
    		<script type="text/javascript">var form = document.getElementById('your-profile');form.encoding = 'multipart/form-data';form.setAttribute('enctype', 'multipart/form-data');</script>
    	<?php endif; ?>


    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum's parser.]

  2. Gaston
    Posted 3 years ago #


  3. Dustin Lammiman
    Posted 3 years ago #

    @Gaston - Could you give a full description of what you did to get this working? Does it allow users to upload a custom avatar from the profile edit screen on the front end?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Local Avatars
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic