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

Unmaintained Custom User Fields Permissions 1.0.1

Set input/output permissions for Custom User Fields

  1. cclaerhout

    cclaerhout Well-Known Member

    cclaerhout submitted a new resource:

    Custom User Fields Permissions - Set input/output permissions for Custom User Fields

    Read more about this resource...
    Brad L and Xon like this.
  2. weiss-nicht

    weiss-nicht Member

  3. cclaerhout

    cclaerhout Well-Known Member

  4. TheLaw

    TheLaw Well-Known Member

    I'm hoping to apply the view permissions to be set to limit certain user groups. While I can hack this into the template, I'm guessing there is an easier way to do this and say "allow the following based upon the permissions set for user profile pages." I have this field appearing elsewhere but it can be linked using the same set of permissions for public display everywhere.

    Thank you very much for making this possible. It's truly indispensable.
  5. cclaerhout

    cclaerhout Well-Known Member

    If there's a question, I don't understand it.
  6. hcmagix

    hcmagix Active Member

    Not work since 1.5.X can u fix?
  7. mcatze

    mcatze Well-Known Member

    It would be great if you can fix it for 1.5.x .. (y)
  8. cclaerhout

    cclaerhout Well-Known Member

    And what exactly is the problem? I've tested all permissions in all locations and they are all working...
  9. mcatze

    mcatze Well-Known Member

    I tried it in 1.5.7 and the permissions doesn't work. I tested many scenarios with different user groups, but the custom user field is always or never visible.
  10. cclaerhout

    cclaerhout Well-Known Member

    Tested with 1.5.8 (I've just upgraded my dev board for that purpose) and can't find any problems. If someone finds more information, I will look at it.
    Xon likes this.
  11. Xon

    Xon Well-Known Member

    Works fine for me in XF 1.5.x, are you using a custom theme or have any other add-ons which change custom field?
    cclaerhout likes this.
  12. mcatze

    mcatze Well-Known Member

    I checked it again and again .. and found something weird.
    At first i use a customized UI.X Style, but no add-on which change custom fields.

    The add-on works fine in message_user_info but failed in profile pages. But only if the custom field display location is "contact details". If its personal details all is fine.

    I've tested now over 45min with different user.

    Thanks to @cclaerhout & @Xon for testing .. :D
  13. cclaerhout

    cclaerhout Well-Known Member

    Then the issue is not from the admin side, but the public one and more precisely the public view.

    Look at the three files of this directory. They all begin with this code:
    if(is_callable('parent::renderHtml')) {
    This code purpose was to allow other addons to extend the same public views than this addon extends. XenForo doesn't have any specific file for these views. I think the above code should be compatible with the XenForo proxy class system (XFCP).
    The views are :
    • XenForo_ViewPublic_Member_View
    • XenForo_ViewPublic_Account_Preferences
    • XenForo_ViewPublic_Account_PersonalDetails
    Check if the addon you mentioned also interferes with these views (in its listeners you'll get this information very quickly) and check if the code cares to be extendable or not. Try to use the same code than the one above:
    if(is_callable('parent::renderHtml')) {
    mcatze likes this.
  14. hcmagix

    hcmagix Active Member

    no custom style, no addons wich change custom field. I check it again tomorrow with 1.5.8 (after upgrade)
  15. cclaerhout

    cclaerhout Well-Known Member

    Please refer to my previous message (with the views). If you don't know what it is, disable addon one by one to check if it changes anything. If it does, please contact the addon author and tell him to look my previous post. Thanks.
    mcatze likes this.
  16. hcmagix

    hcmagix Active Member

    Works for me in 1.5.8

    For test use a separate test account and not the user right test in ACP, was my fault in testing this hack.
    mcatze and cclaerhout like this.
  17. mcatze

    mcatze Well-Known Member

    Me too, i should buy new glasses .. :D
  18. cclaerhout

    cclaerhout Well-Known Member

  19. Is it possible for selected user groups to be able to edit other users custom field on the front end? Just so I can allow moderators to edit them without ACP access.

    Thanks in advance,

Share This Page