Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi;
Is it possible with this module to have an status added to the user profile page (we are using profile2) to indicate if the user is online?
Also it would be great having this available in views.
Thanks
Thomas
Comment | File | Size | Author |
---|---|---|---|
#1 | 2230365_online-status-and-chat-link.patch | 2.27 KB | bryantt |
Comments
Comment #1
bryantt CreditAttribution: bryantt as a volunteer and commentedLets you create links to start chat or display online status. You'll need to create the html, in your case the user profile template file. I also submitted a patch for views. Combined with that patch and you can alter the output in views with the UID to create the online status circle or a chat link.
link to views patch - https://www.drupal.org/project/drupalchat/issues/2931862
Example from my user-profile.tpl.php file
print ('<a href="#' . $account->uid .'" id="' . $account->name . '" class="drupalChatLink btn">Send ' . $account->name . ' a chat</a>');