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’s having Member’s

July 02, 2012 3:09pm

Subscribe [2]
  • #1 / Jul 02, 2012 3:09pm

    sbeyatte

    18 posts

    Hi I have a new project that I’d love to build in EE but I’m wondering if I can accomplish something easily with EE.
    Basically I have one member group, let’s call them Managers, that each have their own landing page outlining their marketing material. I want people to be able to register for the site on each landing page, but then be automatically put under the manager’s group so that I can list out all the members a manager owns for analytics purposes.
    Obviously I can just make a new member group and then pass the group ID into the login form, but I’m wondering if there’s a more efficient way to do this where the Managers would have their users associated automatically.

    Thanks very much.

  • #2 / Jul 02, 2012 3:13pm

    Boyink!

    5011 posts

    EE doesn’t natively think of users in hierarchy like that.  Users are assigned to groups which have permissions.

  • #3 / Jul 02, 2012 3:16pm

    sbeyatte

    18 posts

    Is there a way to automate the creation of the member groups? E.g. a Manager registers and a new group is instantly created that matches their username or whatever?

  • #4 / Jul 02, 2012 3:18pm

    Boyink!

    5011 posts

    Not natively—there is quite a bit of setup & configuration that each member group needs when setup.

  • #5 / Jul 02, 2012 3:20pm

    sbeyatte

    18 posts

    Okay, thanks very much for your help.

    While we’re here, I have a general discussion thread open at the moment too, but is it possible to count EE user logins? The client here wants to open rewards to users who login X numbers of times and there isn’t that db col for members in EE by default, do you know if that possible with any add ons or anything?

    Again thank you!

  • #6 / Jul 02, 2012 3:24pm

    Boyink!

    5011 posts

    The EE CP has a Control Panel Log that lists member logins, times & IP addresses.  Seems a relatively simple query could provide a count for each unique member_id.

  • #7 / Jul 02, 2012 3:29pm

    sbeyatte

    18 posts

    That’s great to know, thanks very much for your great replies.
    The client here wants to be able to provide for the case that a user just logs in and out 100 times so I’m guessing I’ll need to write logic for when it counts as a “real” loyalty program login or not. Thanks very much.

  • #8 / Jul 02, 2012 3:49pm

    sbeyatte

    18 posts

    Oo also, the CP log looks like just super admins but I need logs for all members, is that possible?

  • #9 / Jul 02, 2012 4:04pm

    Boyink!

    5011 posts

    Ah - good point.

    That, I think, would require an add-on (or a core file hack, which I wouldn’t recommend).  I can’t say that I’ve seen anything like that but giving a Devot-ee a search might be worth doing.  Maybe the source of some of the various member-related add-ons could be persuaded to add it as a feature.

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

ExpressionEngine News!

#eecms, #events, #releases