[[!MessageManager? &recipient_options=`user,usergroup,all` &allowed_groups=`user`]]
This question has been answered by BobRay. See the first response.
Try right-clicking on the grid.
FYI, I saw a message from a core developer suggesting that the message system might be removed in an upcoming version of MODX, in which case MessageManager would be DOA.
Are you a member of the 'users' group?
It sounds like you might have a JavaScript conflict, a CSS rule that is hiding some things, or a corrupted file in MessageManager.
View the page in Chrome and turn on Dev. Tools (Ctrl-shift-i). Look at the Console tab for any JS errors.
Look at the Network tab and reload the page to see if there are any 404 errors.
If that doesn't show anything, click on the inspect button at the far left of the Dev. Tools toolbar, then click on the Message Manager grid. You can click on different lines in the code at the left and look for any CSS issues in the window to the right of the Dev. Tools grid.
Thanks! I'm glad you got it sorted.
Can you tell me where the conflict occurred?
/* Get the variables recipientId, subject, and message from the form. The Recipient ID and sender ID would be hidden fields with a placeholder for the two IDs (set by a snippet when the page loads). */ /* Check the variables for validity (e.g., not empty) here. If they're OK do this: */ mmAjax(senderId, 'security/message/create', {'type':'user','user':recipientId,'subject':subject,'message':message});
/* That will call the mmAjax function (below) which you've embedded in the
page as well (along with JQuery and JQuery UI). */
function mmAjax(id, action, dataIn) {
var spinnerTarget = document.getElementsByTagName("body")[0];
var mmSpinner = createSpinner();
mmSpinner.spin(spinnerTarget);
dataIn = dataIn || {};
dataIn['id'] = id;
dataIn['action'] = action;
/* Ajax call to action; calls MODX resource pseudo-connector */
return $.ajax({
type: "POST",
url: "mm-ajax[[+html_file_extension]]",
data: dataIn,
dataType: "json"
}).done(function () {
mmSpinner.stop();
alert('Your message has been sent');
}).fail(function (jqXHR, textStatus) {
mmSpinner.stop();
alert(action + ' failed on message ' + id + ' ' + textStatus);
});
}
function createSpinner() {
var opts = {
lines: 17, // The number of lines to draw
length: 17, // The length of each line
width: 4, // The line thickness
radius: 5, // The radius of the inner circle
corners: 1, // Corner roundness (0..1)
rotate: 0, // The rotation offset
direction: 1, // 1: clockwise, -1: counterclockwise
color: '#56A717', // #rgb or #rrggbb or array of colors
speed: 0.6, // Rounds per second
trail: 81, // Afterglow percentage
shadow: false, // Whether to render a shadow
hwaccel: false, // Whether to use hardware acceleration
className: 'spinner', // The CSS class to assign to the spinner
zIndex: 2e9, // The z-index (defaults to 2000000000)
top: '50%', // Top position relative to parent
left: '50%' // Left position relative to parent
};
return new Spinner(opts);
}