[Plugin: Envolve Chat] Buddypress: How-To – Group-internal chats
-
Hey,
I’ve been using Envolve chat for a bit now and really dig it – the only thing that I really wanted were group-internal chats. With the help of #buddypress-dev (freenode) I was able to splice something together. Thanks a lot boonebgorges ??
Simply add this to your header/footer:
<!-- Envolve Chat --> <script type="text/javascript"> var envoOptions={ <?php if ( bp_is_group() ) : ?> chats : [{id : '<?php $group = groups_get_current_group(); echo $group->slug ?>', name : '<?php $group = groups_get_current_group(); echo $group->name ?>'}], groups : [{id : '<?php $group = groups_get_current_group(); echo $group->slug ?>-users', name : '<?php $group = groups_get_current_group(); echo $group->name ?>-Users'}] <?php endif ?> }; </script>
If you’re on any groups-page you’ll find the respective chat-tab next to your other chat-rooms.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: Envolve Chat] Buddypress: How-To – Group-internal chats’ is closed to new replies.