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,
Thanks for this awesome module.
Is it possible to create a private chat with node author, by clicking on user name for example.
Cheers
Comments
Comment #1
darklrd CreditAttribution: darklrd commentedHi,
Are you referring to normal hyperlinks present on the page? Yes, this is possible but what about the hyperlink default behavior (where it sends you to user profile page)?
Thanks
Comment #2
darklrd CreditAttribution: darklrd commentedComment #3
by3000 CreditAttribution: by3000 commentedThanks for the feedback and you're right, this will conflict with other modules.
May be an integration with Author Pane module or simply a button at node theming level that will add the author to private chat list.
Comment #4
by3000 CreditAttribution: by3000 commentedComment #5
darklrd CreditAttribution: darklrd commentedDo you mean a button at node theming level which when clicked will open corresponding chat window with the author? Thanks.
Comment #6
by3000 CreditAttribution: by3000 commentedYes and list of users will be restricted only to users chosen by clicks (not all connected users).
Thanks
Comment #7
adamharms CreditAttribution: adamharms commentedI'm also interested in a link to chat with node author or one that can be added on the profile, ideally with views. The option to disable the chatlist would be good too.
Comment #8
datarazor CreditAttribution: datarazor commentedI have put together a patch that enables this feature.
Note that the source code seems to be in a transitional state, with some variables like "buddylist_old" and areas commented out of the dev-code, so I am not 100% sure my implementation went in the right way.
To do this properly I would also alter the dispatching of this new feature at its source, rather than check for an admin-setting on _drupalchat_poll. All that being said though, this ~does~ work just fine now.
The current user is checked to see if they are logged in w/i 5 minutes of your visit. Some jquery is all you need to pop the chat open, and you can limit the chat to only appear on user pages.
Currently my code checks for the user page, as this is the use-case we had to code for. It shouldn't be too hard to see how you can modify this code to work instead on node-author instead of the current page's user id.
No time right now to post the patches, but I will do so some time this week.
Comment #9
sol0matrix80 CreditAttribution: sol0matrix80 commentedi would like test that patch as well could we have a dl link its me a few months since this was updated