^^^ my UBBT is so hacked that my write-up may need some advanced editing... Im currently working off a custom 6.2.3 based 6.5b4 hybrid
only three files needed to be hacked though:
ubbthreads.php, /admin/viewboard.php, /admin/doeditboard.php
plus an extra column added to wt3_Boards database
.....
here are the basics though
Edit your DATABASE by adding a new column, wt3_Boards
ALTER TABLE `wt3_Boards` CHANGE `Bo_Hidden` `Bo_Hidden` CHAR( 3 ) DEFAULT 'Off' NOT NULL
^^^ i think this is the correct query command - if not, atleast you get the idea of what needs to be added
in ubbthreas.php
***find
$useroffset = "";
$userstatus = "";
*** add under it
$Hidden = "";
...
***find
$groupquery .= " OR ";
}
$groupquery .= "t1.Bo_Read_Perm LIKE '%-$Grouparray[$i]-%'";
*** add under it
$groupquery .= " AND ";
$groupquery .= "t1.Bo_Hidden = 'Off'";
...
***find (or something like it)
SELECT t1.Bo_Title,t1.Bo_Description,t1.Bo_Keyword,t1.Bo_Total,t1.Bo_Last,t1.Bo_Number,t1.Bo_Moderated,t1.Bo_Read_Perm,t1.Bo_Write_Perm,t1.Bo_Threads,t1.Bo_Sorter,t1.Bo_Posterid,t1.Bo_LastMain,t1.Bo_LastNumber,t2.U_Username,t3.B_Subject,t3.B_Icon,t3.B_Reged,t3.B_AnonName,t1.Bo_Image,t1.Bo_Hidden
*** add to the end of that line, ",t1.Bo_Hidden" so that it looks like this
SELECT t1.Bo_Title,t1.Bo_Description,t1.Bo_Keyword,t1.Bo_Total,t1.Bo_Last,t1.Bo_Number,t1.Bo_Moderated,t1.Bo_Read_Perm,t1.Bo_Write_Perm,t1.Bo_Threads,t1.Bo_Sorter,t1.Bo_Posterid,t1.Bo_LastMain,t1.Bo_LastNumber,t2.U_Username,t3.B_Subject,t3.B_Icon,t3.B_Reged,t3.B_AnonName,t1.Bo_Image,t1.Bo_Hidden
...
***find (or something like it)
list($Title,$Description,$Keyword,$Total,$Last,$Number,$Moderated,$ReadPerm,$WritePerm,$Threads,$Sorter,$Posterid,$lastmain,$lastnumber,$Poster,$Subject,$Icon,$Reged,$AnonName,$forumimage) = $boardrows;
*** add to the end of that line, ",$Hidden" so that it looks like this
list($Title,$Description,$Keyword,$Total,$Last,$Number,$Moderated,$ReadPerm,$WritePerm,$Threads,$Sorter,$Posterid,$lastmain,$lastnumber,$Poster,$Subject,$Icon,$Reged,$AnonName,$forumimage,$Hidden) = $boardrows;
*** find
$forum[$x][$y]['time'] = $time;
$forum[$x][$y]['lastpost'] = $lastpost;
$forum[$x][$y]['lastposter'] = "$lastposter";
$forum[$x][$y]['lastposturl'] = $lastposturl;
***add under it
$forum[$x][$y]['Hidden'] = $Hidden;
...
in /admin/viewboard.php
*** find
echo "<form method=post action = "{$config['phpurl']}/admin/deleteboard.php">\n";
echo "<input type=hidden name=Number value=$Number>\n";
*** change to
echo "<form method=post action = "{$config['phpurl']}/admin/deleteboard.php">\n";
echo "<input type=hidden name=Cat value="$Cat">";
echo "<input type=hidden name=Number value=$Number>\n";
*** find (or something like it
SELECT Bo_Title,Bo_Keyword,Bo_Description,Bo_HTML,Bo_Expire,Bo_Markup,Bo_Moderated,Bo_CatName,Bo_Cat,Bo_Read_Perm,Bo_Write_Perm,Bo_ThreadAge,Bo_Reply_Perm,Bo_SpecialHeader,Bo_StyleSheet,Bo_Image,Bo_Number
***add to the end, ",Bo_Hidden" / change to
SELECT Bo_Title,Bo_Keyword,Bo_Description,Bo_HTML,Bo_Hidden,Bo_Expire,Bo_Markup,Bo_Moderated,Bo_CatName,Bo_Cat,Bo_Read_Perm,Bo_Write_Perm,Bo_ThreadAge,Bo_Reply_Perm,Bo_SpecialHeader,Bo_StyleSheet,Bo_Image,Bo_Number,Bo_Hidden
***find
list($Title,$Keyword,$Description,$HTML,$Expires,$Markup,$Moderated,$Cattemp,$Catnum,$Groups,$WGroups,$ThreadAge,$RGroups,$header,$stylesheet,$forumimage,$bonum) = $dbh -> fetch_array($sth);
***add to the end, ",$HIDDEN" / change to
list($Title,$Keyword,$Description,$HTML,$HIDDEN,$Expires,$Markup,$Moderated,$Cattemp,$Catnum,$Groups,$WGroups,$ThreadAge,$RGroups,$header,$stylesheet,$forumimage,$bonum) = $dbh -> fetch_array($sth);
***find
if ($HTML == "On") {
$HTMLOn = "checked";
$HTMLOff = "";
}
***add ABOVE it
if ($HIDDEN == "On") {
$HIDDENOn = "checked";
$HIDDENOff = "";
}
else {
$HIDDENOff = "checked";
$HIDDENOn = "";
}
***find
{$ubbt_lang['F_DESC']}<br>
<textarea name=Description cols=60 rows=5 wrap=soft class="formboxes">$Description</textarea>
<br><br>
***add BELOW IT
<input type=radio name=HIDDEN value=On $HIDDENOn class="formboxes"> {$ubbt_lang['YES']}
<input type=radio name=HIDDEN value=Off $HIDDENOff class="formboxes"> {$ubbt_lang['NO']}
<br><br>
...
in /admin/doeditboard.php
***find
$Description = get_input("Description","post");
$HTML = get_input("HTML","post");
***add BELOW it
$HIDDEN = get_input("HIDDEN","post");
***find
$Description_q = addslashes($Description);
$HTML_q = addslashes($HTML);
***add BELOW it
$HIDDEN_q = addslashes($HIDDEN);
***find
SET Bo_Title='$Title_q', Bo_Description='$Description_q', Bo_HTML='$HTML_q', Bo_Expire = '$Expires', Bo_Markup = '$Markup_q', Bo_Moderated = '$Moderated_q', Bo_Read_Perm = '$CanRead',Bo_Write_Perm='$CanWrite',Bo_Reply_Perm='$CanReply',Bo_ThreadAge='$ThreadAge',Bo_SpecialHeader='$header', Bo_StyleSheet='$stylesheet', Bo_Image='$avurl' $extra
***change to
SET Bo_Title='$Title_q', Bo_Description='$Description_q', Bo_HTML='$HTML_q', Bo_Hidden='$HIDDEN_q', Bo_Expire = '$Expires', Bo_Markup = '$Markup_q', Bo_Moderated = '$Moderated_q', Bo_Read_Perm = '$CanRead',Bo_Write_Perm='$CanWrite',Bo_Reply_Perm='$CanReply',Bo_ThreadAge='$ThreadAge',Bo_SpecialHeader='$header', Bo_StyleSheet='$stylesheet', Bo_Image='$avurl' $extra