I'm glad the bug fixes are now in place and everything appears to be working as design. Here are some suggestions to make this module more usuable.

Enable private messaging as default
At the moment the way the module works is that it relies on user intervention to enable private messaging. If they don't enable it they won't see other members "write to author" links. I assume this is by design but that effectively hides the usefullness of the entire module.

After all most members rarely go back into their edit profiles so they'll miss the new features. Have it turned on by default for each member and then they can decide (if the admin see's fit) to have it disabled.

A admin toggle switch allowing whether the members can turn on or off private messaging in their own accounts would be handy.

Write to author visiable to all members
Everyone who is a registered member should see the "write to author" link if they are logged in regardless of whether their own preferance is to not receieve private messages. Currently if i have private messaging available and they do not they won't see my link by design.

Annon users should not for obvious reasons.

Pop Up Notifications
As it is the why a new message is handled is easily missed. A simple javascript popup box when a new message has arrived and is unread would make sure the member never misses his message.

Heres a fragment of code that may help. Its from a subdreamer notification box that does the same thing. The javascript maybe usefull here.

if(strlen($pmpopupurl) > 0)
  {
    echo '<script type="text/javascript">
<!--
  function NotifyMsg()
  {
    if (confirm("'.$language['new_priv_msg'].'\r\n\r\n'.$language['sender'].' ' . $pmfromuser .'\r\n'.$language['title'].' \''.$pmtitle.'\'\r\n\r\n'.$language['click_ok'].'"))
    {
      // Output when OK is clicked
      if (confirm("'.$language['open_msg'].'"))
      {
        var winobj = window.open("'.$pmpopupurl.'", "popup", "menubar=yes,scrollbars=yes,toolbar=yes,location=yes,directories=yes,resizable=yes,top=50,left=50");
        if (winobj == null)
        {
            alert("Couldn\'t open the new window. Are you using a Popup Blocker?");
        }
      }
      else
      {
        window.location = "'.$pmpopupurl.'";
      }
    }
  }
  
  window.onload = NotifyMsg;
//-->
</script>';
  }  

The ability to download
The ability to download receieved messages for off site archive is always a very handy feature. They can be downloaded as simple .txt if that suffices.

Comments

doq’s picture

what about redeveloping privatemsg to use node system?

mindless’s picture

the current code should enable private messages by default (but not email notification of new messages).

desm0n’s picture

Thanks, wasn't aware that had been updated. Thats one of my suggestions sorted then :)

jaxxed’s picture

Title: Some suggestins to make the module work better. » Some suggestins to make the module work better. --> NO to privatemsg nodes
Component: User interface » Code

I disagree that privatemsgs should be nodes. the scope and privacy approach is entirely different.

The only true advantage would be integrated searching - but the tradoff in mixing private messages with real nodes would be a pain in the ass.

doq’s picture

I have private message module based on nodes developed. Why the problem in privacy? db_rewrite_sql can do all that stuff easily.

mindless’s picture

Title: Some suggestins to make the module work better. --> NO to privatemsg nodes » Some suggestins to make the module work better.

Please move any discussion about privatemsg as nodes to #49349.

This request has 4 parts.. (1) is done, (3) I think is covered by the notification using drupal_set_message (not a popup, but very visible). (2) doesn't make sense to me.. why show the link to send a privatemsg if the person won't be able to reply? (4) is not done.

berdir’s picture

Status: Active » Closed (fixed)

I apologize for pinging the participants, I'm closing out old issues.
Privatemsg already implements some of these features. Please file a
feature request against the latest DRUPAL-6 version if still relevant.