{jrProfile_menu}

Applies to: Jamroom 7.0+ Last verified: 2026-10-24
  • jrProfile_menu

    Function
    jrProfile_menu
    parameter
    type
    default
    required
    description
    template
    string
    -
    on
    The template for the menu, such as profile_menu.tpl
    profile_quota_id
    int
    -
    on
    The quota ID of the profile, usually $profile_quota_id
    profile_url
    string
    -
    on
    The profile's URL name, usually $profile_url
    modules
    string
    -
    off
    Only these modules, comma separated
    exclude_modules
    string
    -
    off
    Leave out these modules, comma separated
    order
    string
    -
    off
    Modules to put first, in this order: "jrBlog,jrAudio". Others follow.
    targets
    string
    -
    off
    Open a different page for a module: "jrAudio:audio/albums"
    always_show
    string
    -
    off
    Modules to show even when the profile has no items for them
    require_login
    string
    -
    off
    Modules whose entry only shows to logged-in users, comma separated
    assign
    string
    -
    off
    Put the result in this variable instead of showing it

    Makes the profile menu: one entry for each module the profile's quota can use. An entry only shows to visitors when the profile has items for that module; the profile's owner sees all of them.

    {jrProfile_menu template="profile_menu.tpl" profile_quota_id=$profile_quota_id profile_url=$profile_url order="jrAction,jrBlog,jrAudio" exclude_modules="jrComment"}
  • With targets="jrAudio:audio/albums", the Audio entry opens yoursite.com/(profile)/audio/albums instead of the audio list.

Tags