Artifex Net

Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)

Artifex Net
Participant

Hello,

From what I can see in our conversation from the beginning, I don’t see anywhere that states the notification is sent only the first time to both the admin and the user. If I had known that, I would have asked you to provide a way to have it play every time.

Additionally, besides the sound issue, there’s the matter of auto-loading messages—as you can see in the video, in the inbox in generaly, and inside the single message conversation on the dashboard as well as for the user in frontend. In other words, it doesn’t automatically load the response unless you manually refresh the page. This is a problem for both the admin and the user, because they are accustomed to having an open conversation on social media and Gmail, where new messages load automatically.

Regards


Artifex Net
Participant
This reply has been marked as private.

Artifex Net
Participant

Hello, thank you so much! With the improved loading times, it will work well and play the notification sound every time someone sends you a message on the backend? Also, can you add an option to select multiple user roles, not just admin? For example, Editor or Shop Manager? Thanks again! I hope you fix these issues that will it put at the top of the messaging systems for WP!


Artifex Net
Participant

Do we have any news on iPhones?

Now for the notifications lags, how can it work correctly for the first message, but then fail afterward? What specific server settings are required?
We have a VPS package with the following specifications:

30 GB SSD
4 Cores
4 GB RAM
Unlimited Traffic
200 MB/sec I/O
Plesk Panel

We need help with this issue because we cannot deliver the service to our client in its current state. They require this to be their top-priority messaging system with their clients, relying on notifications so they can receive and respond quickly.

Regards.


Artifex Net
Participant
This reply has been marked as private.

Artifex Net
Participant
This reply has been marked as private.

Artifex Net
Participant

Thanks for css code


#inbox-table tr td:first-child{
  display: none !important; 
}

but it works only for inbox not for sent too. Can you the css for sent too?

We want a general setting for the Shop Manager role, so that we have the ability to select it directly from the compose message screen. Ideally, we want to recive messages both, the admin and a specific role (for example, Shop Manager) because we want to inform our client for messeges that don’t see.

Another problem that we saw today is on attachment button on mobile devices don’t work at all. You click it but it don’t pop up the classic window Photo Library, Take a Photo, Files so we can send files only from pc and not from mobile and our users is 85-90% from mobile. Can you see that too?

Thanks a lot!


Artifex Net
Participant

I fix it all and I’ll paste code for someone else who want it:

Message Click to hole Row Inbox/Sent

document.addEventListener("DOMContentLoaded", function() {
  var tables = document.querySelectorAll("#inbox-table, #sent-table");

  tables.forEach(function(table) {
    table.addEventListener("click", function(event) {
      if (event.target.closest("a")) {
        return;
      }

      var row = event.target.closest("tr");
      if (row) {
        var link = row.querySelector("a.wpdmpm-open");
        if (link) {
          link.click();
        }
      }
    });
  });
});

Hide [RE#NUM] Before Message on Table Inbox/Sent


document.addEventListener("DOMContentLoaded", function() {
  var containers = document.querySelectorAll("#inbox-table, #sent-table");
  
  function removeReSpans(element) {
    var spans = element.querySelectorAll("span");
    spans.forEach(function(span) {
      var text = span.textContent.trim();
      if (text.match(/^\[\s*RE#\d+\s*\]$/i)) {
        console.log("Αφαιρώ το span:", text);
        span.remove();
      }
    });
  }
  
  containers.forEach(function(container) {
    removeReSpans(container);
    
    var observer = new MutationObserver(function(mutationsList) {
      mutationsList.forEach(function(mutation) {
        if (mutation.type === "childList" && mutation.addedNodes.length > 0) {
          mutation.addedNodes.forEach(function(addedNode) {
            if (addedNode.nodeType === Node.ELEMENT_NODE) {
              removeReSpans(addedNode);
            }
          });
        }
      });
    });
    observer.observe(container, { childList: true, subtree: true });
  });
});

Messages Side Menu Color Active/Inactive Item


document.addEventListener('click', function(e) {
  if(e.target.closest('.list-group-item')) {
    document.querySelectorAll('.list-group-item.active').forEach(function(item) {
      item.classList.remove('active');
    });
    e.target.closest('.list-group-item').classList.add('active');
  }
});

Artifex Net
Participant

Notifications only work for the first message on both sides. After that, neither the refresh nor the notification sound works for either side.

Additionally, please review the following issues we’ve encountered during development:

Focus Color Issue:
The focus color in the inbox/sent menu on the front end isn’t working correctly. When you click an item, it turns blue as expected. However, when you switch to another item, that one also turns blue, and the previously active item doesn’t revert to white.

Username Removal:
How can I remove the username from the table? The responsive design on mobile is affected by the username display. Since communication will be exclusively with the site admin, we don’t need to show the username. However, it seems the table is unified in your code, so when we hide the username, the entire row disappears.

Message Prefix:
We would like to hide the “[ RE#XXX ]” that appears before each message in the main inbox/sent table.

User Role and Dashboard Access:
Our client only has access as a Shop Manager (since they prefer a simpler WordPress dashboard and shouldn’t have access to critical site settings), while we remain the site admin. How can we enable the private message dashboard for a role other than admin, such as the Shop Manager? Alternatively, is it possible for the messages to be directed solely to the Shop Manager instead of the admin? As you know, we cannot customize WordPress capabilities for a specific admin.

Thank you for your assistance.


Artifex Net
Participant
This reply has been marked as private.

Artifex Net
Participant
This reply has been marked as private.
Viewing 11 posts - 1 through 11 (of 11 total)