Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2000
Posts: 15
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 15
OK, I'll bite here..

(HOW LONG has it been since I posted at UBBDev??? smile )

Try:
in ubb_new_reply.cgi (circa line 403 in 6.3.1)
# grab last post
@rev_this_topic = reverse(@this_topic);
@last_post = split (/||/, $rev_this_topic[0]);
$last_post_num = $last_post[1];
$last_post_num++;

ADD right AFTER it:
if ($username eq $lastpost[2]) {
&StandardHTML("You cannot reply to this thread again until someone else does.");
}

Should be all you need. (NOTE: StandardHTML calls exit internally so you don't need it again)

(I tried to make it obvious enough over at community without spelling it out.. smile )

Graeme

Sponsored Links
Entire Thread
Subject Posted By Posted
Preventing Users to Reply to Their Own Posts Gladius 07/28/2002 9:41 PM
Re: Preventing Users to Reply to Their Own Posts Graeme 07/28/2002 11:08 PM
Re: Preventing Users to Reply to Their Own Posts Gladius 07/29/2002 12:10 AM
Re: Preventing Users to Reply to Their Own Posts Gladius 07/29/2002 10:09 PM
Re: Preventing Users to Reply to Their Own Posts AllenAyres 07/29/2002 10:56 PM
Re: Preventing Users to Reply to Their Own Posts Gladius 07/29/2002 11:17 PM
Re: Preventing Users to Reply to Their Own Posts Gladius 07/30/2002 11:56 AM
Re: Preventing Users to Reply to Their Own Posts PF 07/30/2002 4:33 PM
Re: Preventing Users to Reply to Their Own Posts Gladius 07/30/2002 5:32 PM
Re: Preventing Users to Reply to Their Own Posts PF 07/30/2002 5:50 PM
Re: Preventing Users to Reply to Their Own Posts Gladius 07/30/2002 6:26 PM

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
hatter
hatter
USA
Posts: 69
Joined: January 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 2
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
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)