user_active_profile_id

  • Overview

    There is a concept in Jamroom where users can have multiple profiles and profiles can have multiple users, this leads to the issue of when a new item is created for a profile which profile is it created for.

    By default in Jamroom all the + create buttons to create module items are found on the module on users profiles. When a user visits a profile, if they are the owner of that profile, their $_user variable gets updated with the id for the profile.

    $_user['user_active_profile_id']

    Then when the + create button is clicked for any module, audio, gallery, video etc, that value is uses as the location to put the created item.

    This by default is how jamroom works.

    If as a developer you want to add a + create button outside the confines of a profile, then you need to be aware of this and take it into account with how you build your module.

Tags