+ Reply to Thread (include dating software, release, and patch number!)
Results 1 to 5 of 5

Thread: New Message Notify Not Working

  1. #1
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,642
    Blog Entries
    5

    Default New Message Notify Not Working

    New message notify - the one sent to users if a message gets sent to their communicator - appears to have been dropped from 5.6.4, even though the "Enable new message notifications" can be, and is set, in the admin panel.

    Here is a quick fix - that met my needs for some work I was doing for someone. You can also use it / modify it - as needed.

    In compose.php, find:

    function MemberSendMessage( $member, $recipient, $must_use_credits = false )

    add to the globals section:
    Code:
    	$en_inbox_notify 		= getParam("enable_inbox_notify");
    Find this:

    Code:
    	}
    
    	// If sending successful then mark as performed action
    	if ( $result )
    and put this BEFORE

    Code:
    		if ( $en_inbox_notify )
    	{
    		$message_text = getParam("t_Message");
    		$subject	  = $_POST['mes_subject'];
    
    		$aPlus['MessageText'] = strmaxtextlen($_POST['text'], $max_message_size);
    
    		$result = sendMail( $recipient['Email'], $subject, $message_text, $recipient['ID'], $aPlus );
    	}
    Complete 5.6.4 file attached to this post.
    Attached Files
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  2. #2
    Kleetus
    Guest

    Default

    Thanks, i will test it on my site !

  3. #3
    cpowers
    Guest

    Default

    Has this worked for anyone running 5.6.5? I implemented this and it didn't work for me.

  4. #4
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,642
    Blog Entries
    5

    Default

    It was tested in 5.6.4 - I assume 5.6.5 is much the same - you may want to check / compare the code carefully.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  5. #5
    skyhawk85u
    Guest

    Default

    This works fine in 5.6.5.

+ Reply to Thread (include dating software, release, and patch number!)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. New message/kiss received / email notify
    By Jack Kubel in forum General Troubleshooting
    Replies: 9
    Last Post: 02-09-2008, 10:50 AM
  2. Ray not working at all - error message..
    By claritydigital in forum Ray Community Widget Suite
    Replies: 6
    Last Post: 10-22-2007, 07:48 AM
  3. COMPOSE AND SEND A MESSAGE is not working
    By Ranks in forum Bugs aeDating v4.0.2
    Replies: 1
    Last Post: 09-03-2006, 12:19 AM
  4. message notify
    By chainsmoker in forum Bugs Dolphin 5.1
    Replies: 0
    Last Post: 05-27-2006, 06:53 PM
  5. compose message notify
    By Yair Czitrom in forum Bugs aeDating v4.0.2
    Replies: 11
    Last Post: 12-06-2005, 08:47 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts