Previous Thread
Next Thread
Print Thread
Rate Thread
landyphil #280655 10/11/2004 10:56 AM
Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
ok...quickreply gives its data to addpost.php

So, in addpost.php

search for:
if ($Main) {
$query = "
SELECT B_Board
FROM {$config['tbprefix']}Posts
WHERE B_Number='$Main'
";
$sth = $dbh->do_query($query,__LINE__,__FILE__);
list($Board) = $dbh->fetch_array($sth);
}

Insert underneath:

if ($Main) {

// Check to see if they can reply to this thread
$query = "
SELECT B_Sticky,B_Status,B_PosterId
FROM {$config['tbprefix']}Posts
WHERE B_Number='$Main'
";
$sth = $dbh->do_query($query,__LINE__,__FILE__);
list($issticky,$bstatus,$mainposterid) = $dbh->fetch_array($sth);
if ($issticky == "2" && ($user['U_Status'] != "Administrator")) {
$html->not_right($ubbt_lang['NO_R_ANNOUNCE'],$Cat);
}

// ---------------------------------------------------------------------------
// If we are in the special forum and not a admin or mod
//and not the user that started the thread they can't proceed
if (($Board == "short_name_of_the_special_forum") &&
($user['U_Number'] != $mainposterid) &&
($user['U_Status'] != "Administrator") &&
($user['U_Status'] != "Moderator") ){
$html -> not_right("This is the special Blog forum, you can only reply to your own threads!",$Cat);
}
}


This should work, but again, I didn't test it.

Sponsored Links
Entire Thread
Subject Posted By Posted
V6.5 and Blogs Zarzal 10/10/2004 11:07 PM
Re: V6.5 and Blogs Anno 10/11/2004 3:54 AM
Re: V6.5 and Blogs Anno 10/11/2004 10:15 AM
Re: V6.5 and Blogs *DELETED* Zarzal 10/11/2004 1:46 PM
Re: V6.5 and Blogs *DELETED* Zarzal 10/11/2004 3:23 PM
Re: V6.5 and Blogs Zarzal 10/11/2004 5:34 PM
Re: V6.5 and Blogs Anno 10/11/2004 6:56 PM
Re: V6.5 and Blogs Zarzal 10/11/2004 7:26 PM
Re: V6.5 and Blogs AKD96 12/14/2004 10:54 PM
Re: V6.5 and Blogs Zarzal 12/14/2004 11:45 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:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 253
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 4445
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 30
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
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-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)