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.

Best Way to Identify Member Groups

October 29, 2012 9:58am

Subscribe [2]
  • #1 / Oct 29, 2012 9:58am

    aa146214

    2 posts

    Hi I am currently writing a few functions for various hooks such as

    safecracker_submit_entry_end
    entry_submission_ready

    and I need to work out what member group the current user belongs to. So far to get the extension up and running I have been writing IF statements with hard coded ids like so

    if($this->EE->session->userdata('group_id') == 5){ //do something }

    Is there a standard way that people match users to member groups?

  • #2 / Oct 30, 2012 4:39pm

    Kevin Smith

    4784 posts

    Hi aa146214,

    We don’t actually provide tech support for custom development, but I’d be happy to move this thread over to the Development & Programming forum so other developers can toss in with the ways they accomplish this. Would you like me to do that?

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

ExpressionEngine News!

#eecms, #events, #releases