WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Gaston
    Member
    Posted 1 year 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; ?>

    http://wordpress.org/extend/plugins/simple-local-avatars/

    [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
    Member
    Posted 1 year ago #

    Duplicated

  3. Dustin Lammiman
    Member
    Posted 1 year 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

About this Topic