logo

Extra Block Types (EBT) - New Layout Builder experience❗

Extra Block Types (EBT) - styled, customizable block types: Slideshows, Tabs, Cards, Accordions and many others. Built-in settings for background, DOM Box, javascript plugins. Experience the future of layout building today.

Demo EBT modules Download EBT modules

❗Extra Paragraph Types (EPT) - New Paragraphs experience

Extra Paragraph Types (EPT) - analogical paragraph based set of modules.

Demo EPT modules Download EPT modules

Scroll

Configuration of the Privatemsg module

22/02/2025, by Anonymous (not verified)
Forums

Hello everyone

There is a website where communication between registered users is implemented using the Privatemsg module. Everything works well, but an idea has come up:

Currently, when a message is sent, the page reloads and then it loads along with the page, including the message and the entire conversation history. I would like the message to be sent and new messages to load immediately without reloading the page.

This can be implemented using Node.js, especially since there is even a module for Privatemsg that connects it with Node.js, but since I am on shared hosting, it's not possible to implement it there.

Of course, I understand that it can somehow be done using simple Ajax, but I am not familiar with this technology. There might not be much code involved, and it could be resolved quickly.

In general, I would like to know how this can be done. Perhaps there are ready-made modules or you can suggest a solution that has been implemented by someone else or by you.

Thank you in advance

P/S: I have used Google)) I found implementations of this idea for node and other pages:

1. One option here - http://www.drupal.ru/node/82316

2. The second one here - http://frantsuzzz.com/content/ajax-zaprosy-po-taymeru-v-drupal-7

3. The third one here, a ready-made module that can load modified information of specified material types using ajax - https://www.drupal.org/project/ajax_reload

, but as I mentioned earlier, I am simply not familiar with programming and Drupal architecture at that level to optimize and adapt it for myself, although it may all be quite elementary