Results 1 to 6 of 6

Thread: member group blob

  1. #1
    User
    Join Date
    01-25-10.
    Location
    France
    Posts
    61

    Default member group blob

    Hello,
    In a specific php file, I would like to filter the members by their group.
    I read the tl_member table and i extract the groups field.
    But it 's not an array, I think it is a specific file


    Are there some means to know the group(s) of a member?
    Thanks for help
    Thierry
    Sharing and growing

  2. #2
    User
    Join Date
    08-07-09.
    Location
    Kent, United Kingdom
    Posts
    92

    Default Re: member group blob

    It's a serialized object, use http://php.net/manual/en/function.unserialize.php to unserialize it into an array.

  3. #3
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: member group blob

    or the Contao function deserialize()
    Both work, i'm not sure the reason Contao has a specific function for this.

  4. #4
    Experienced user
    Join Date
    08-21-09.
    Posts
    563

    Default Re: member group blob

    Tru has a blog post that hints as to why deserialized() exists...

    http://blog.qzminski.com/2010/09/9-cool ... functions/
    Brian

  5. #5
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: member group blob

    I just read it 5 minutes before I read your reply!
    I was cruising his blog on another matter.... its a great resource and i love his style.
    I tried to post a thanks on it, as i found my answer, but somehow I broke the comments function.

  6. #6
    User
    Join Date
    01-25-10.
    Location
    France
    Posts
    61

    Default Re: member group blob

    Thank you for these informations
    That works fine
    have a good day with Contao ....
    Thierry
    Sharing and growing

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •