Invites Block on Groups

Hi! The Invites Block is only available on the Members page under Groups. I'd like to place that block on another page. But it's not available on other pages. How do I do this? Thanks!

image_transcoder.php?o=sys_images_editor&h=1722&dpx=2&t=1703283370

  • 328
  • More
Replies (7)
    • Hello @Karina !

      You may add a new service block on the page, then edit it and place the following code in the "Code" parameter:

      array (

       'module' => 'bx_groups',

       'method' => 'entity_invite',

      )

      • Hi @LeonidS This code gives me the block for the Invite Members. The one I require: is the block with the list of Invites already sent, and I would also like to add the block for the fans or members who have joined the group on this page.

        Invites: _bx_groups_page_block_title_fans_invites

        Members: _bx_groups_page_block_title_system_fans

        Hope that clears it up! And thank you! :-)

        • Then you need to add the following code parts to the service blocks:

          array (

           'module' => 'bx_groups',

           'method' => 'fans_table',

          )

          and

          array (

           'module' => 'bx_groups',

           'method' => 'invites_table',

          )

          • Hi @LeonidS - the first code for the members does not work. And for the second, the block got added, but the actual content for the invitees is missing. Even though there are indeed members who have been invited.

            • Which page are you trying to put it on? This block cannot simply be put on any page because it requires the specific Group Profile ID (which is detected from the URL).

              • Hi @Jerome Mingo . I want it placed on this page: page/invite-to-group?id=XX . There is a reason for this- this page is part of View Action Buttons and is therefore only accessible to admin of the Group/Event/Space/Organization. For the other page, that has those blocks by default- (page/group-fans?profile_id=XX) that becomes accessible to anyone. More so, I tested it out on private groups - and it's still gets seen (if one has the link) by a non member.

                • Hello @Karina

                  For the current case with the one group view, you need to use the profile_id variable name. ANd with this URL like page/invite-to-group?profile_id=XX it works fine.

                  Login or Join to comment.