1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unmaintained [TH] User Edit on Front End by ThemeHouse 1.0.5

Adds a permission and interface for editing members on the front end of your site.

  1. Jon W

    Jon W Well-Known Member

    Waindigo submitted a new resource:

    User Edit on Front End by Waindigo - Adds a permission and interface for editing members on the front end of your site

    Read more about this resource...
     
    Last edited: Jun 12, 2014
  2. Jon W

    Jon W Well-Known Member

  3. Jon W

    Jon W Well-Known Member

  4. Jon W

    Jon W Well-Known Member

  5. Jon W

    Jon W Well-Known Member

  6. Jon W

    Jon W Well-Known Member

  7. Jon W

    Jon W Well-Known Member

  8. squirrly

    squirrly Active Member

    Moderators aren't able to edit fields unless they're also marked for users to be able to edit. Combinations that aren't allowing moderators to edit through the front end/edit full profile link:

    Screenshot 2014-08-15 00.34.03.png Screenshot 2014-08-15 00.32.58.png Screenshot 2014-08-15 00.33.42.png

    This one DOES allow moderator edits:
    Screenshot 2014-08-15 00.34.58.png

    Bug?
     

    Attached Files:

    Jon W likes this.
  9. Jon W

    Jon W Well-Known Member

    squirrly likes this.
  10. squirrly

    squirrly Active Member

    Ok, that kind of solves the issue for ME, as an admin, super mod, etc. (it lets me edit everything, but it's still not following the setup of the fields above - the moderator setting is useless). But my regular mods, it's like the "Edit Full User Profile" permission on the Moderator setup tab for each of them is completely useless.

    None of my mods get "Edit Full User Profile" in their Moderator Tools dropdown. Only "Edit" which corresponds with basic. And, only the sub-account custom fields are showing up, as the other custom fields are on the "Additional Contact" screen.

    Looks like the only way I can make this work is to add all these people as admins with "manage users", which REALLY defeats the purpose.
     
  11. Jon W

    Jon W Well-Known Member

    I'm a tad confused, what is wrong with assigning the Edit Full User permissions to your mods, is this not functioning correctly?
     
  12. squirrly

    squirrly Active Member

    Correct. It is not working AT ALL. Toggling that permission on/off has zero effect on anything. That's what I would prefer to do, but it doesn't work.
     
  13. Jon W

    Jon W Well-Known Member

    Have you set the 'allowed user groups' option in the add-on options?
     
  14. squirrly

    squirrly Active Member

    Yes, it is enabled. If I add Admin as noted above, it works. When I take Admin away, I can get 'edit full profile' in the moderator tools dropdown, but then I get an error when I actually click on it - You do not have permission to view this page or perform this action.

    I'm at a loss. I've tried everything.
     
  15. Jon W

    Jon W Well-Known Member

    @squirrly Can you send me a PM with some log-in details for your site and I'll have a look into it for you. Thanks
     
    Last edited: Aug 18, 2014
  16. rscarshows

    rscarshows Member

    Did you find anything, as I think I may be having a similar issue.....

    With Options -> Allow Editing of all Custom Fields checked, all custom fields are visible, and editable by moderators.
    With Options -> Allow Editing of all Custom Fields blank , only custom fields both (User editable AND Moderator editable) are editable via the front end.


    waindigo_custom_fields_edit_usereditfrontend
    <xen:foreach loop="$customFields" value="$field">
    <xen:if is="{$field.isEditable} || {$xenOptions.waindigo_userEditFrontEnd_overrideFieldsEditable}">
    <xen:include template="custom_field_edit" />
    </xen:if>
    </xen:foreach>


    Is $field.isEditable correct, or should it be $field.moderator_editable ?

    Alan
     
  17. Digital Doctor

    Digital Doctor Well-Known Member

    Useful addon :)
     
  18. Minterwute

    Minterwute New Member

    Using this addon together with Sub-accounts, I've had user (registered users, specifically) run into the issue that they get a permission error when trying to edit profile fields on their sub-accounts. Notably, they can access the edit page, but trying to save changes will result in an error. I've checked and double-checked that everything is configured correctly, and have eventually traced the bug to its source.

    A little debugging led me to function canEditFullUser() defined in Waindigo_UserEditFrontEnd_Extend_XenForo_Model_User, where the check for sub-accounts is made.
    Code:
        // Sub-account parents can edit their children.
        if ($this->_subAccountsCheck() && $options->waindigo_userEditFrontEnd_subaccountsEdit &&
      $viewingUser['user_id'] == $user['subaccount_parent_user_id']) {
            return true;
        }
    
    Specifically the issue is the comparison at $viewingUser['user_id'] == $user['subaccount_parent_user_id'], because $user and $viewingUser always refer to the same user record, and thus, will always produce false.

    Basically, one of those silly bugs everyone always seems to end up with. Thanks for your software and your support; it's excellent stuff!
     

Share This Page