Good afternoon,
I may have already posted this, but the site is being a bit funny...
Firstly, apologies for bumping this old thread, but I can't make it work.
I have the lines below in the module I'm developing:
lblMessages.Text = InternalMessagingController.Instance.CountConversations(UserInfo.UserID, PortalId).ToString("");
var messageBoxView = InternalMessagingController.Instance.GetInbox(UserInfo.UserID, 1,
10000,
"LastModifiedOnDate",
true,MessageReadStatus.Any, MessageArchivedStatus.Any);
The 1st line works correctly and returns the number of conversations. However, the 2nd line doesn't return anything, it says there are 0 conversations, which I know it's incorrect. Any ideas on what I';m doing wrong? I'm using dnn 7.
I could be very happy to use the message center module, but we don't want to allow users to send messages, only receive them (only admins can send messages). If you could tell me how to achieve this without developing a module I'd really appreciate it!
Thanks a lot
Carlos