Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Code
	# Begin no double post mod

# Minutes after first reply before we allow a second
# Set to 0 to disable time constraints
my $time_to_allow_spam = 60;
my $allow_staff_bypass = true;

if(
( $last_post[11] eq $user_number ) &&
!( (&is_admin_or_mod($in{f}, @user_profile) eq 'true') && ($allow_staff_bypass == true) )
&& ($in{f} !~ /^(1|3|23)$/i )
)
{
# Last post was made by same account as this user
if( $time_to_allow_spam > 0 )
{
$that_unix = &ConvertPostTimeToUnixEpoch( $last_post[3], $last_post[4] );
if( ($GotTime{CurrentEpoch} - ($time_to_allow_spam * 60)) < $that_unix )
{
&StandardHTML("I'm sorry, but you cannot make another post without someone replying first, or until $time_to_allow_spam minutes have passed");
}
}
else
{
&StandardHTML("I'm sorry, but you cannot make another post without someone replying first.");
}
}

# End no double post mod
Replace "1|3|23" with the numbers of all the forums you want to bypass this filter. Make sure to seperate them with a | (pipe)

Sponsored Links
Entire Thread
Subject Posted By Posted
[6.3.x] [beta] Preventing Users to Reply to Their Own Posts Gladius 07/28/2002 9:41 PM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts Graeme 07/28/2002 11:08 PM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts Gladius 07/29/2002 12:10 AM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts Gladius 07/29/2002 10:09 PM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts AllenAyres 07/29/2002 10:56 PM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts AllenAyres 01/30/2005 6:03 AM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts 1QuickSI 01/31/2005 2:02 AM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts AllenAyres 01/31/2005 3:14 AM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts AllenAyres 02/02/2005 3:46 AM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts Gladius 06/28/2005 3:54 PM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts Gladius 06/30/2005 9:58 PM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts Ian Spence 06/30/2005 10:52 PM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts Gladius 07/01/2005 2:53 AM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts Ian Spence 07/02/2005 1:55 AM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts Gladius 07/02/2005 3:44 PM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts Gladius 07/02/2005 5:09 PM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts Gladius 07/06/2005 8:58 PM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts Ian Spence 07/06/2005 9:33 PM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts Gladius 07/06/2005 10:59 PM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts Ian Spence 07/07/2005 3:09 AM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts Gladius 07/07/2005 1:10 PM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts Gladius 07/09/2005 3:38 AM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts Gladius 07/09/2005 3:46 AM
Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts LK 07/13/2005 2:56 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)