One minute to send another message (Text)

Every time I send a message to a member I get this message - YOU HAVE TO WAIT FOR 1 MINUTE(S) BEFORE YOU CAN WRITE ANOTHER MESSAGE! [CLICK HERE] TO SEND ANOTHER MESSAGE.

This message used to appear when you send more than 4 messages a day , and now if I send a single message it shows. I suspect someone can be using my website to send message , may I be wrong ? Thanks !

Quote · 18 Apr 2012

This happens to me as well (using D7.0.9).  I'm 'okay' with it happening for regular members... but, as an admin, I should not have this happening.  Is there a simple code change to remove this limit for admins?

TIA 

http://pkforum.dolphinhelp.com
Quote · 24 Apr 2012

I got some time so i looked into this. To allow admin to send mails. You can try this

in inc/classes/BxDolMailBox.php at line 863

if ( db_arr($sQuery) )

                    {

                        $sReturnMessage = MsgBox( _t('_You have to wait for PERIOD minutes before you can write another message!', $this -> iWaitMinutes, $sComposeUrl) );

                        $this -> iSendMessageStatusCode = BX_MAILBOX_SEND_WAIT;

                        $bAllowToSend   = false;

                    }

change it to this

 

if (!isAdmin()) {

 

                    if ( db_arr($sQuery) )

 

                    {

 

                        $sReturnMessage = MsgBox( _t('_You have to wait for PERIOD minutes before you can write another message!', $this -> iWaitMinutes, $sComposeUrl) );

 

                        $this -> iSendMessageStatusCode = BX_MAILBOX_SEND_WAIT;

 

                        $bAllowToSend   = false;

 

                    }

 

}

 

I have not tested this but it should work.

 

so much to do....
Quote · 24 Apr 2012

I opted to include the associated db query statement in the 'is not admin' block.  

I test on both admin and non-admin accounts... the code change works as expected.  

Thank you!!! Smile  

http://pkforum.dolphinhelp.com
Quote · 24 Apr 2012

 You're welcome

I opted to include the associated db query statement in the 'is not admin' block.  

I test on both admin and non-admin accounts... the code change works as expected.  

Thank you!!! Smile  

 

so much to do....
Quote · 24 Apr 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.