ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Member fields - advice please

November 16, 2012 8:28am

Subscribe [2]
  • #1 / Nov 16, 2012 8:28am

    didster

    2 posts

    Hi there,

    Within my EE site, I have members that represent customers.  Within those customers, I have some member fields that relate to certain things about what they have purchased.  Example

    User1
       LicenceKey: 1234
       SupportExpires: 01/02/12
    User2
       LicenceKey: 5678
       SupportExpires: 04/05/12
    User3
       LicenceKey: 9101
       SupportExpires: 06/07/12

    I then have a very simple template that uses {exp:member:custom_profile_data} to show these fields to the user when they login.

    All this works great.

    I would like add a “top level” user to this system that can access the details for more than one user.  Example:

    SuperUser1: 
         User1, User2
      SuperUser2:
         User1

    So when SuperUser1 logs in, they can see User1 & User2’s records.

    I am using MemberFields (not just normal posts) to hold this info because its being automatically updated from a CRM system using custom scripts.

    Many thanks

  • #2 / Nov 16, 2012 1:50pm

    Rob Allen

    3114 posts

    I’d probably look at creating a special template for this that output data for “all Users”.

    Then create a Super user member group, and restrict access to the template to that group.

  • #3 / Nov 17, 2012 4:05pm

    didster

    2 posts

    Thanks for the response.

    Thats kind of what I’m doing (I think!).

    I have a template that outputs the custom member fields that is only accessible by members of a certain group.

    The problem is I’m having trouble in defining any kind of hierarchy within my members.  So for example somehow SuperUser1 must only be able to “see” User1 & User2 and SuperUser2 must only be able to see User1.

    I’m currently looking at the member category module as it seems to sort of fit the bill, but a bit reluctant to jump in just yet as it costs

    Cheers

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases