HomeUnityAnswers
 
 
foreknowapparel

change the time allowed between messages?

I want to change the time allowed for how often people can send another message. SO they can send them more frequently sooner and not have to wait so long

you know when the message You Have To Wait For 1 minute(s) before you can write another message. comes up..

So how can I edit this time amount?

bad
0
good
 
 

Answers

LeonidS
LeonidS 117 days agocomment permalink
 
You can correct/delete next condition in compose.php file:

if ( db_arr("SELECT `ID` FROM `Messages` WHERE `Sender` = {$member[ID]} AND date_add(`Date`, INTERVAL 1 MINUTE) > Now()") )
{
return 3;
}
 
bad
1
good
 
 
foreknowapparel
foreknowapparel 117 days agocomment permalink
 
would I write

INTERVAL 30 SECONDS?


if ( db_arr("SELECT `ID` FROM `Messages` WHERE `Sender` = {$member[ID]} AND date_add(`Date`, INTERVAL 30 SECONDS) > Now()") )
{
return 3;



Would that work? I'm not good with coding php.
 
bad
0
good
 
View 1 replies to this comment
 
foreknowapparel
foreknowapparel 117 days agocomment permalink
 
(30 seconds is what I want instead of 1 minute)
 
bad
0
good
 
 


Post an Answer

Please login to post an answer.

This Question
 
 
foreknowapparel's questions
All Questions
Found a bug? Have a suggestion? We really value your feedback!
 
© 2008 BoonEx Ltd
ABN 27 127 966 581
 
PET:0.348080873489