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
I only had a little time to write this, and even less time to test, but give this a shot.

In ubb_new_reply.cgi
Find:
Code
	@last_post      = split (/||/, $rev_this_topic[0]);
$last_post_num = $last_post[1];
Add after:
Code
	# 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) )
)
{
# 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
I added an option to allow staff members to bypass the bump thing, as well as added a timer. I hope this works

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
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
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,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)