Notifications
Clear all

[Solved] Adding time between consecutive forum posts?

5 Posts
2 Users
1 Likes
707 Views
Posts: 9
Topic starter
(@smfefe70)
Active Member
Joined: 1 year ago

Is this possible?
I searched but couldn't find it.

For example: 1 minute add time

Topic Tags
4 Replies
Chris
Posts: 3650
(@chris)
Famed Member
Joined: 3 years ago

Hi @smfefe70,

Can you please provide more info/details about what you're looking for?

3 Replies
(@smfefe70)
Joined: 1 year ago

Active Member
Posts: 9

@chris Can members be prevented from flooding? I don't want members to text back to back. I want it to wait 1 minute after a message. Is this possible?

Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3650

@smfefe70,

You can use the below Code For it: 

add_filter( 'wpforo_usergroup_get_flood_interval', function(){ return 15; /* seconds */ } );

 

Solution by inserting the code in Themes functions.php file

 Add the below code at the end(bottom) of the current active theme functions.php file

Option one: open functions.php file from wp-content > themes > current active theme.

Option Two: Go to Dashboard > Appearance Theme File Editor, select Theme Functions(functions.php) file from Theme Files Bar.

Please mention that the code can be lost after updating or changing the theme.

Solution by using Code Snippets Plugin

Install and Activate Code Snippets plugin( https://wordpress.org/plugins/code-snippets/).

Go to Dashboard > Snippets > Add New.

Insert the code in code field:

Check that the new created snippet is active from Dashboard > Snippets > All Snippets.

(@smfefe70)
Joined: 1 year ago

Active Member
Posts: 9

@chris Thank you bro. It's work! Success.